Skip to content

Commit ca76447

Browse files
mkumardwebgeek1234
authored andcommitted
ALSA: hda/tegra: Fix 2 channel swapping for Tegra
The HDA codec HW IP 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. Bug 200644654 Change-Id: I41808daadf22e4ce5ec7d263dbd14692c5685277 Signed-off-by: Mohan Kumar <[email protected]> Reviewed-on: https://git-master.nvidia.com/r/c/linux-4.14/+/2396701 (cherry picked from commit 6258a90c199d734c0a37783c946e52fe80d4a6a1) Reviewed-on: https://git-master.nvidia.com/r/c/linux-4.9/+/2402814 Reviewed-by: automaticguardword <[email protected]> Reviewed-by: Viswanath L <[email protected]> Reviewed-by: Sameer Pujar <[email protected]> Reviewed-by: Sharad Gupta <[email protected]> Reviewed-by: mobile promotions <[email protected]> Tested-by: mobile promotions <[email protected]> GVS: Gerrit_Virtual_Submit
1 parent 2a46e84 commit ca76447

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/pci/hda/patch_hdmi.c

+6
Original file line numberDiff line numberDiff line change
@@ -3310,13 +3310,19 @@ static int tegra_hdmi_build_pcms(struct hda_codec *codec)
33103310
static int patch_tegra_hdmi(struct hda_codec *codec)
33113311
{
33123312
int err;
3313+
struct hdmi_spec *spec;
33133314

33143315
err = patch_generic_hdmi(codec);
33153316
if (err)
33163317
return err;
33173318

33183319
codec->patch_ops.build_pcms = tegra_hdmi_build_pcms;
33193320

3321+
spec = codec->spec;
3322+
spec->chmap.ops.chmap_cea_alloc_validate_get_type =
3323+
nvhdmi_chmap_cea_alloc_validate_get_type;
3324+
spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate;
3325+
33203326
return 0;
33213327
}
33223328

0 commit comments

Comments
 (0)