From: Mohan Kumar <mkumard@nvidia.com> To: <tiwai@suse.com>, <aplattner@nvidia.com>, <spujar@nvidia.com> Cc: <alsa-devel@alsa-project.org>, <linux-tegra@vger.kernel.org>, <treding@nvidia.com>, <jonathanh@nvidia.com>, Mohan Kumar <mkumard@nvidia.com> Subject: [PATCH 1/2] ALSA: hda: Fix 2 channel swapping for Tegra Date: Tue, 25 Aug 2020 10:54:14 +0530 [thread overview] Message-ID: <20200825052415.20626-2-mkumard@nvidia.com> (raw) In-Reply-To: <20200825052415.20626-1-mkumard@nvidia.com> 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> --- sound/pci/hda/patch_hdmi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index b8c8490e568b..3259d713ace9 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -3734,6 +3734,7 @@ static int tegra_hdmi_build_pcms(struct hda_codec *codec) static int patch_tegra_hdmi(struct hda_codec *codec) { + struct hdmi_spec *spec; int err; err = patch_generic_hdmi(codec); @@ -3741,6 +3742,10 @@ static int patch_tegra_hdmi(struct hda_codec *codec) return err; codec->patch_ops.build_pcms = tegra_hdmi_build_pcms; + spec = codec->spec; + spec->chmap.ops.chmap_cea_alloc_validate_get_type = + nvhdmi_chmap_cea_alloc_validate_get_type; + spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; return 0; } -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Mohan Kumar <mkumard@nvidia.com> To: <tiwai@suse.com>, <aplattner@nvidia.com>, <spujar@nvidia.com> Cc: linux-tegra@vger.kernel.org, alsa-devel@alsa-project.org, treding@nvidia.com, Mohan Kumar <mkumard@nvidia.com>, jonathanh@nvidia.com Subject: [PATCH 1/2] ALSA: hda: Fix 2 channel swapping for Tegra Date: Tue, 25 Aug 2020 10:54:14 +0530 [thread overview] Message-ID: <20200825052415.20626-2-mkumard@nvidia.com> (raw) In-Reply-To: <20200825052415.20626-1-mkumard@nvidia.com> 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> --- sound/pci/hda/patch_hdmi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index b8c8490e568b..3259d713ace9 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -3734,6 +3734,7 @@ static int tegra_hdmi_build_pcms(struct hda_codec *codec) static int patch_tegra_hdmi(struct hda_codec *codec) { + struct hdmi_spec *spec; int err; err = patch_generic_hdmi(codec); @@ -3741,6 +3742,10 @@ static int patch_tegra_hdmi(struct hda_codec *codec) return err; codec->patch_ops.build_pcms = tegra_hdmi_build_pcms; + spec = codec->spec; + spec->chmap.ops.chmap_cea_alloc_validate_get_type = + nvhdmi_chmap_cea_alloc_validate_get_type; + spec->chmap.ops.chmap_validate = nvhdmi_chmap_validate; return 0; } -- 2.17.1
next prev parent reply other threads:[~2020-08-25 5:24 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-08-25 5:24 [PATCH 0/2] Tegra HDA specific fixes Mohan Kumar 2020-08-25 5:24 ` Mohan Kumar 2020-08-25 5:24 ` Mohan Kumar [this message] 2020-08-25 5:24 ` [PATCH 1/2] ALSA: hda: Fix 2 channel swapping for Tegra Mohan Kumar 2020-08-25 7:36 ` Takashi Iwai 2020-08-25 7:36 ` Takashi Iwai 2020-08-25 5:24 ` [PATCH 2/2] ALSA: hda/tegra: Program WAKEEN register " Mohan Kumar 2020-08-25 5:24 ` Mohan Kumar 2020-08-25 7:36 ` Takashi Iwai 2020-08-25 7:36 ` Takashi Iwai 2020-08-25 5:31 ` [PATCH 0/2] Tegra HDA specific fixes Sameer Pujar 2020-08-25 5:31 ` Sameer Pujar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200825052415.20626-2-mkumard@nvidia.com \ --to=mkumard@nvidia.com \ --cc=alsa-devel@alsa-project.org \ --cc=aplattner@nvidia.com \ --cc=jonathanh@nvidia.com \ --cc=linux-tegra@vger.kernel.org \ --cc=spujar@nvidia.com \ --cc=tiwai@suse.com \ --cc=treding@nvidia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.