]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix default multichannel HDMI mapping regression
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 3 Feb 2013 15:55:45 +0000 (17:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2013 09:26:44 +0000 (10:26 +0100)
commit4e3db99b0e8fa43a2645bec1cd01f9d96279bd1d
tree0d9ddfb2b8958e53e34bd4efea38b9490138ab08
parent273c1744363289c497e2f931c683eb16333bd7eb
ALSA: hda - Fix default multichannel HDMI mapping regression

Commit dfe4fd1f3633607232284fae65f19ef64c264b7e ("ALSA: hda - Provide
the proper channel mapping for generic HDMI driver") added support for
custom channel maps in the HDA HDMI driver. Due to a mistake in an
'if' condition the custom map is always used even when no such map has
been set. This causes incorrect channel mapping for multichannel audio
by default.

Pass per_pin->chmap_set to hdmi_setup_channel_mapping() as a parameter
so that it can use it for detecting if a custom map has been set instead
of checking if map is NULL (which is never the case).

Reported-by: Staffan Lindberg <pike@xbmc.org>
Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Cc: stable@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c