Home
last modified time | relevance | path

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

123

/linux/drivers/comedi/drivers/
H A Dni_labpc_isadma.c29 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_suggest_transfer_size() local
40 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
45 else if (size < sample_size) in labpc_suggest_transfer_size()
46 size = sample_size; in labpc_suggest_transfer_size()
56 unsigned int sample_size = comedi_bytes_per_sample(s); in labpc_setup_dma() local
61 devpriv->count * sample_size < desc->size) in labpc_setup_dma()
62 desc->size = devpriv->count * sample_size; in labpc_setup_dma()
/linux/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c28 size_t sample_size; member
145 self->params.sample_size = snd_pcm_format_physical_width(self->params.format) / 8; in FIXTURE_SETUP()
187 cur_ch = (i / params->sample_size) % CH_NUM; in TEST_F()
188 pos_in_ch = i / params->sample_size / CH_NUM * params->sample_size in TEST_F()
189 + (i % params->sample_size); in TEST_F()
229 cur_ch = (i / params->sample_size) % CH_NUM; in TEST_F()
230 pos_in_ch = i / params->sample_size / CH_NUM * params->sample_size in TEST_F()
231 + (i % params->sample_size); in TEST_F()
/linux/sound/soc/jz4740/
H A Djz4740-i2s.c257 unsigned int sample_size; in jz4740_i2s_hw_params() local
266 sample_size = 0; in jz4740_i2s_hw_params()
269 sample_size = 1; in jz4740_i2s_hw_params()
272 sample_size = 3; in jz4740_i2s_hw_params()
275 sample_size = 4; in jz4740_i2s_hw_params()
283 ctrl |= FIELD_PREP(JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE, sample_size); in jz4740_i2s_hw_params()
295 ctrl |= FIELD_PREP(JZ_AIC_CTRL_INPUT_SAMPLE_SIZE, sample_size); in jz4740_i2s_hw_params()
/linux/sound/soc/tegra/
H A Dtegra20_i2s.c147 int ret, sample_size, srate, i2sclock, bitcnt; in tegra20_i2s_hw_params() local
153 sample_size = 16; in tegra20_i2s_hw_params()
157 sample_size = 24; in tegra20_i2s_hw_params()
161 sample_size = 32; in tegra20_i2s_hw_params()
175 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra20_i2s_hw_params()
H A Dtegra210_i2s.c541 unsigned int sample_size, in tegra210_i2s_set_timing_params() argument
546 unsigned int val, bit_count, bclk_rate, num_bclk = sample_size; in tegra210_i2s_set_timing_params()
553 tegra210_i2s_set_data_offset(i2s, num_bclk - sample_size); in tegra210_i2s_set_timing_params()
606 unsigned int sample_size, channels, srate, val, reg, path; in tegra210_i2s_hw_params() local
652 sample_size = 8; in tegra210_i2s_hw_params()
657 sample_size = 16; in tegra210_i2s_hw_params()
662 sample_size = 32; in tegra210_i2s_hw_params()
667 sample_size = 32; in tegra210_i2s_hw_params()
708 return tegra210_i2s_set_timing_params(dev, sample_size, srate, in tegra210_i2s_hw_params()
H A Dtegra30_i2s.c140 int ret, sample_size, srate, i2sclock, bitcnt; in tegra30_i2s_hw_params() local
150 sample_size = 16; in tegra30_i2s_hw_params()
161 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra30_i2s_hw_params()
/linux/sound/soc/codecs/
H A Dcx2072x.c48 int sample_size; member
678 int sample_size = cx2072x->sample_size; in cx2072x_config_i2spcm() local
699 if (sample_size <= 0) { in cx2072x_config_i2spcm()
700 dev_err(dev, "Incorrect sample size %d\n", sample_size); in cx2072x_config_i2spcm()
787 reg1.r.rx_sa_size = (sample_size / BITS_PER_SLOT) - 1; in cx2072x_config_i2spcm()
910 int sample_size, frame_size; in cx2072x_hw_params() local
913 sample_size = params_width(params); in cx2072x_hw_params()
915 if (sample_size < 0) in cx2072x_hw_params()
916 return sample_size; in cx2072x_hw_params()
945 sample_size, frame_size, sample_rate); in cx2072x_hw_params()
[all …]
H A Dcs35l33.c481 int sample_size = params_width(params); in cs35l33_pcm_hw_params() local
493 sample_size = (sample_size / 8) - 1; in cs35l33_pcm_hw_params()
494 if (sample_size > 2) in cs35l33_pcm_hw_params()
495 sample_size = 2; in cs35l33_pcm_hw_params()
498 sample_size << CS35L33_AUDIN_RX_DEPTH_SHIFT); in cs35l33_pcm_hw_params()
/linux/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-phy.c189 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size) in mxl111sf_init_i2s_port() argument
207 mxl_debug("(0x%02x)", sample_size); in mxl111sf_init_i2s_port()
213 ret = mxl111sf_write_reg(state, V6_I2S_NUM_SAMPLES_REG, sample_size); in mxl111sf_init_i2s_port()
H A Dmxl111sf-phy.h27 int mxl111sf_init_i2s_port(struct mxl111sf_state *state, u8 sample_size);
/linux/sound/soc/xtensa/
H A Dxtfpga-i2s.c287 unsigned sample_size = snd_pcm_format_width(params_format(params)); in xtfpga_i2s_hw_params() local
293 sample_size << XTFPGA_I2S_CONFIG_RES_BASE); in xtfpga_i2s_hw_params()
306 ratio = (freq - (srate * sample_size * 8)) / in xtfpga_i2s_hw_params()
307 (srate * sample_size * 4); in xtfpga_i2s_hw_params()
330 __func__, srate, channels, sample_size, period_size); in xtfpga_i2s_hw_params()
/linux/drivers/iio/adc/
H A Dad_sigma_delta.c440 unsigned int sample_size; in ad_sd_trigger_handler() local
506 sample_size = indio_dev->channels[0].scan_type.storagebits / 8; in ad_sd_trigger_handler()
507 sample_pos = sample_size * sigma_delta->current_slot; in ad_sd_trigger_handler()
508 memcpy(&sigma_delta->samples_buf[sample_pos], data, sample_size); in ad_sd_trigger_handler()
/linux/sound/pci/mixart/
H A Dmixart.c525 stream_param.sample_size = 8; in mixart_set_format()
529 stream_param.sample_size = 16; in mixart_set_format()
533 stream_param.sample_size = 16; in mixart_set_format()
537 stream_param.sample_size = 24; in mixart_set_format()
541 stream_param.sample_size = 24; in mixart_set_format()
545 stream_param.sample_size = 32; in mixart_set_format()
549 stream_param.sample_size = 32; in mixart_set_format()
559 … stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()
/linux/tools/testing/selftests/bpf/progs/
H A Dstrobemeta.h628 uint64_t sample_size = sample_end - (void *)sample; in on_event() local
630 if (sample_size < sizeof(struct strobelight_bpf_sample)) in on_event()
631 bpf_perf_event_output(ctx, &samples, 0, sample, 1 + sample_size); in on_event()
/linux/fs/btrfs/
H A Dcompression.c682 u32 sample_size; member
1253 sz_base = ilog2_w(ws->sample_size); in shannon_entropy()
1260 entropy_sum /= ws->sample_size; in shannon_entropy()
1386 const u32 core_set_threshold = ws->sample_size * 90 / 100; in byte_core_set_size()
1448 const u32 half_of_sample = ws->sample_size / 2; in sample_repeated_patterns()
1503 ws->sample_size = curr_sample_pos; in heuristic_collect_sample()
1535 for (i = 0; i < ws->sample_size; i++) { in btrfs_compress_heuristic()
/linux/tools/perf/arch/x86/tests/
H A Dsample-parsing.c90 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux/tools/perf/tests/
H A Dsample-parsing.c329 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
346 evsel.sample_size = __evsel__sample_size(sample_type); in do_test()
/linux/drivers/video/
H A Dhdmi.c404 (frame->sample_size & 0x3); in hdmi_audio_infoframe_pack_payload()
1363 hdmi_audio_sample_size_get_name(enum hdmi_audio_sample_size sample_size) in hdmi_audio_sample_size_get_name() argument
1365 switch (sample_size) { in hdmi_audio_sample_size_get_name()
1447 hdmi_audio_sample_size_get_name(frame->sample_size)); in hdmi_audio_infoframe_log()
1722 frame->sample_size = ptr[1] & 0x3; in hdmi_audio_infoframe_unpack()
/linux/sound/soc/atmel/
H A Dmchp-pdmc.c492 static inline int mchp_pdmc_period_to_maxburst(int period_size, int sample_size) in mchp_pdmc_period_to_maxburst() argument
495 int s_size = sample_size; in mchp_pdmc_period_to_maxburst()
955 unsigned int sample_size = samples_to_bytes(runtime, 1); in mchp_pdmc_process() local
957 for (; dma_ptr < dma_ptr_end; dma_ptr += sample_size) in mchp_pdmc_process()
/linux/drivers/gpu/drm/i915/
H A Di915_perf_types.h200 int sample_size; member
/linux/sound/soc/qcom/qdsp6/
H A Dq6asm.h46 u16 sample_size; member
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_types.h145 uint8_t sample_size; /* for LPCM*/ member
510 uint8_t sample_size; member
/linux/include/uapi/sound/
H A Dcompress_params.h292 __u16 sample_size; member
/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi.h185 enum hdmi_audio_sample_size_omap sample_size; member
/linux/drivers/gpu/drm/omapdrm/dss/
H A Dhdmi.h189 enum hdmi_audio_sample_size_omap sample_size; member

123