public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda: Fix tegra hda dp infoframe struct
@ 2022-09-13  3:44 Mohan Kumar
  2022-09-13  5:40 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Mohan Kumar @ 2022-09-13  3:44 UTC (permalink / raw)
  To: tiwai, perex, thierry.reding
  Cc: jonathanh, linux-tegra, alsa-devel, linux-kernel, Mohan Kumar

Tegra HDA HW expects infoframe data bytes order same for both
HDMI and DP i.e infoframe data starts from 5th bytes offset.
This hw behavior mandates to have dummy bytes for dp infoframe
structure for Tegra.

Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
---
 sound/pci/hda/patch_hdmi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 6c209cd26c0c..a52e764db2e0 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -218,6 +218,9 @@ struct dp_audio_infoframe {
 	u8 type; /* 0x84 */
 	u8 len;  /* 0x1b */
 	u8 ver;  /* 0x11 << 2 */
+#if IS_ENABLED(CONFIG_SND_HDA_TEGRA)
+	u8 checksum; /* Tegra HW expects infoframe bytes from 5th offset */
+#endif
 
 	u8 CC02_CT47;	/* match with HDMI infoframe from this on */
 	u8 SS01_SF24;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-13  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13  3:44 [PATCH] ALSA: hda: Fix tegra hda dp infoframe struct Mohan Kumar
2022-09-13  5:40 ` Takashi Iwai
2022-09-13  6:03   ` Mohan Kumar D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox