• Andy Shevchenko's avatar
    ALSA: fm801: detect FM-only card earlier · b56fa687
    Andy Shevchenko authored
    If user does not supply tea575x_tuner parameter the driver tries to detect the
    tuner type. The failed codec initialization is considered as FM-only card
    present, however the driver still registers an IRQ handler for it.
    
    Move codec detection earlier to set tea575x_tuner parameter before check.
    
    Here the following functions are introduced
     reset_coded()                       resets AC97 codec
     snd_fm801_chip_multichannel_init()  initializes cards with multichannel support
    
    Fixes: 5618955c (ALSA: fm801: move to pcim_* and devm_* functions)
    Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    b56fa687
fm801.c 41.1 KB