ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Jan 2012 14:16:02 +0000 (15:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Jan 2012 00:13:10 +0000 (16:13 -0800)
commit0c7fe97698c04555a492c3fddc3d64efb7bad674
treeb99f4301b826697ca7a979cdc93428ebcd8e4a15
parent6dcb7c2f7d7253ad5a7aec91f6aafdaaa221a2b4
ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs

commit 4808d12d1dddb046ec86425e5f6766f02e950292 upstream.

Currently the driver checks only the out_mix_path[] for the primary
output route for judging whether to create the loopback-mixing control
or not.  But, there are cases where aamix-routing is available only on
headphone or speaker paths but not on the primary output path.  So, the
driver ignores such cases inappropriately.

This patch fixes the check of the loopback-mixing control by testing
all mix-routing paths.

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