]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Jan 2012 14:16:02 +0000 (15:16 +0100)
commita00fe6044cb3f6db08c26d6690455508f7c07255
tree4e04f621007f5901855a4616dcdc333671139f3e
parentd01719c465324858412a6676d05893994963d0a0
ALSA: hda - Fix the detection of "Loopback Mixing" control for VIA codecs

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.

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c