/openbmc/linux/drivers/iio/adc/ |
H A D | mcp3422.c | 111 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 …]
|
H A D | nau7802.c | 59 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()
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6afe.h | 165 u32 sample_rate; member 170 u32 sample_rate; member 178 u32 sample_rate; member 188 u32 sample_rate; member 201 u16 sample_rate; member
|
H A D | q6asm.h | 39 u32 sample_rate; member 54 u32 sample_rate; member 75 u32 sample_rate; member 88 u32 sample_rate; member
|
H A D | q6asm.c | 94 u32 sample_rate; member 107 u32 sample_rate; member 118 u32 sample_rate; member 131 u32 sample_rate; member 153 u32 sample_rate; member 167 u32 sample_rate; member 186 uint32_t sample_rate; member 1117 fmt->sample_rate = rate; in q6asm_media_format_block_multi_ch_pcm() 1165 fmt->sample_rate = cfg->sample_rate; in q6asm_stream_media_format_block_flac() 1200 fmt->sample_rate = cfg->sample_rate; in q6asm_stream_media_format_block_wma_v9() [all …]
|
/openbmc/linux/sound/soc/sunxi/ |
H A D | sun8i-codec.c | 172 unsigned int sample_rate; member 221 static int sun8i_codec_get_hw_rate(unsigned int sample_rate) in sun8i_codec_get_hw_rate() argument 223 switch (sample_rate) { in sun8i_codec_get_hw_rate() 265 max_rate = max(max_rate, aif->sample_rate); in sun8i_codec_update_sample_rate() 479 unsigned int sample_rate) in sun8i_codec_get_bclk_div() argument 481 unsigned int div = sysclk_rate / sample_rate >> lrck_div_order; in sun8i_codec_get_bclk_div() 505 static unsigned int sun8i_codec_get_sysclk_rate(unsigned int sample_rate) in sun8i_codec_get_sysclk_rate() argument 507 return (sample_rate % 4000) ? 22579200 : 24576000; in sun8i_codec_get_sysclk_rate() 516 unsigned int sample_rate = params_rate(params); in sun8i_codec_hw_params() local 519 unsigned int sysclk_rate = sun8i_codec_get_sysclk_rate(sample_rate); in sun8i_codec_hw_params() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | hda.c | 22 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()
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | layla24_dsp.c | 173 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()
|
H A D | gina24_dsp.c | 177 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()
|
H A D | layla20_dsp.c | 171 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()
|
H A D | echoaudio_3g.c | 183 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() 317 chip->comm_page->sample_rate = cpu_to_le32(rate); /* ignored by the DSP */ in set_sample_rate() 318 chip->sample_rate = rate; in set_sample_rate() 342 return set_sample_rate(chip, chip->sample_rate); in set_input_clock() 403 chip->sample_rate = 48000; in dsp_set_digital_mode()
|
H A D | mona_dsp.c | 209 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()
|
H A D | darla24_dsp.c | 143 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()
|
H A D | gina20_dsp.c | 133 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()
|
/openbmc/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_ringbufs.c | 18 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()
|
/openbmc/linux/sound/soc/samsung/ |
H A D | littlemill.c | 15 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()
|
H A D | tobermory.c | 15 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()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42l42.h | 40 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);
|
H A D | tlv320aic32x4.c | 708 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 …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | sof_wm8804.c | 24 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()
|
/openbmc/u-boot/drivers/sound/ |
H A D | sound.c | 10 void sound_create_square_wave(uint sample_rate, unsigned short *data, int size, in sound_create_square_wave() argument 14 const int period = freq ? sample_rate / freq : 0; in sound_create_square_wave()
|
/openbmc/linux/sound/pci/pcxhr/ |
H A D | pcxhr.c | 414 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 …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | si21xx.c | 700 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()
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_gpu_devfreq.c | 83 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() 230 unsigned long sample_rate; in msm_devfreq_resume() local 236 df->busy_cycles = gpu->funcs->gpu_busy(gpu, &sample_rate); in msm_devfreq_resume()
|
/openbmc/linux/include/net/ |
H A D | psample.h | 39 u32 sample_rate, const struct psample_metadata *md); 44 struct sk_buff *skb, u32 sample_rate, in psample_sample_packet() argument
|