Skip to content

Commit ed7bca5

Browse files
laklimovbroonie
authored andcommitted
ASoC: qcom: sm8250: add handling of secondary MI2S clock
Add handling of clock related to secondary MI2S_RX in sm8250_snd_startup(). Cc: Srinivas Kandagatla <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Alexey Klimov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 08aa540 commit ed7bca5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sound/soc/qcom/sm8250.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ static int sm8250_snd_startup(struct snd_pcm_substream *substream)
6363
snd_soc_dai_set_fmt(cpu_dai, fmt);
6464
snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
6565
break;
66+
case SECONDARY_MI2S_RX:
67+
codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
68+
snd_soc_dai_set_sysclk(cpu_dai,
69+
Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT,
70+
MI2S_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK);
71+
snd_soc_dai_set_fmt(cpu_dai, fmt);
72+
snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt);
73+
break;
6674
case TERTIARY_MI2S_RX:
6775
codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S;
6876
snd_soc_dai_set_sysclk(cpu_dai,

0 commit comments

Comments
 (0)