Lines Matching full:mclk
70 unsigned int mclk; in rockchip_sound_max98357a_hw_params() local
73 mclk = params_rate(params) * SOUND_FS; in rockchip_sound_max98357a_hw_params()
75 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 0, mclk, 0); in rockchip_sound_max98357a_hw_params()
78 __func__, mclk, ret); in rockchip_sound_max98357a_hw_params()
91 unsigned int mclk; in rockchip_sound_rt5514_hw_params() local
94 mclk = params_rate(params) * SOUND_FS; in rockchip_sound_rt5514_hw_params()
96 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, in rockchip_sound_rt5514_hw_params()
104 mclk, SND_SOC_CLOCK_IN); in rockchip_sound_rt5514_hw_params()
123 int mclk, ret; in rockchip_sound_da7219_hw_params() local
125 /* in bypass mode, the mclk has to be one of the frequencies below */ in rockchip_sound_da7219_hw_params()
134 mclk = 12288000; in rockchip_sound_da7219_hw_params()
140 mclk = 11289600; in rockchip_sound_da7219_hw_params()
146 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, mclk, in rockchip_sound_da7219_hw_params()
153 ret = snd_soc_dai_set_sysclk(codec_dai, 0, mclk, in rockchip_sound_da7219_hw_params()
162 dev_err(codec_dai->dev, "Can't set pll sysclk mclk %d\n", ret); in rockchip_sound_da7219_hw_params()
194 /* We need default MCLK and PLL settings for the accessory detection */ in rockchip_sound_da7219_init()
204 dev_err(codec_dai->dev, "Init can't set pll sysclk mclk %d\n", ret); in rockchip_sound_da7219_init()
240 unsigned int mclk; in rockchip_sound_dmic_hw_params() local
243 mclk = params_rate(params) * SOUND_FS; in rockchip_sound_dmic_hw_params()
245 ret = snd_soc_dai_set_sysclk(snd_soc_rtd_to_cpu(rtd, 0), 0, mclk, 0); in rockchip_sound_dmic_hw_params()
248 __func__, mclk, ret); in rockchip_sound_dmic_hw_params()