ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs
commit557d644e64dfa3715f5c71d7e7ca218becebba52
authorTakashi Iwai <tiwai@suse.de>
Tue, 10 Jan 2012 14:16:02 +0000 (10 15:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Jan 2012 15:31:53 +0000 (18 07:31 -0800)
tree3ae4aa4bb40b9325e412b539d25f652d12346924
parent1e84380498cefb3a825aaf4596ceed73757013d1
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