Skip to content

Commit ebbdb1a

Browse files
author
Fox Snowpatch
committed
1 parent 85ff933 commit ebbdb1a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sound/soc/fsl/fsl_sai.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,8 +917,14 @@ static int fsl_sai_startup(struct snd_pcm_substream *substream,
917917
tx ? sai->dma_params_tx.maxburst :
918918
sai->dma_params_rx.maxburst);
919919

920-
ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
921-
SNDRV_PCM_HW_PARAM_RATE, &sai->constraint_rates);
920+
if (sai->is_consumer_mode[tx])
921+
ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
922+
SNDRV_PCM_HW_PARAM_RATE,
923+
&fsl_sai_rate_constraints);
924+
else
925+
ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
926+
SNDRV_PCM_HW_PARAM_RATE,
927+
&sai->constraint_rates);
922928

923929
return ret;
924930
}

0 commit comments

Comments
 (0)