未验证 提交 9019ab10 编写于 作者: C Cheng-Yi Chiang 提交者: Mark Brown

ASoC: sdm845: Set DAI format for dmic codec

Set codec DAI format for dmic codec in startup.
Signed-off-by: NCheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 0ddb0fb0
...@@ -248,12 +248,14 @@ static int sdm845_snd_startup(struct snd_pcm_substream *substream) ...@@ -248,12 +248,14 @@ static int sdm845_snd_startup(struct snd_pcm_substream *substream)
break; break;
case SECONDARY_MI2S_TX: case SECONDARY_MI2S_TX:
codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
if (++(data->sec_mi2s_clk_count) == 1) { if (++(data->sec_mi2s_clk_count) == 1) {
snd_soc_dai_set_sysclk(cpu_dai, snd_soc_dai_set_sysclk(cpu_dai,
Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT, Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT,
MI2S_BCLK_RATE, SNDRV_PCM_STREAM_CAPTURE); MI2S_BCLK_RATE, SNDRV_PCM_STREAM_CAPTURE);
} }
snd_soc_dai_set_fmt(cpu_dai, fmt); snd_soc_dai_set_fmt(cpu_dai, fmt);
snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
break; break;
case QUATERNARY_TDM_RX_0: case QUATERNARY_TDM_RX_0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册