ALSA: hda: Fix 2 channel swapping for Tegra
commite2cd808ebe9c789e4f01fb1faf0df0379cc830eb
authorMohan Kumar <mkumard@nvidia.com>
Tue, 25 Aug 2020 05:24:14 +0000 (25 10:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 06:46:09 +0000 (23 08:46 +0200)
treee69ff4a8af8e17fffaf0e15e2b856630c4b78da6
parent5e3b1827189fb31b46ccf130efbfdb2992b7a825
ALSA: hda: Fix 2 channel swapping for Tegra

[ Upstream commit 216116eae43963c662eb84729507bad95214ca6b ]

The Tegra HDA codec HW implementation has an issue related to not
swapping the 2 channel Audio Sample Packet(ASP) channel mapping.
Whatever the FL and FR mapping specified the left channel always
comes out of left speaker and right channel on right speaker. So
add condition to disallow the swapping of FL,FR during the playback.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Acked-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/20200825052415.20626-2-mkumard@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_hdmi.c