Skip to content

Commit cc4db0e

Browse files
harshapriya-nbroonie
authored andcommitted
ASoC: Intel: Enabling 4 slot IV feedback for max98927 on Kabylake platform
This patch enables 4 slot IV feedback for max98927 speaker amp codec. Signed-off-by: Harsha Priya <[email protected]> Acked-By: Vinod Koul <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 0dfa7a0 commit cc4db0e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,18 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
365365
return ret;
366366
}
367367
}
368-
if (!strcmp(codec_dai->component->name, MAXIM_DEV0_NAME) ||
369-
!strcmp(codec_dai->component->name, MAXIM_DEV1_NAME)) {
370-
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xF0, 3, 8, 16);
368+
if (!strcmp(codec_dai->component->name, MAXIM_DEV0_NAME)) {
369+
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16);
371370
if (ret < 0) {
372-
dev_err(rtd->dev, "set TDM slot err:%d\n", ret);
371+
dev_err(rtd->dev, "DEV0 TDM slot err:%d\n", ret);
372+
return ret;
373+
}
374+
}
375+
376+
if (!strcmp(codec_dai->component->name, MAXIM_DEV1_NAME)) {
377+
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xC0, 3, 8, 16);
378+
if (ret < 0) {
379+
dev_err(rtd->dev, "DEV1 TDM slot err:%d\n", ret);
373380
return ret;
374381
}
375382
}

0 commit comments

Comments
 (0)