Skip to content
Snippets Groups Projects
Commit 3a650ee6 authored by Shengjiu Wang's avatar Shengjiu Wang
Browse files

LF-5909-2: ASoC: imx-card: fix DSD mclk frequency


The DSD rate not only DSD64/128/256/512, which are the
multiple rate of 44.1kHz,  but also support the multiple
rate of 48kHz, so can't force all mclk frequency to be
22579200Hz

Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: default avatarChancel Liu <chancel.liu@nxp.com>
parent dda4d6bc
No related branches found
No related tags found
1 merge request!455CI: Update gitlab-ci
...@@ -354,7 +354,7 @@ static int imx_aif_hw_params(struct snd_pcm_substream *substream, ...@@ -354,7 +354,7 @@ static int imx_aif_hw_params(struct snd_pcm_substream *substream,
else else
mclk_freq = params_rate(params) * slots * slot_width; mclk_freq = params_rate(params) * slots * slot_width;
/* Use the maximum freq from DSD512 (512*44100 = 22579200) */ /* Use the maximum freq from DSD512 (512*44100 = 22579200) */
if (format_is_dsd(params)) if (format_is_dsd(params) && (params_rate(params) % 44100 == 0))
mclk_freq = 22579200; mclk_freq = 22579200;
ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq, ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment