We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ff933 commit ebbdb1aCopy full SHA for ebbdb1a
sound/soc/fsl/fsl_sai.c
@@ -917,8 +917,14 @@ static int fsl_sai_startup(struct snd_pcm_substream *substream,
917
tx ? sai->dma_params_tx.maxburst :
918
sai->dma_params_rx.maxburst);
919
920
- ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
921
- SNDRV_PCM_HW_PARAM_RATE, &sai->constraint_rates);
+ if (sai->is_consumer_mode[tx])
+ ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
922
+ SNDRV_PCM_HW_PARAM_RATE,
923
+ &fsl_sai_rate_constraints);
924
+ else
925
926
927
+ &sai->constraint_rates);
928
929
return ret;
930
}
0 commit comments