/drivers/iio/adc/ |
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 …]
|
D | nau7802.c | 58 u8 sample_rate; member 267 if (st->sample_rate != NAU7802_SAMP_FREQ_320) in nau7802_read_poll() 317 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_read_raw() 348 *val = nau7802_sample_freq_avail[st->sample_rate]; in nau7802_read_raw() 378 st->sample_rate = i; in nau7802_write_raw() 382 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_write_raw() 525 st->sample_rate = NAU7802_SAMP_FREQ_320; in nau7802_probe() 527 NAU7802_CTRL2_CRS(st->sample_rate)); in nau7802_probe()
|
D | imx7d_adc.c | 189 u32 sample_rate = 0; in imx7d_adc_sample_rate_set() local 204 sample_rate |= adc_analogure_clk.reg_config; in imx7d_adc_sample_rate_set() 207 sample_rate |= adc_feature->core_time_unit; in imx7d_adc_sample_rate_set() 208 writel(sample_rate, info->regs + IMX7D_REG_ADC_TIMER_UNIT); in imx7d_adc_sample_rate_set()
|
D | vf610_adc.c | 146 int sample_rate; member 242 adc_feature->sample_rate = 1; in vf610_adc_cfg_init() 425 switch (adc_feature->sample_rate) { in vf610_adc_sample_set() 688 *val = info->sample_freq_avail[info->adc_feature.sample_rate]; in vf610_read_raw() 714 info->adc_feature.sample_rate = i; in vf610_write_raw()
|
/drivers/gpu/drm/tegra/ |
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()
|
D | hda.h | 12 unsigned int sample_rate; member
|
D | hdmi.c | 442 unsigned int sample_rate; in tegra_hdmi_write_aval() member 456 if (regs[i].sample_rate == hdmi->format.sample_rate) { in tegra_hdmi_write_aval() 542 err = tegra_hdmi_get_audio_config(hdmi->format.sample_rate, in tegra_hdmi_setup_audio() 547 hdmi->format.sample_rate, hdmi->pixel_clock); in tegra_hdmi_setup_audio() 1263 if (hdmi->format.sample_rate > 0) { in tegra_hdmi_encoder_enable()
|
/drivers/media/dvb-frontends/ |
D | si21xx.c | 700 unsigned char sample_rate = 0; in si21xx_set_frontend() local 802 sample_rate = (u8) afs[i]; in si21xx_set_frontend() 810 sample_rate = (u8) afs[i]; in si21xx_set_frontend() 817 if (sample_rate > 207 || sample_rate < 192) in si21xx_set_frontend() 818 sample_rate = 200; in si21xx_set_frontend() 821 ((sample_rate) * 1000)); in si21xx_set_frontend() 825 regs[0] = sample_rate; in si21xx_set_frontend() 832 state->fs = sample_rate;/*ADC MHz*/ in si21xx_set_frontend()
|
D | cx24123.c | 444 u32 sample_rate, ratio, sample_gain; in cx24123_set_symbolrate() local 472 sample_rate = pll_mult * XTAL; in cx24123_set_symbolrate() 477 do_div(tmp, sample_rate); in cx24123_set_symbolrate() 487 sample_gain = cx24123_int_log2(sample_rate, srate); in cx24123_set_symbolrate() 492 srate, ratio, sample_rate, sample_gain); in cx24123_set_symbolrate()
|
/drivers/gpu/drm/mediatek/ |
D | mtk_hdmi.c | 751 unsigned int sample_rate, in mtk_hdmi_hw_aud_set_ncts() argument 756 n = hdmi_recommended_n(sample_rate, clock); in mtk_hdmi_hw_aud_set_ncts() 757 cts = hdmi_expected_cts(sample_rate, clock, n); in mtk_hdmi_hw_aud_set_ncts() 760 __func__, sample_rate, clock, n, cts); in mtk_hdmi_hw_aud_set_ncts() 911 unsigned int sample_rate = hdmi->aud_param.codec_params.sample_rate; in mtk_hdmi_aud_set_src() local 918 switch (sample_rate) { in mtk_hdmi_aud_set_src() 930 switch (sample_rate) { in mtk_hdmi_aud_set_src() 941 mtk_hdmi_hw_aud_set_ncts(hdmi, sample_rate, display_mode->clock); in mtk_hdmi_aud_set_src() 1108 param->aud_input_chan_type, param->codec_params.sample_rate); in mtk_hdmi_audio_set_param() 1538 params->sample_rate, params->sample_width, chan); in mtk_hdmi_audio_hw_params() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_audio.c | 416 union audio_sample_rates sample_rate; in dce_aud_az_configure() local 577 sample_rate.all = 0; in dce_aud_az_configure() 578 sample_rate.rate.RATE_192 = 1; in dce_aud_az_configure() 584 &sample_rate); in dce_aud_az_configure() 586 set_high_bit_rate_capable(audio, sample_rate.rate.RATE_192); in dce_aud_az_configure()
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_audio.c | 68 switch (hparms->sample_rate) { in adv7511_hdmi_hw_params() 148 adv7511->f_audio = hparms->sample_rate; in adv7511_hdmi_hw_params()
|
/drivers/staging/vc04_services/vchiq-mmal/ |
D | mmal-msg-format.h | 23 u32 sample_rate; /* Sample rate */ member
|
/drivers/iio/imu/ |
D | adis16475.c | 263 u32 sample_rate = st->clk_freq; in adis16475_get_freq() local 274 sample_rate = st->clk_freq * sync_scale; in adis16475_get_freq() 283 *freq = DIV_ROUND_CLOSEST(sample_rate, dec + 1); in adis16475_get_freq() 295 u32 sample_rate = st->clk_freq; in adis16475_set_freq() local 345 sample_rate = scaled_rate; in adis16475_set_freq() 348 dec = DIV_ROUND_CLOSEST(sample_rate, freq); in adis16475_set_freq()
|
D | adis16480.c | 329 unsigned int t, sample_rate = st->clk_freq; in adis16480_set_freq() local 384 sample_rate = scaled_rate; in adis16480_set_freq() 387 t = DIV_ROUND_CLOSEST(sample_rate, t); in adis16480_set_freq() 405 unsigned int freq, sample_rate = st->clk_freq; in adis16480_get_freq() local 416 sample_rate = st->clk_freq * sync_scale; in adis16480_get_freq() 425 freq = DIV_ROUND_CLOSEST(sample_rate, (t + 1)); in adis16480_get_freq()
|
/drivers/gpu/drm/sti/ |
D | sti_hdmi.h | 32 unsigned int sample_rate; member
|
D | sti_hdmi.c | 846 n = sti_hdmi_audio_get_non_coherent_n(params->sample_rate); in hdmi_audio_configure() 849 params->sample_rate, hdmi->mode.clock * 1000, n); in hdmi_audio_configure() 1189 hdmi->audio.sample_rate = params->sample_rate; in hdmi_audio_hw_params()
|
/drivers/gpu/drm/rockchip/ |
D | cdn-dp-core.h | 26 int sample_rate; member
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi.c | 464 DRM_DEV_DEBUG(dev, "%u Hz, %d bit, %d channels\n", params->sample_rate, in msm_hdmi_audio_hw_params() 492 switch (params->sample_rate) { in msm_hdmi_audio_hw_params() 516 params->sample_rate); in msm_hdmi_audio_hw_params()
|
/drivers/gpu/drm/bridge/ |
D | sii902x.c | 570 if (params->sample_rate == sii902x_sample_freq[i].freq) { in sii902x_audio_hw_params() 585 params->sample_rate, mclk_rate); in sii902x_audio_hw_params() 586 if (mclk_rate != ret * params->sample_rate) in sii902x_audio_hw_params() 588 mclk_rate, ret, params->sample_rate); in sii902x_audio_hw_params()
|
/drivers/gpu/drm/bridge/synopsys/ |
D | dw-hdmi.c | 194 unsigned int sample_rate; member 651 unsigned long pixel_clk, unsigned int sample_rate) in hdmi_set_clk_regenerator() argument 658 n = hdmi_compute_n(sample_rate, pixel_clk); in hdmi_set_clk_regenerator() 672 do_div(tmp, 128 * sample_rate); in hdmi_set_clk_regenerator() 676 __func__, sample_rate, in hdmi_set_clk_regenerator() 693 hdmi_set_clk_regenerator(hdmi, 74250000, hdmi->sample_rate); in hdmi_init_clk_regenerator() 701 hdmi->sample_rate); in hdmi_clk_regenerator_update_pixel_clock() 708 hdmi->sample_rate = rate; in dw_hdmi_set_sample_rate() 710 hdmi->sample_rate); in dw_hdmi_set_sample_rate() 3247 hdmi->sample_rate = 48000; in dw_hdmi_probe()
|
D | dw-hdmi-i2s-audio.c | 104 dw_hdmi_set_sample_rate(hdmi, hparms->sample_rate); in dw_hdmi_i2s_hw_params()
|
/drivers/gpu/drm/i2c/ |
D | tda998x_drv.c | 44 unsigned int sample_rate; member 1013 adiv = tda998x_get_adiv(priv, settings->sample_rate); in tda998x_configure_audio() 1030 n = 128 * settings->sample_rate / 1000; in tda998x_configure_audio() 1071 .sample_rate = params->sample_rate, in tda998x_audio_hw_params() 1769 priv->audio.sample_rate = p->audio_params.sample_rate; in tda998x_set_config()
|
/drivers/gpu/drm/i915/display/ |
D | intel_audio.c | 72 int sample_rate; member 79 int sample_rate; member 131 if (rate == dp_aud_n_m[i].sample_rate && in audio_config_dp_get_n_m() 288 if (rate == hdmi_ncts_table[i].sample_rate && in audio_config_hdmi_get_n()
|
/drivers/gpu/drm/vc4/ |
D | vc4_hdmi.c | 1353 unsigned int sample_rate = params->sample_rate; in vc4_hdmi_audio_prepare() local 1361 sample_rate, params->sample_width, channels); in vc4_hdmi_audio_prepare() 1369 vc4_hdmi_audio_set_mai_clock(vc4_hdmi, sample_rate); in vc4_hdmi_audio_prepare() 1371 mai_sample_rate = sample_rate_to_mai_fmt(sample_rate); in vc4_hdmi_audio_prepare() 1408 vc4_hdmi_set_n_cts(vc4_hdmi, sample_rate); in vc4_hdmi_audio_prepare()
|