/linux-2.6.39/sound/soc/ |
D | soc-utils.c | 21 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/ |
D | tegra_i2s.c | 186 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/ |
D | sync_serial.c | 350 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/ |
D | au1550_ac97.c | 103 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 …]
|
D | vwsnd.c | 1468 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/ |
D | jz4740-i2s.c | 238 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/ |
D | hal2.c | 365 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/ |
D | op_model_amd.c | 66 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/ |
D | ni_at_a2150.c | 236 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()
|
D | ni_labpc.c | 489 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 …]
|
D | das1800.c | 1781 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()
|
D | das16.c | 192 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/ |
D | mixart.c | 518 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()
|
D | mixart_core.h | 394 u32 sample_size; member
|
/linux-2.6.39/arch/cris/include/arch-v32/arch/hwregs/ |
D | sser_defs.h | 135 unsigned int sample_size : 6; member 162 unsigned int sample_size : 6; member
|
/linux-2.6.39/drivers/gpu/drm/radeon/ |
D | r600_hdmi.c | 217 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/ |
D | fsl_ssi.c | 440 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/ |
D | soc.h | 297 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);
|