Home
last modified time | relevance | path

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

/linux-2.6.39/sound/soc/
Dsoc-utils.c21 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument
23 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size()
29 int sample_size; in snd_soc_params_to_frame_size() local
31 sample_size = snd_pcm_format_width(params_format(params)); in snd_soc_params_to_frame_size()
32 if (sample_size < 0) in snd_soc_params_to_frame_size()
33 return sample_size; in snd_soc_params_to_frame_size()
35 return snd_soc_calc_frame_size(sample_size, params_channels(params), in snd_soc_params_to_frame_size()
40 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument
42 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk()
/linux-2.6.39/sound/soc/tegra/
Dtegra_i2s.c186 int ret, sample_size, srate, i2sclock, bitcnt; in tegra_i2s_hw_params() local
192 sample_size = 16; in tegra_i2s_hw_params()
196 sample_size = 24; in tegra_i2s_hw_params()
200 sample_size = 32; in tegra_i2s_hw_params()
209 i2sclock = srate * params_channels(params) * sample_size * 2; in tegra_i2s_hw_params()
/linux-2.6.39/arch/cris/arch-v32/drivers/
Dsync_serial.c350 tr_cfg.sample_size = 7; in initialize_port()
363 rec_cfg.sample_size = 7; in initialize_port()
845 rec_cfg.sample_size = tr_cfg.sample_size = 7; in sync_serial_ioctl()
848 rec_cfg.sample_size = tr_cfg.sample_size = 11; in sync_serial_ioctl()
850 rec_cfg.sample_size = tr_cfg.sample_size = 15; in sync_serial_ioctl()
852 rec_cfg.sample_size = tr_cfg.sample_size = 23; in sync_serial_ioctl()
854 rec_cfg.sample_size = tr_cfg.sample_size = 31; in sync_serial_ioctl()
911 rec_cfg.sample_size = tr_cfg.sample_size = 7; in sync_serial_ioctl()
1184 switch(tr_cfg.sample_size) in send_word()
1500 switch(rec_cfg.sample_size) in manual_interrupt()
/linux-2.6.39/sound/oss/
Dau1550_ac97.c103 unsigned sample_size; member
642 if (db->sample_size == 8) in prog_dmabuf()
652 db->user_bytes_per_sample = (db->sample_size>>3) * db->num_channels; in prog_dmabuf()
688 rate, db->sample_size, db->num_channels); in prog_dmabuf()
897 if (db->sample_size == 16 && !mono && db->src_factor == 1) { in translate_from_user()
915 if (db->sample_size == 8) in translate_from_user()
952 if (db->sample_size == 16 && !mono && db->src_factor == 1) { in translate_to_user()
965 if (db->sample_size == 8) in translate_to_user()
1532 s->dma_adc.sample_size = 16; in au1550_ioctl()
1535 s->dma_adc.sample_size = 8; in au1550_ioctl()
[all …]
Dvwsnd.c1468 int sample_size; member
1646 int sample_size; in pcm_setup() local
1656 sample_size = 1; in pcm_setup()
1661 sample_size = 1; in pcm_setup()
1666 sample_size = 1; in pcm_setup()
1671 sample_size = 1; in pcm_setup()
1676 sample_size = 2; in pcm_setup()
1681 sample_size = 0; /* prevent compiler warning */ in pcm_setup()
1685 aport->sample_size = sample_size; in pcm_setup()
1687 aport->frame_size = aport->sw_channels * aport->sample_size; in pcm_setup()
[all …]
/linux-2.6.39/sound/soc/jz4740/
Djz4740-i2s.c238 unsigned int sample_size; in jz4740_i2s_hw_params() local
245 sample_size = 0; in jz4740_i2s_hw_params()
249 sample_size = 1; in jz4740_i2s_hw_params()
258 ctrl |= sample_size << JZ_AIC_CTRL_OUTPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
269 ctrl |= sample_size << JZ_AIC_CTRL_INPUT_SAMPLE_SIZE_OFFSET; in jz4740_i2s_hw_params()
/linux-2.6.39/sound/mips/
Dhal2.c365 unsigned int fifobeg, fifoend, highwater, sample_size; in hal2_setup_dac() local
373 sample_size = 2 * hal2->dac.voices; in hal2_setup_dac()
376 highwater = (sample_size * 2) >> 1; /* halfwords */ in hal2_setup_dac()
378 fifoend = (sample_size * 4) >> 3; /* doublewords */ in hal2_setup_dac()
398 unsigned int fifobeg, fifoend, highwater, sample_size; in hal2_setup_adc() local
401 sample_size = 2 * hal2->adc.voices; in hal2_setup_adc()
402 highwater = (sample_size * 2) >> 1; /* halfwords */ in hal2_setup_adc()
404 fifoend = (4 * 4 + sample_size * 4) >> 3; /* doublewords */ in hal2_setup_adc()
/linux-2.6.39/arch/x86/oprofile/
Dop_model_amd.c66 unsigned long sample_size; member
218 ibs_state.sample_size); in op_amd_handle_ibs()
295 ibs_state.sample_size = IBS_OP_SIZE; in op_amd_start_ibs()
298 ibs_state.sample_size++; in op_amd_start_ibs()
/linux-2.6.39/drivers/staging/comedi/drivers/
Dni_at_a2150.c236 static const int sample_size = sizeof(devpriv->dma_buffer[0]); in a2150_interrupt() local
275 max_points = devpriv->dma_transfer_size / sample_size; in a2150_interrupt()
280 residue = get_dma_residue(devpriv->dma) / sample_size; in a2150_interrupt()
288 leftover = devpriv->dma_transfer_size / sample_size; in a2150_interrupt()
318 set_dma_count(devpriv->dma, leftover * sample_size); in a2150_interrupt()
Dni_labpc.c489 static const int sample_size = 2; variable
1331 devpriv->count * sample_size < devpriv->dma_transfer_size) { in labpc_ai_cmd()
1333 devpriv->count * sample_size; in labpc_ai_cmd()
1529 max_points = devpriv->dma_transfer_size / sample_size; in labpc_drain_dma()
1534 residue = get_dma_residue(devpriv->dma_chan) / sample_size; in labpc_drain_dma()
1542 leftover = devpriv->dma_transfer_size / sample_size; in labpc_drain_dma()
1558 set_dma_count(devpriv->dma_chan, leftover * sample_size); in labpc_drain_dma()
1784 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
1788 size = dma_buffer_size - dma_buffer_size % sample_size; in labpc_suggest_transfer_size()
1789 else if (size < sample_size) in labpc_suggest_transfer_size()
[all …]
Ddas1800.c1781 static const int sample_size = 2; /* size in bytes of one sample from board */ in suggest_transfer_size() local
1789 size = (fill_time / cmd->convert_arg) * sample_size; in suggest_transfer_size()
1793 sample_size; in suggest_transfer_size()
1804 cmd->stop_arg * cmd->chanlist_len * sample_size < max_size) in suggest_transfer_size()
1805 max_size = cmd->stop_arg * cmd->chanlist_len * sample_size; in suggest_transfer_size()
1809 if (size < sample_size) in suggest_transfer_size()
1810 size = sample_size; in suggest_transfer_size()
Ddas16.c192 static const int sample_size = 2; variable
1755 size = sample_size * cmd.chanlist_len; in das16_suggest_transfer_size()
1758 size = (freq / 3) * sample_size; in das16_suggest_transfer_size()
1763 size = DAS16_DMA_SIZE - DAS16_DMA_SIZE % sample_size; in das16_suggest_transfer_size()
1764 else if (size < sample_size) in das16_suggest_transfer_size()
1765 size = sample_size; in das16_suggest_transfer_size()
/linux-2.6.39/sound/pci/mixart/
Dmixart.c518 stream_param.sample_size = 8; in mixart_set_format()
522 stream_param.sample_size = 16; in mixart_set_format()
526 stream_param.sample_size = 16; in mixart_set_format()
530 stream_param.sample_size = 24; in mixart_set_format()
534 stream_param.sample_size = 24; in mixart_set_format()
538 stream_param.sample_size = 32; in mixart_set_format()
542 stream_param.sample_size = 32; in mixart_set_format()
550 … stream_param.sample_type, stream_param.sample_size, stream_param.sampling_freq, stream->channels); in mixart_set_format()
Dmixart_core.h394 u32 sample_size; member
/linux-2.6.39/arch/cris/include/arch-v32/arch/hwregs/
Dsser_defs.h135 unsigned int sample_size : 6; member
162 unsigned int sample_size : 6; member
/linux-2.6.39/drivers/gpu/drm/radeon/
Dr600_hdmi.c217 uint8_t sample_size, in r600_hdmi_audioinfoframe() argument
233 frame[0x2] = (sample_size & 0x3) | ((sample_frequency & 0x7) << 2); in r600_hdmi_audioinfoframe()
/linux-2.6.39/sound/soc/fsl/
Dfsl_ssi.c440 unsigned int sample_size = in fsl_ssi_hw_params() local
442 u32 wl = CCSR_SSI_SxCCR_WL(sample_size); in fsl_ssi_hw_params()
/linux-2.6.39/include/sound/
Dsoc.h297 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
299 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots);