Skip to content

Commit 596e8ba

Browse files
mohsRafibroonie
authored andcommitted
ASoC: qcom: sc8280xp: Enable DAI format configuration for MI2S interfaces
Add support for configuring the DAI format on MI2S interfaces, this enhancement allows setting the appropriate bit clock and frame clock polarity, ensuring correct audio data transmission over MI2S. Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com> Rule: add Link: https://lore.kernel.org/stable/20250908053631.70978-4-mohammad.rafi.shaik%40oss.qualcomm.com Message-ID: <20250908053631.70978-4-mohammad.rafi.shaik@oss.qualcomm.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 33b55b9 commit 596e8ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sound/soc/qcom/sc8280xp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ static int sc8280xp_snd_init(struct snd_soc_pcm_runtime *rtd)
3232
int dp_pcm_id = 0;
3333

3434
switch (cpu_dai->id) {
35+
case PRIMARY_MI2S_RX...QUATERNARY_MI2S_TX:
36+
case QUINARY_MI2S_RX...QUINARY_MI2S_TX:
37+
snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_BP_FP);
38+
break;
3539
case WSA_CODEC_DMA_RX_0:
3640
case WSA_CODEC_DMA_RX_1:
3741
/*

0 commit comments

Comments
 (0)