]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ALSA: HDA VIA: Fix crash on codecs without Headphone
authorHarald Welte <HaraldWelte@viatech.com>
Mon, 15 Sep 2008 14:41:31 +0000 (22:41 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Sep 2008 06:18:11 +0000 (08:18 +0200)
commitf8fdd4958b6c7af9abf630f06d43db4ddcd532f6
tree7748f32790e119a1c4bd3f2e5210043ee8cc74c5
parenta6d77317678148c973bb0131cc5a3a772f756d23
ALSA: HDA VIA: Fix crash on codecs without Headphone

Don't enumerate via_hp_mixer while hp_mux is null (headphone does not exist),
to fix the crash of via_independent_hp_info (via_hp_mixer's .info), which will
reference hp_mux.

Signed-off-by: Logan Li <LoganLi@viatech.com.cn>
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/patch_via.c