]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:14:11 +0000 (13:14 +0200)
commitfd2f4b3108fb6e51fe5299db5abdac4f1a9f733d
treea3c71da23e53b6b632099c0d6de9fd001736846d
parent3453d8650b53d37560115a01d3048bbb69b479c2
ALSA: hda - Treat stereo-to-mono mix properly

commit cc261738add93947d138d2fabad9f4dbed4e5c00 upstream.

The commit [ef403edb7558: 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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_proc.c