Commit cc4db0e2 authored by Harsha Priya N's avatar Harsha Priya N Committed by Mark Brown

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: default avatarHarsha Priya <harshapriya.n@intel.com>
Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0dfa7a04
...@@ -365,11 +365,18 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream, ...@@ -365,11 +365,18 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
return ret; return ret;
} }
} }
if (!strcmp(codec_dai->component->name, MAXIM_DEV0_NAME) || if (!strcmp(codec_dai->component->name, MAXIM_DEV0_NAME)) {
!strcmp(codec_dai->component->name, MAXIM_DEV1_NAME)) { ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16);
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xF0, 3, 8, 16);
if (ret < 0) { if (ret < 0) {
dev_err(rtd->dev, "set TDM slot err:%d\n", ret); dev_err(rtd->dev, "DEV0 TDM slot err:%d\n", ret);
return ret;
}
}
if (!strcmp(codec_dai->component->name, MAXIM_DEV1_NAME)) {
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0xC0, 3, 8, 16);
if (ret < 0) {
dev_err(rtd->dev, "DEV1 TDM slot err:%d\n", ret);
return ret; return ret;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment