Home
last modified time | relevance | path

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

12

/linux/sound/pci/oxygen/
A 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
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()
223 mclk_freq |= CS4245_MCLK_2 << CS4245_MCLK2_SHIFT; in set_cs4245_adc_params()
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv04/
A Darb.c59 int mclk_freq, pclk_freq, nvclk_freq; in nv04_calc_arb() local
64 mclk_freq = arb->mclk_khz; in nv04_calc_arb()
80 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv04_calc_arb()
87 cpm_us = crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv04_calc_arb()
93 p1 = m1 * pclk_freq / mclk_freq; in nv04_calc_arb()
112 int pclk_freq, nvclk_freq, mclk_freq; in nv10_calc_arb() local
121 mclk_freq = arb->mclk_khz; in nv10_calc_arb()
123 fill_rate = mclk_freq * arb->memory_width / 8; /* kB/s */ in nv10_calc_arb()
152 fill_lat = mclks * 1000 * 1000 / mclk_freq /* minimum mclk latency */ in nv10_calc_arb()
163 extra_lat = xclks * 1000 * 1000 / mclk_freq; in nv10_calc_arb()
/linux/sound/soc/samsung/
A 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()
/linux/drivers/soundwire/
A Dbus.c1168 u32 mclk_freq = slave->bus->prop.mclk_freq; in sdw_slave_set_frequency() local
1183 if (!mclk_freq) { in sdw_slave_set_frequency()
1198 if (!(19200000 % mclk_freq)) { in sdw_slave_set_frequency()
1199 mclk_freq = 19200000; in sdw_slave_set_frequency()
1202 mclk_freq = 24000000; in sdw_slave_set_frequency()
1205 mclk_freq = 24576000; in sdw_slave_set_frequency()
1208 mclk_freq = 22579200; in sdw_slave_set_frequency()
1211 mclk_freq = 32000000; in sdw_slave_set_frequency()
1216 mclk_freq); in sdw_slave_set_frequency()
1220 if (mclk_freq % curr_freq) { in sdw_slave_set_frequency()
[all …]
/linux/sound/soc/intel/boards/
A 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()
/linux/sound/soc/fsl/
A Dimx-card.c297 unsigned long mclk_freq; in imx_aif_hw_params() local
352 mclk_freq = akcodec_get_mclk_rate(substream, params); in imx_aif_hw_params()
354 mclk_freq = params_rate(params) * slots * slot_width; in imx_aif_hw_params()
357 mclk_freq = 22579200; in imx_aif_hw_params()
359 ret = snd_soc_dai_set_sysclk(cpu_dai, link_data->cpu_sysclk_id, mclk_freq, in imx_aif_hw_params()
362 dev_err(dev, "failed to set cpui dai mclk1 rate (%lu): %d\n", mclk_freq, ret); in imx_aif_hw_params()
373 unsigned long mclk_freq; in ak5558_hw_rule_rate() local
382 mclk_freq = fs * akcodec_rates[i]; in ak5558_hw_rule_rate()
384 mclk_freq *= link_data->one2one_ratio ? 1 : 2; in ak5558_hw_rule_rate()
387 if (mclk_freq > 36864000) in ak5558_hw_rule_rate()
A 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()
595 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
615 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
616 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
676 priv->codec_priv.free_freq = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
/linux/drivers/video/fbdev/nvidia/
A Dnv_hw.c253 mclk_freq = arb->mclk_khz; in nv4CalcArbitration()
291 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv4CalcArbitration()
302 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
308 mclk_freq; in nv4CalcArbitration()
317 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
323 mclk_freq; in nv4CalcArbitration()
342 p1 = m1 * pclk_freq / mclk_freq; in nv4CalcArbitration()
432 mclk_freq = arb->mclk_khz; in nv10CalcArbitration()
494 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv10CalcArbitration()
496 us_m_min = mclks * 1000 * 1000 / mclk_freq; in nv10CalcArbitration()
[all …]
/linux/sound/soc/ti/
A 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()
/linux/drivers/video/fbdev/riva/
A Driva_hw.c661 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv4CalcArbitration() local
667 mclk_freq = arb->mclk_khz; in nv4CalcArbitration()
706 us_m = mclk_loop *1000*1000 / mclk_freq; in nv4CalcArbitration()
717 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
727 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
752 p1 = m1 * pclk_freq / mclk_freq; in nv4CalcArbitration()
843 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv10CalcArbitration() local
854 mclk_freq = arb->mclk_khz; in nv10CalcArbitration()
938 vpm_us = (vpagemiss * pagemiss)*1000*1000/mclk_freq; in nv10CalcArbitration()
942 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv10CalcArbitration()
[all …]
/linux/drivers/staging/greybus/
A Daudio_apbridgea.c14 __u32 mclk_freq) in gb_audio_apbridgea_set_config() argument
22 req.mclk_freq = cpu_to_le32(mclk_freq); in gb_audio_apbridgea_set_config()
A Daudio_apbridgea.h75 __le32 mclk_freq; /* XXX Remove? */ member
A Daudio_codec.h214 __u32 rate, __u32 mclk_freq);
/linux/drivers/iio/adc/
A Dad7768-1.c159 unsigned int mclk_freq; member
306 res = DIV_ROUND_CLOSEST(st->mclk_freq, freq); in ad7768_set_freq()
331 st->samp_freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_set_freq()
347 freq = DIV_ROUND_CLOSEST(st->mclk_freq, in ad7768_sampling_freq_avail()
615 st->mclk_freq = clk_get_rate(st->mclk); in ad7768_probe()
/linux/sound/soc/codecs/
A Dnau8825.c2159 if (!nau8825->mclk_freq) { in nau8825_mclk_prepare()
2174 nau8825->mclk_freq = freq; in nau8825_mclk_prepare()
2201 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2203 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2249 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2251 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2297 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2299 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2323 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2325 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
[all …]
A Dnau8825.h455 int mclk_freq; /* 0 - mclk is disabled */ member
A Dwm8904.c1804 unsigned long mclk_freq; in wm8904_set_sysclk() local
1815 mclk_freq = clk_get_rate(priv->mclk); in wm8904_set_sysclk()
1817 if (mclk_freq != freq) { in wm8904_set_sysclk()
1821 mclk_freq, freq); in wm8904_set_sysclk()
/linux/include/media/i2c/
A Drj54n1cb0c.h12 unsigned int mclk_freq; member
/linux/include/sound/
A Dcs42l73.h16 unsigned int mclk_freq; member
/linux/drivers/mmc/host/
A Dsdhci-msm.c590 u32 mclk_freq = 0, config; in msm_cm_dll_set_freq() local
596 mclk_freq = 0; in msm_cm_dll_set_freq()
598 mclk_freq = 1; in msm_cm_dll_set_freq()
600 mclk_freq = 2; in msm_cm_dll_set_freq()
602 mclk_freq = 3; in msm_cm_dll_set_freq()
604 mclk_freq = 4; in msm_cm_dll_set_freq()
606 mclk_freq = 5; in msm_cm_dll_set_freq()
608 mclk_freq = 6; in msm_cm_dll_set_freq()
610 mclk_freq = 7; in msm_cm_dll_set_freq()
679 u32 mclk_freq = 0; in msm_init_cm_dll() local
[all …]
/linux/sound/soc/sunxi/
A 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()
/linux/sound/soc/mediatek/mt8195/
A 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()
/linux/drivers/video/fbdev/
A Ds3fb.c32 int chip, rev, mclk_freq; member
1247 par->mclk_freq = ((vga_rseq(par->state.vgabase, 0x11) + 2) * 14318) / ((regval & 0x1F) + 2); in s3_pci_probe()
1248 par->mclk_freq = par->mclk_freq >> (regval >> 5); in s3_pci_probe()
1343 info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000); in s3_pci_probe()
/linux/drivers/media/i2c/
A Dhi846.c2056 u32 mclk_freq; in hi846_probe() local
2076 mclk_freq = clk_get_rate(hi846->clock); in hi846_probe()
2077 if (mclk_freq != 25000000) in hi846_probe()
2080 mclk_freq); in hi846_probe()
/linux/sound/soc/rockchip/
A Drockchip_i2s_tdm.c685 unsigned int mclk_freq; in rockchip_i2s_tdm_set_mclk() local
710 mclk_freq = i2s_tdm->mclk_tx_freq; in rockchip_i2s_tdm_set_mclk()
713 mclk_freq = i2s_tdm->mclk_rx_freq; in rockchip_i2s_tdm_set_mclk()
716 ret = clk_set_rate(*mclk, mclk_freq); in rockchip_i2s_tdm_set_mclk()

Completed in 82 milliseconds

12