Home
last modified time | relevance | path

Searched refs:sample_rate (Results 1 – 25 of 162) sorted by relevance

1234567

/linux-6.12.1/drivers/iio/adc/
Dmcp3422.c111 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); in mcp3422_read() local
115 if (sample_rate == MCP3422_SRATE_3) { in mcp3422_read()
125 *value = sign_extend32(temp, mcp3422_sign_extend[sample_rate]); in mcp3422_read()
167 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); in mcp3422_read_raw() local
180 *val2 = mcp3422_scales[sample_rate][pga]; in mcp3422_read_raw()
202 u8 sample_rate = MCP3422_SAMPLE_RATE(config); in mcp3422_write_raw() local
211 if (val2 == mcp3422_scales[sample_rate][i]) { in mcp3422_write_raw()
286 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); in mcp3422_show_scales() local
289 mcp3422_scales[sample_rate][0], in mcp3422_show_scales()
290 mcp3422_scales[sample_rate][1], in mcp3422_show_scales()
[all …]
Dnau7802.c59 u8 sample_rate; member
268 if (st->sample_rate != NAU7802_SAMP_FREQ_320) in nau7802_read_poll()
318 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_read_raw()
349 *val = nau7802_sample_freq_avail[st->sample_rate]; in nau7802_read_raw()
379 st->sample_rate = i; in nau7802_write_raw()
383 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_write_raw()
517 st->sample_rate = NAU7802_SAMP_FREQ_320; in nau7802_probe()
519 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_probe()
/linux-6.12.1/sound/soc/qcom/qdsp6/
Dq6afe.h163 u32 sample_rate; member
168 u32 sample_rate; member
176 u32 sample_rate; member
186 u32 sample_rate; member
199 u16 sample_rate; member
Dq6asm.h38 u32 sample_rate; member
53 u32 sample_rate; member
74 u32 sample_rate; member
87 u32 sample_rate; member
/linux-6.12.1/drivers/gpu/drm/tegra/
Dhda.c22 fmt->sample_rate = 44100; in tegra_hda_parse_format()
24 fmt->sample_rate = 48000; in tegra_hda_parse_format()
29 fmt->sample_rate *= (mul + 1) / (div + 1); in tegra_hda_parse_format()
/linux-6.12.1/sound/pci/echoaudio/
Dlayla24_dsp.c173 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
174 chip->sample_rate = rate; in set_sample_rate()
233 chip->comm_page->sample_rate = in set_sample_rate()
242 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ in set_sample_rate()
243 chip->sample_rate = rate; in set_sample_rate()
265 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
360 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dgina24_dsp.c177 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
178 chip->sample_rate = rate; in set_sample_rate()
227 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
228 chip->sample_rate = rate; in set_sample_rate()
249 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
311 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dlayla20_dsp.c171 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
172 chip->sample_rate = rate; in set_sample_rate()
180 chip->sample_rate = rate; in set_sample_rate()
181 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
196 rate = chip->sample_rate; in set_input_clock()
Dechoaudio_3g.c183 control_reg = set_spdif_bits(chip, control_reg, chip->sample_rate); in set_professional_spdif()
267 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
268 chip->sample_rate = rate; in set_sample_rate()
316 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
317 chip->sample_rate = rate; in set_sample_rate()
341 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
402 chip->sample_rate = 48000; in dsp_set_digital_mode()
Dmona_dsp.c209 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
210 chip->sample_rate = rate; in set_sample_rate()
290 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate()
291 chip->sample_rate = rate; in set_sample_rate()
313 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
387 chip->sample_rate = 48000; in dsp_set_digital_mode()
Ddarla24_dsp.c143 chip->sample_rate = rate; in set_sample_rate()
149 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP ? */ in set_sample_rate()
163 return set_sample_rate(chip, chip->sample_rate); in set_input_clock()
Dgina20_dsp.c133 chip->comm_page->sample_rate = cpu_to_le32(rate); in set_sample_rate()
143 chip->sample_rate = rate; in set_sample_rate()
159 set_sample_rate(chip, chip->sample_rate); in set_input_clock()
/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c18 int sample_rate; member
26 .sample_rate = 500,
69 args.sample_rate = strtol(arg, NULL, 10); in parse_arg()
70 if (args.sample_rate < 0) { in parse_arg()
152 skel->rodata->wakeup_data_size = args.sample_rate * 16; in ringbuf_setup_skeleton()
407 attr.sample_period = args.sample_rate; in perfbuf_libbpf_setup()
408 attr.wakeup_events = args.sample_rate; in perfbuf_libbpf_setup()
414 if (args.sample_rate > args.batch_cnt) { in perfbuf_libbpf_setup()
416 args.sample_rate, args.batch_cnt); in perfbuf_libbpf_setup()
/linux-6.12.1/sound/soc/samsung/
Dlittlemill.c15 static int sample_rate = 44100; variable
40 sample_rate * 512); in littlemill_set_bias_level()
48 sample_rate * 512, in littlemill_set_bias_level()
111 sample_rate = params_rate(params); in littlemill_hw_params()
115 sample_rate * 512); in littlemill_hw_params()
123 sample_rate * 512, in littlemill_hw_params()
Dtobermory.c15 static int sample_rate = 44100; variable
36 sample_rate * 512); in tobermory_set_bias_level()
42 sample_rate * 512, in tobermory_set_bias_level()
103 sample_rate = params_rate(params); in tobermory_hw_params()
/linux-6.12.1/sound/soc/codecs/
Dcs42l42.h40 u32 sample_rate; member
69 unsigned int clk, unsigned int sample_rate);
70 void cs42l42_src_config(struct snd_soc_component *component, unsigned int sample_rate);
Dtlv320aic32x4.c708 unsigned int sample_rate, unsigned int channels, in aic32x4_setup_clocks() argument
733 if (sample_rate <= 48000) { in aic32x4_setup_clocks()
742 } else if (sample_rate <= 96000) { in aic32x4_setup_clocks()
751 } else if (sample_rate == 192000) { in aic32x4_setup_clocks()
770 max_dosr = (AIC32X4_MAX_DOSR_FREQ / sample_rate / dosr_increment) * in aic32x4_setup_clocks()
772 min_dosr = (AIC32X4_MIN_DOSR_FREQ / sample_rate / dosr_increment) * in aic32x4_setup_clocks()
774 max_nadc = AIC32X4_MAX_CODEC_CLKIN_FREQ / (madc * aosr * sample_rate); in aic32x4_setup_clocks()
777 adc_clock_rate = nadc * madc * aosr * sample_rate; in aic32x4_setup_clocks()
782 (min_mdac * dosr * sample_rate); in aic32x4_setup_clocks()
786 sample_rate; in aic32x4_setup_clocks()
[all …]
/linux-6.12.1/drivers/iio/dac/
Dadi-axi-dac.c249 u64 sample_rate, unsigned int freq, in __axi_dac_frequency_set() argument
256 if (!sample_rate || freq > sample_rate / 2) { in __axi_dac_frequency_set()
258 freq, sample_rate); in __axi_dac_frequency_set()
267 raw = DIV64_U64_ROUND_CLOSEST((u64)freq * BIT(16), sample_rate); in __axi_dac_frequency_set()
470 u64 sample_rate) in axi_dac_set_sample_rate() argument
476 if (!sample_rate) in axi_dac_set_sample_rate()
491 st->dac_clk = sample_rate; in axi_dac_set_sample_rate()
500 ret = __axi_dac_frequency_set(st, chan, sample_rate, tone, freq); in axi_dac_set_sample_rate()
505 st->dac_clk = sample_rate; in axi_dac_set_sample_rate()
Dad9739a.c76 unsigned long sample_rate; member
128 *val = st->sample_rate; in ad9739a_read_raw()
381 st->sample_rate = clk_get_rate(clk); in ad9739a_probe()
382 if (!in_range(st->sample_rate, AD9739A_MIN_DAC_CLK, in ad9739a_probe()
386 st->sample_rate, AD9739A_MIN_DAC_CLK, in ad9739a_probe()
420 ret = iio_backend_set_sampling_freq(st->back, 0, st->sample_rate); in ad9739a_probe()
/linux-6.12.1/sound/soc/sunxi/
Dsun8i-codec.c204 unsigned int sample_rate; member
283 static int sun8i_codec_get_hw_rate(unsigned int sample_rate) in sun8i_codec_get_hw_rate() argument
285 switch (sample_rate) { in sun8i_codec_get_hw_rate()
327 max_rate = max(max_rate, aif->sample_rate); in sun8i_codec_update_sample_rate()
541 unsigned int sample_rate) in sun8i_codec_get_bclk_div() argument
543 unsigned int div = sysclk_rate / sample_rate >> lrck_div_order; in sun8i_codec_get_bclk_div()
567 static unsigned int sun8i_codec_get_sysclk_rate(unsigned int sample_rate) in sun8i_codec_get_sysclk_rate() argument
569 return (sample_rate % 4000) ? 22579200 : 24576000; in sun8i_codec_get_sysclk_rate()
578 unsigned int sample_rate = params_rate(params); in sun8i_codec_hw_params() local
581 unsigned int sysclk_rate = sun8i_codec_get_sysclk_rate(sample_rate); in sun8i_codec_hw_params()
[all …]
/linux-6.12.1/sound/soc/intel/boards/
Dsof_wm8804.c24 int sample_rate; member
65 if (samplerate == ctx->sample_rate) in sof_wm8804_hw_params()
68 ctx->sample_rate = 0; in sof_wm8804_hw_params()
145 ctx->sample_rate = samplerate; in sof_wm8804_hw_params()
/linux-6.12.1/sound/pci/pcxhr/
Dpcxhr.c414 int *sample_rate) in pcxhr_sub_get_external_clock() argument
470 *sample_rate = rate; in pcxhr_sub_get_external_clock()
477 int *sample_rate) in pcxhr_get_external_clock() argument
481 sample_rate); in pcxhr_get_external_clock()
484 sample_rate); in pcxhr_get_external_clock()
544 int err, is_capture, sample_rate, stream_num; in pcxhr_set_format() local
577 sample_rate = chip->mgr->sample_rate; in pcxhr_set_format()
578 if (sample_rate <= 32000 && sample_rate !=0) { in pcxhr_set_format()
579 if (sample_rate <= 11025) in pcxhr_set_format()
915 if (mgr->sample_rate != subs->runtime->rate) { in pcxhr_prepare()
[all …]
/linux-6.12.1/drivers/media/dvb-frontends/
Dsi21xx.c700 unsigned char sample_rate = 0; in si21xx_set_frontend() local
800 sample_rate = (u8) afs[i]; in si21xx_set_frontend()
808 sample_rate = (u8) afs[i]; in si21xx_set_frontend()
815 if (sample_rate > 207 || sample_rate < 192) in si21xx_set_frontend()
816 sample_rate = 200; in si21xx_set_frontend()
819 ((sample_rate) * 1000)); in si21xx_set_frontend()
823 regs[0] = sample_rate; in si21xx_set_frontend()
830 state->fs = sample_rate;/*ADC MHz*/ in si21xx_set_frontend()
/linux-6.12.1/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c83 unsigned long sample_rate; in msm_devfreq_get_dev_status() local
99 busy_cycles = gpu->funcs->gpu_busy(gpu, &sample_rate); in msm_devfreq_get_dev_status()
106 busy_time = div64_ul(busy_time, sample_rate); in msm_devfreq_get_dev_status()
225 unsigned long sample_rate; in msm_devfreq_resume() local
231 df->busy_cycles = gpu->funcs->gpu_busy(gpu, &sample_rate); in msm_devfreq_resume()
/linux-6.12.1/include/net/
Dpsample.h42 const struct sk_buff *skb, u32 sample_rate,
49 u32 sample_rate, in psample_sample_packet() argument

1234567