]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Allow non-Intel device probe gracefully
authorTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2019 13:06:34 +0000 (14:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Oct 2019 15:09:02 +0000 (16:09 +0100)
commite167f1386440d8e366ec6bba25a51240b4b00395
tree1b53510905ca577f15cf6ab35fc55a236c649a62
parentde8a4a745f3be301bdec2d4b8ab988cdf845e9c6
ALSA: hda: Allow non-Intel device probe gracefully

The recent addition of snd_intel_dsp_driver_probe() check caused a
spurious kernel warning when the driver is loaded for a non-Intel
hardware due to snd_BUG_ON().  Moreover, for such a hardware, we
should always return SND_INTEL_DSP_DRIVER_ANY, not check the
dsp_driver option at all.

This patch fixes these issues for non-Intel devices.

Fixes: 50fa4538b197 ("ALSA: hda: add Intel DSP configuration / probe code")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20191028130634.3501-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/intel-dsp-config.c