Skip to content

Commit 216116e

Browse files
mkumardtiwai
authored andcommitted
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 <[email protected]> Acked-by: Sameer Pujar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent ee0761d commit 216116e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/pci/hda/patch_hdmi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3734,13 +3734,18 @@ static int tegra_hdmi_build_pcms(struct hda_codec *codec)
37343734

37353735
static int patch_tegra_hdmi(struct hda_codec *codec)
37363736
{
3737+
struct hdmi_spec *spec;
37373738
int err;
37383739

37393740
err = patch_generic_hdmi(codec);
37403741
if (err)
37413742
return err;
37423743

37433744
codec->patch_ops.build_pcms = tegra_hdmi_build_pcms;
3745+
spec = codec->spec;
3746+
spec->chmap.ops.chmap_cea_alloc_validate_get_type =
3747+
nvhdmi_chmap_cea_alloc_validate_get_type;
3748+
spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate;
37443749

37453750
return 0;
37463751
}

0 commit comments

Comments
 (0)