OSDN Git Service

ALSA: hda: Fix 2 channel swapping for Tegra
authorMohan Kumar <mkumard@nvidia.com>
Tue, 25 Aug 2020 05:24:14 +0000 (10:54 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2020 07:32:06 +0000 (09:32 +0200)
commit216116eae43963c662eb84729507bad95214ca6b
treedbd1b34fee164105081a01a4a8ca3fbeec27ec37
parentee0761d1d8222bcc5c86bf10849dc86cf008557c
ALSA: hda: Fix 2 channel swapping for Tegra

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>
sound/pci/hda/patch_hdmi.c