From: Takashi Iwai Date: Mon, 16 Mar 2015 09:18:08 +0000 (+0100) Subject: ALSA: hda - Treat stereo-to-mono mix properly X-Git-Tag: omap-for-v4.2/o2_dc~297^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc261738add93947d138d2fabad9f4dbed4e5c00;p=pandora-kernel.git ALSA: hda - Treat stereo-to-mono mix properly 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 Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed