ALSA: hda - VIA: Fix codec type for VT1708BCE at the right timing
authorLydia Wang <lydiawang@viatech.com.cn>
Tue, 22 Mar 2011 08:25:03 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Mar 2011 19:00:06 +0000 (12:00 -0700)
commit7514f3e507f650d8a4f8353fadefd907e0bff22d
tree7fac346ccaa62ace7c787b29f1e1037b64787663
parent5eb1fc4fa9bce016bba0bda2dde6db44d762465e
ALSA: hda - VIA: Fix codec type for VT1708BCE at the right timing

commit 0341ccd7557fecafe6a79c55158670cf629d269e upstream.

Add get_codec_type() in via_new_spec() function to make sure getting
correct codec type before building mixer controls.

Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_via.c