]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Treat stereo-to-mono mix properly
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Mar 2015 09:18:08 +0000 (10:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Mar 2015 13:44:03 +0000 (14:44 +0100)
commit5112d2af21d34e8ab7630e6791befd7c5ffabe9e
treedce1925148a516e3a2b015a91b2ce2663206c32e
parent4e813428b23f3210ec3696d8097c405444662f99
ALSA: hda - Treat stereo-to-mono mix properly

The commit [3098afa7f7f1: ALSA: hda - Don't access stereo amps for
mono channel widgets] fixed the handling of mono widgets in general,
but it still misses an exceptional case: namely, a mono mixer widget
taking a single stereo input.  In this case, it has stereo volumes
although it's a mono widget, and thus we have to take care of both
left and right input channels, as stated in HD-audio spec ("7.1.3
Widget Interconnection Rules").

This patch covers this missing piece by adding proper checks of stereo
amps in both the generic parser and the proc output codes.

Reported-by: Raymond Yau <superquad.vortex2@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_proc.c