• Oswald Buddenhagen's avatar
    ALSA: emu10k1: simplify E-MU card FPGA reset sequence · 7868e4c1
    Oswald Buddenhagen authored
    Firstly, it is pointless to explicitly disable the power to the dock
    prior to resetting the FPGA, as the latter will do the former anyway.
    
    Secondly, it doesn't make much sense to check whether the FPGA is
    already programmed. It's much simpler to just presume it is, and issue
    the self-reset command. If it isn't, the effect isn't worse than the
    checks themselves. As a side effect, we lose the info if the reset
    fails, but there is no plausible way how that could happen unless the
    card burns out while operating, and in that case we'll detect a firmware
    upload failure a bit later anyway.
    Signed-off-by: default avatarOswald Buddenhagen <oswald.buddenhagen@gmx.de>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Message-ID: <20240428093717.3198716-2-oswald.buddenhagen@gmx.de>
    7868e4c1
emu10k1_main.c 55.1 KB