Skip to content

Commit 4bb16cd

Browse files
sathya-nujellabroonie
authored andcommitted
ASoC: hdac_hda: Update hdac hda dai table to include intel-hdmi-hifi4
TGL supports more than three HDMI Dai's. So, update hdac_hda_dais table to include 4th DAI. Without this patch, we saw the below error in TGL DUT: sof_rt5682 tgl_max98357a_rt5682: ASoC: CODEC DAI intel-hdmi-hifi4 not Signed-off-by: Sathyanarayana Nujella <[email protected]> Signed-off-by: Jairaj Arava <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e68d669 commit 4bb16cd

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

sound/soc/codecs/hdac_hda.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,19 @@ static struct snd_soc_dai_driver hdac_hda_dais[] = {
164164
.sig_bits = 24,
165165
},
166166
},
167+
{
168+
.id = HDAC_HDMI_3_DAI_ID,
169+
.name = "intel-hdmi-hifi4",
170+
.ops = &hdac_hda_dai_ops,
171+
.playback = {
172+
.stream_name = "hifi4",
173+
.channels_min = 1,
174+
.channels_max = 32,
175+
.rates = STUB_HDMI_RATES,
176+
.formats = STUB_FORMATS,
177+
.sig_bits = 24,
178+
},
179+
},
167180

168181
};
169182

@@ -346,6 +359,9 @@ static struct hda_pcm *snd_soc_find_pcm_from_dai(struct hdac_hda_priv *hda_pvt,
346359
case HDAC_HDMI_2_DAI_ID:
347360
pcm_name = "HDMI 2";
348361
break;
362+
case HDAC_HDMI_3_DAI_ID:
363+
pcm_name = "HDMI 3";
364+
break;
349365
default:
350366
dev_err(&hcodec->core.dev, "invalid dai id %d\n", dai->id);
351367
return NULL;

sound/soc/codecs/hdac_hda.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ enum {
1313
HDAC_HDMI_0_DAI_ID,
1414
HDAC_HDMI_1_DAI_ID,
1515
HDAC_HDMI_2_DAI_ID,
16-
HDAC_LAST_DAI_ID = HDAC_HDMI_2_DAI_ID,
16+
HDAC_HDMI_3_DAI_ID,
17+
HDAC_LAST_DAI_ID = HDAC_HDMI_3_DAI_ID,
1718
};
1819

1920
struct hdac_hda_pcm {

0 commit comments

Comments
 (0)