Home
last modified time | relevance | path

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

12

/linux-6.6.21/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 …]
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/
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-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/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.c53 unsigned long mclk_freq; member
219 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params()
530 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe()
607 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
632 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
633 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
702 priv->codec_priv.free_freq = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
/linux-6.6.21/drivers/soundwire/
Dbus.c1279 u32 mclk_freq = slave->bus->prop.mclk_freq; in sdw_slave_set_frequency() local
1295 if (!mclk_freq) { in sdw_slave_set_frequency()
1310 if (!(19200000 % mclk_freq)) { in sdw_slave_set_frequency()
1311 mclk_freq = 19200000; in sdw_slave_set_frequency()
1313 } else if (!(24000000 % mclk_freq)) { in sdw_slave_set_frequency()
1314 mclk_freq = 24000000; in sdw_slave_set_frequency()
1316 } else if (!(24576000 % mclk_freq)) { in sdw_slave_set_frequency()
1317 mclk_freq = 24576000; in sdw_slave_set_frequency()
1319 } else if (!(22579200 % mclk_freq)) { in sdw_slave_set_frequency()
1320 mclk_freq = 22579200; in sdw_slave_set_frequency()
[all …]
Dintel_auxdevice.c141 &prop->mclk_freq); in sdw_master_read_intel_prop()
144 prop->mclk_freq /= 2; in sdw_master_read_intel_prop()
/linux-6.6.21/drivers/video/fbdev/nvidia/
Dnv_hw.c247 int mclk_freq, pclk_freq, nvclk_freq, mp_enable; in nv4CalcArbitration() local
253 mclk_freq = arb->mclk_khz; in nv4CalcArbitration()
291 us_m = mclk_loop * 1000 * 1000 / mclk_freq; in nv4CalcArbitration()
301 (vpagemiss * pagemiss) * 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()
325 crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv4CalcArbitration()
336 crtpagemiss * pagemiss * 1000 * 1000 / mclk_freq; in nv4CalcArbitration()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/staging/greybus/
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()
Daudio_apbridgea.h75 __le32 mclk_freq; /* XXX Remove? */ member
Daudio_codec.h215 __u32 rate, __u32 mclk_freq);
/linux-6.6.21/drivers/video/fbdev/riva/
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()
716 vpm_us = (vpagemiss * pagemiss)*1000*1000/mclk_freq; in nv4CalcArbitration()
717 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
720 video_fill_us = cbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration()
727 if (nvclk_freq * 2 > mclk_freq * width) in nv4CalcArbitration()
730 video_fill_us = vbs*1000*1000 / (8 * width) / mclk_freq; in nv4CalcArbitration()
731 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration()
746 cpm_us = crtpagemiss * pagemiss *1000*1000/ mclk_freq; in nv4CalcArbitration()
[all …]
/linux-6.6.21/drivers/iio/adc/
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()
600 st->mclk_freq = clk_get_rate(st->mclk); in ad7768_probe()
/linux-6.6.21/include/media/i2c/
Drj54n1cb0c.h12 unsigned int mclk_freq; member
/linux-6.6.21/include/sound/
Dcs42l73.h16 unsigned int mclk_freq; member
/linux-6.6.21/drivers/mmc/host/
Dsdhci-msm.c595 u32 mclk_freq = 0, config; in msm_cm_dll_set_freq() local
601 mclk_freq = 0; in msm_cm_dll_set_freq()
603 mclk_freq = 1; in msm_cm_dll_set_freq()
605 mclk_freq = 2; in msm_cm_dll_set_freq()
607 mclk_freq = 3; in msm_cm_dll_set_freq()
609 mclk_freq = 4; in msm_cm_dll_set_freq()
611 mclk_freq = 5; in msm_cm_dll_set_freq()
613 mclk_freq = 6; in msm_cm_dll_set_freq()
615 mclk_freq = 7; in msm_cm_dll_set_freq()
619 config |= mclk_freq << CMUX_SHIFT_PHASE_SHIFT; in msm_cm_dll_set_freq()
[all …]
/linux-6.6.21/sound/soc/codecs/
Dnau8825.c2406 if (!nau8825->mclk_freq) { in nau8825_mclk_prepare()
2414 if (nau8825->mclk_freq != freq) { in nau8825_mclk_prepare()
2421 nau8825->mclk_freq = freq; in nau8825_mclk_prepare()
2448 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2450 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2496 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2498 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2544 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
2546 nau8825->mclk_freq = 0; in nau8825_configure_sysclk()
2570 if (nau8825->mclk_freq) { in nau8825_configure_sysclk()
[all …]
/linux-6.6.21/sound/soc/sunxi/
Dsun4i-i2s.c216 unsigned int mclk_freq; member
278 return i2s->mclk_freq; in sun4i_i2s_get_bclk_parent_rate()
377 oversample_rate = i2s->mclk_freq / rate; in sun4i_i2s_set_clk_rate()
392 mclk_div = sun4i_i2s_get_mclk_div(i2s, clk_rate, i2s->mclk_freq); in sun4i_i2s_set_clk_rate()
1064 i2s->mclk_freq = freq; in sun4i_i2s_set_sysclk()
/linux-6.6.21/sound/soc/mediatek/mt8195/
Dmt8195-dai-etdm.c112 unsigned int mclk_freq; member
1940 if (etdm_data->mclk_freq) { in mtk_dai_etdm_mclk_configure()
1954 etdm_data->mclk_freq); in mtk_dai_etdm_mclk_configure()
2164 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
2182 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
2478 if (etdm_data->mclk_freq) { in mtk_dai_etdm_probe()
2480 etdm_data->mclk_freq); in mtk_dai_etdm_probe()
/linux-6.6.21/drivers/video/fbdev/
Ds3fb.c33 int chip, rev, mclk_freq; member
1257 par->mclk_freq = ((vga_rseq(par->state.vgabase, 0x11) + 2) * 14318) / ((regval & 0x1F) + 2); in s3_pci_probe()
1258 par->mclk_freq = par->mclk_freq >> (regval >> 5); in s3_pci_probe()
1353 info->fix.smem_len >> 20, (par->mclk_freq + 500) / 1000); in s3_pci_probe()
/linux-6.6.21/drivers/media/i2c/
Dhi846.c2066 u32 mclk_freq; in hi846_probe() local
2086 mclk_freq = clk_get_rate(hi846->clock); in hi846_probe()
2087 if (mclk_freq != 25000000) in hi846_probe()
2090 mclk_freq); in hi846_probe()
/linux-6.6.21/sound/soc/rockchip/
Drockchip_i2s_tdm.c683 unsigned int mclk_freq; in rockchip_i2s_tdm_set_mclk() local
708 mclk_freq = i2s_tdm->mclk_tx_freq; in rockchip_i2s_tdm_set_mclk()
711 mclk_freq = i2s_tdm->mclk_rx_freq; in rockchip_i2s_tdm_set_mclk()
714 ret = clk_set_rate(*mclk, mclk_freq); in rockchip_i2s_tdm_set_mclk()
/linux-6.6.21/sound/soc/mediatek/mt8188/
Dmt8188-dai-etdm.c103 unsigned int mclk_freq; member
432 etdm_data->mclk_freq); in mtk_dai_etdm_enable_mclk()
515 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect()
519 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect()
2245 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()
2268 etdm_data->mclk_freq = freq; in mtk_dai_etdm_cal_mclk()

12