Home
last modified time | relevance | path

Searched refs:mclk_freq (Results 1 – 11 of 11) sorted by relevance

/sound/pci/oxygen/
Dxonar_dg.c186 unsigned char mclk_freq; in set_cs4245_dac_params() local
189 mclk_freq = data->cs4245_shadow[CS4245_MCLK_FREQ] & ~CS4245_MCLK1_MASK; in set_cs4245_dac_params()
192 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params()
195 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params()
198 mclk_freq |= CS4245_MCLK_2 << CS4245_MCLK1_SHIFT; in set_cs4245_dac_params()
201 data->cs4245_shadow[CS4245_MCLK_FREQ] = mclk_freq; in set_cs4245_dac_params()
211 unsigned char mclk_freq; in set_cs4245_adc_params() local
214 mclk_freq = data->cs4245_shadow[CS4245_MCLK_FREQ] & ~CS4245_MCLK2_MASK; in set_cs4245_adc_params()
217 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK2_SHIFT; in set_cs4245_adc_params()
220 mclk_freq |= CS4245_MCLK_1 << CS4245_MCLK2_SHIFT; in set_cs4245_adc_params()
[all …]
/sound/soc/samsung/
Dsmdk_wm8994pcm.c49 unsigned long mclk_freq; in smdk_wm8994_pcm_hw_params() local
62 mclk_freq = params_rate(params) * rfs; in smdk_wm8994_pcm_hw_params()
65 mclk_freq, SND_SOC_CLOCK_IN); in smdk_wm8994_pcm_hw_params()
70 SMDK_WM8994_FREQ, mclk_freq); in smdk_wm8994_pcm_hw_params()
76 mclk_freq, SND_SOC_CLOCK_IN); in smdk_wm8994_pcm_hw_params()
/sound/soc/intel/boards/
Dsof_wm8804.c58 long mclk_freq; in sof_wm8804_hw_params() local
71 mclk_freq = samplerate * 256; in sof_wm8804_hw_params()
74 mclk_freq = samplerate * 128; in sof_wm8804_hw_params()
127 ret = snd_soc_dai_set_pll(codec_dai, 0, 0, sysclk, mclk_freq); in sof_wm8804_hw_params()
/sound/soc/fsl/
Dimx-card.c301 unsigned long mclk_freq; in imx_aif_hw_params() local
356 mclk_freq = akcodec_get_mclk_rate(substream, params, slots, slot_width); in imx_aif_hw_params()
358 mclk_freq = params_rate(params) * slots * slot_width; in imx_aif_hw_params()
363 mclk_freq = IMX_CARD_MCLK_22P5792MHZ; in imx_aif_hw_params()
365 mclk_freq = IMX_CARD_MCLK_24P576MHZ; in imx_aif_hw_params()
368 ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq, in imx_aif_hw_params()
371 dev_err(dev, "failed to set cpui dai mclk1 rate (%lu): %d\n", mclk_freq, ret); in imx_aif_hw_params()
382 unsigned long mclk_freq; in ak5558_hw_rule_rate() local
391 mclk_freq = fs * akcodec_rates[i]; in ak5558_hw_rule_rate()
393 mclk_freq *= link_data->one2one_ratio ? 1 : 2; in ak5558_hw_rule_rate()
[all …]
Dfsl-asoc-card.c47 unsigned long mclk_freq; member
207 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params()
522 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe()
596 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
616 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
617 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
677 priv->codec_priv.free_freq = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
/sound/soc/ti/
Domap-abe-twl6040.c40 int mclk_freq; /* MCLK frequency speed for twl6040 */ member
57 freq = priv->mclk_freq; in omap_abe_hw_params()
287 of_property_read_u32(node, "ti,mclk-freq", &priv->mclk_freq); in omap_abe_probe()
288 if (!priv->mclk_freq) { in omap_abe_probe()
/sound/soc/codecs/
Dnau8825.c2122 if (!nau8825->mclk_freq) { in nau8825_mclk_prepare()
2130 if (nau8825->mclk_freq != freq) { in nau8825_mclk_prepare()
2137 nau8825->mclk_freq = freq; in nau8825_mclk_prepare()
2164 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2166 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2212 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2214 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2260 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2262 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2286 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
[all …]
Dnau8825.h455 int mclk_freq; /* 0 - mclk is disabled */ member
Dwm8904.c1811 unsigned long mclk_freq; in wm8904_set_sysclk() local
1822 mclk_freq = clk_get_rate(priv->mclk); in wm8904_set_sysclk()
1824 if (mclk_freq != freq) { in wm8904_set_sysclk()
1828 mclk_freq, freq); in wm8904_set_sysclk()
/sound/soc/sunxi/
Dsun4i-i2s.c205 unsigned int mclk_freq; member
267 return i2s->mclk_freq; in sun4i_i2s_get_bclk_parent_rate()
366 oversample_rate = i2s->mclk_freq / rate; in sun4i_i2s_set_clk_rate()
381 mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); in sun4i_i2s_set_clk_rate()
1046 i2s->mclk_freq = freq; in sun4i_i2s_set_sysclk()
/sound/soc/mediatek/mt8195/
Dmt8195-dai-etdm.c112 unsigned int mclk_freq; member
1862 if (etdm_data->mclk_freq) { in mtk_dai_etdm_mclk_configure()
1876 etdm_data->mclk_freq); in mtk_dai_etdm_mclk_configure()
2069 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
2087 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
2377 if (etdm_data->mclk_freq) { in mtk_dai_etdm_probe()
2379 etdm_data->mclk_freq); in mtk_dai_etdm_probe()