Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/adc/
Drcar-gyroadc.c72 unsigned int sample_width; member
218 *val &= BIT(priv->sample_width) - 1; in rcar_gyroadc_read_raw()
233 *val2 = 1 << priv->sample_width; in rcar_gyroadc_read_raw()
330 unsigned int sample_width; in rcar_gyroadc_parse_subdevs() local
345 sample_width = 12; in rcar_gyroadc_parse_subdevs()
350 sample_width = 15; in rcar_gyroadc_parse_subdevs()
355 sample_width = 16; in rcar_gyroadc_parse_subdevs()
418 priv->sample_width = sample_width; in rcar_gyroadc_parse_subdevs()
/Linux-v5.4/sound/usb/
Dformat.c36 int sample_width, sample_bytes; in parse_audio_format_i_type() local
43 sample_width = fmt->bBitResolution; in parse_audio_format_i_type()
51 sample_width = fmt->bBitResolution; in parse_audio_format_i_type()
66 sample_width = as->bBitResolution; in parse_audio_format_i_type()
77 fp->fmt_bits = sample_width; in parse_audio_format_i_type()
91 sample_width == 24 && sample_bytes == 2) in parse_audio_format_i_type()
93 else if (sample_width > sample_bytes * 8) { in parse_audio_format_i_type()
96 sample_width, sample_bytes); in parse_audio_format_i_type()
122 sample_width, sample_bytes); in parse_audio_format_i_type()
/Linux-v5.4/kernel/trace/
Dtrace_hwlat.c96 u64 sample_width; /* active sampling portion of window */ member
100 .sample_width = DEFAULT_SAMPLE_WIDTH,
229 } while (total <= hwlat_data.sample_width); in get_sample()
329 interval = hwlat_data.sample_window - hwlat_data.sample_width; in kthread_fn()
456 hwlat_data.sample_width = val; in hwlat_width_write()
494 if (hwlat_data.sample_width < val) in hwlat_window_write()
548 &hwlat_data.sample_width, in init_tracefs()
/Linux-v5.4/sound/core/
Dpcm_iec958.c12 static int create_iec958_consumer(uint rate, uint sample_width, in create_iec958_consumer() argument
47 switch (sample_width) { in create_iec958_consumer()
/Linux-v5.4/include/drm/i2c/
Dtda998x.h17 unsigned sample_width; member
/Linux-v5.4/include/uapi/sound/
Dsb16_csp.h80 int sample_width; /* sample width, look above */ member
/Linux-v5.4/include/sound/
Dsb16_csp.h36 int (*csp_start) (struct snd_sb_csp * p, int sample_width, int channels);
Dhdmi-codec.h46 int sample_width; member
/Linux-v5.4/drivers/gpu/drm/sti/
Dsti_hdmi.h31 unsigned int sample_width; member
Dsti_hdmi.c1183 hdmi->audio.sample_width = params->sample_width; in hdmi_audio_hw_params()
/Linux-v5.4/drivers/gpu/drm/rockchip/
Dcdn-dp-core.h28 int sample_width; member
Dcdn-dp-reg.c856 if (audio->sample_width == 16) in cdn_dp_audio_config_i2s()
858 else if (audio->sample_width == 24) in cdn_dp_audio_config_i2s()
869 if (audio->sample_width == 16) in cdn_dp_audio_config_i2s()
871 else if (audio->sample_width == 24) in cdn_dp_audio_config_i2s()
Dcdn-dp-core.c773 .sample_width = params->sample_width, in cdn_dp_audio_hw_params()
/Linux-v5.4/sound/isa/sb/
Dsb16_csp.c87 static int snd_sb_csp_start(struct snd_sb_csp * p, int sample_width, int channels);
230 err = snd_sb_csp_start(p, start_info.sample_width, start_info.channels); in snd_sb_csp_ioctl()
787 static int snd_sb_csp_start(struct snd_sb_csp * p, int sample_width, int channels) in snd_sb_csp_start() argument
802 if (!(sample_width & p->acc_width)) { in snd_sb_csp_start()
825 if (sample_width == SNDRV_SB_CSP_SAMPLE_8BIT) in snd_sb_csp_start()
836 p->run_width = sample_width; in snd_sb_csp_start()
/Linux-v5.4/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-i2s-audio.c73 switch (hparms->sample_width) { in dw_hdmi_i2s_hw_params()
/Linux-v5.4/drivers/gpu/drm/bridge/adv7511/
Dadv7511_audio.c92 switch (hparms->sample_width) { in adv7511_hdmi_hw_params()
/Linux-v5.4/sound/soc/sh/
Dfsi.c212 int sample_width; /* sample width */ member
532 io->sample_width = samples_to_bytes(runtime, 1); in fsi_stream_init()
560 io->sample_width = 0; in fsi_stream_quit()
1124 switch (io->sample_width) { in fsi_pio_transfer()
1519 switch (io->sample_width) { in fsi_hw_startup()
/Linux-v5.4/drivers/gpu/drm/zte/
Dzx_hdmi.c408 switch (params->sample_width) { in zx_hdmi_audio_hw_params()
423 params->sample_width); in zx_hdmi_audio_hw_params()
/Linux-v5.4/sound/soc/ti/
Ddavinci-mcasp.c762 int sample_width) in davinci_config_channel_size() argument
766 u32 mask = (1ULL << sample_width) - 1; in davinci_config_channel_size()
773 slot_width = sample_width; in davinci_config_channel_size()
788 tx_rotate = (sample_width / 4) & 0x7; in davinci_config_channel_size()
789 rx_rotate = (slot_width - sample_width) / 4; in davinci_config_channel_size()
/Linux-v5.4/drivers/gpu/drm/bridge/
Dsii902x.c543 switch (params->sample_width) { in sii902x_audio_hw_params()
556 params->sample_width); in sii902x_audio_hw_params()
/Linux-v5.4/drivers/gpu/drm/msm/hdmi/
Dhdmi.c443 params->sample_width, params->cea.channels); in msm_hdmi_audio_hw_params()
/Linux-v5.4/sound/soc/codecs/
Dhdmi-codec.c482 hp.sample_width = params_width(params); in hdmi_codec_hw_params()
/Linux-v5.4/drivers/gpu/drm/i2c/
Dtda998x_drv.c1108 bclk_ratio = spdif ? 64 : params->sample_width * 2; in tda998x_audio_hw_params()
1765 ratio = spdif ? 64 : p->audio_params.sample_width * 2; in tda998x_set_config()
/Linux-v5.4/drivers/gpu/drm/mediatek/
Dmtk_hdmi.c1539 params->sample_rate, params->sample_width, chan); in mtk_hdmi_audio_hw_params()
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_hdmi.c1037 switch (hdata->audio.params.sample_width) { in hdmi_audio_config()