Skip to content

Commit 0de062c

Browse files
MT-134832: Set SAI1 and SAI2 to dsp_b format (nxp-imx#28)
1 parent 7cf0b16 commit 0de062c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

arch/arm64/boot/dts/freescale/mt-connect.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
model = "imx-audio-card";
142142
pri-dai-link {
143143
link-name = "interproc audio";
144-
format = "i2s";
144+
format = "dsp_b";
145145
dai-tdm-slot-num = <8>;
146146
dai-tdm-slot-width = <32>;
147147
fsl,mclk-equal-bclk;
@@ -156,7 +156,7 @@
156156
model = "imx-audio-card";
157157
pri-dai-link {
158158
link-name = "Headphone audio";
159-
format = "i2s";
159+
format = "dsp_b";
160160
dai-tdm-slot-num = <2>;
161161
dai-tdm-slot-width = <32>;
162162
fsl,mclk-equal-bclk;

sound/soc/fsl/fsl_sai.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ static int fsl_sai_set_dai_fmt_tr(struct snd_soc_dai *cpu_dai,
294294
* data word.
295295
*/
296296
val_cr2 |= FSL_SAI_CR2_BCP;
297-
val_cr4 |= FSL_SAI_CR4_FSE | FSL_SAI_CR4_FSP;
297+
298+
/* NOTE: For some reason, even though we select dsp_b format, this setting is still being
299+
called. The val_cr4 |= FSL_SAI_CR4_FSE | FSL_SAI_CR4_FSP is incorrect. For now on MT Connect
300+
we will use this setting but corrected for our use. We MUST resolve this in future.
301+
*/
298302
break;
299303
case SND_SOC_DAIFMT_LEFT_J:
300304
/*

0 commit comments

Comments
 (0)