Searched refs:frame_bytes (Results 1 – 8 of 8) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/media/usb/usbtv/ |
| H A D | usbtv-audio.c | 103 size_t i, frame_bytes, chunk_length, buffer_pos, period_pos; in usbtv_audio_urb_received() local 125 frame_bytes = runtime->frame_bits >> 3; in usbtv_audio_urb_received() 126 chunk_length = USBTV_CHUNK / frame_bytes; in usbtv_audio_urb_received() 137 frame_bytes; in usbtv_audio_urb_received() 138 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 141 chunk_length * frame_bytes - cnt); in usbtv_audio_urb_received() 143 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received() 144 urb_current, chunk_length * frame_bytes); in usbtv_audio_urb_received()
|
| /OK3568_Linux_fs/kernel/sound/usb/misc/ |
| H A D | ua101.c | 107 unsigned int frame_bytes; member 194 ua->playback.frame_bytes; in playback_urb_complete() 215 unsigned int frame_bytes, frames1; in copy_playback_data() local 219 frame_bytes = stream->frame_bytes; in copy_playback_data() 220 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data() 222 memcpy(urb->transfer_buffer, source, frames * frame_bytes); in copy_playback_data() 226 memcpy(urb->transfer_buffer, source, frames1 * frame_bytes); in copy_playback_data() 227 memcpy(urb->transfer_buffer + frames1 * frame_bytes, in copy_playback_data() 228 runtime->dma_area, (frames - frames1) * frame_bytes); in copy_playback_data() 288 frames * ua->playback.frame_bytes; in playback_work() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/most/sound/ |
| H A D | sound.c | 192 unsigned int const frame_bytes = channel->cfg->subbuffer_size; in copy_data() local 198 frames = mbo->processed_length / frame_bytes; in copy_data() 200 frames = mbo->buffer_length / frame_bytes; in copy_data() 203 channel->copy_fn(runtime->dma_area + channel->buffer_pos * frame_bytes, in copy_data() 205 fr0 * frame_bytes); in copy_data() 210 mbo->virt_address + fr0 * frame_bytes, in copy_data() 211 (frames - fr0) * frame_bytes); in copy_data()
|
| /OK3568_Linux_fs/kernel/sound/soc/rockchip/ |
| H A D | rockchip_multi_dais_pcm.c | 391 int frame_bytes; in dmaengine_mpcm_hw_params() local 399 frame_bytes = snd_pcm_format_size(format, params_channels(params)); in dmaengine_mpcm_hw_params() 424 slave_config.src_interlace_size = frame_bytes - sz; in dmaengine_mpcm_hw_params() 433 slave_config.dst_interlace_size = frame_bytes - sz; in dmaengine_mpcm_hw_params()
|
| H A D | rockchip_dlp.c | 105 unsigned int frame_bytes; member 169 return (prtd->frame_bytes / prtd->channels) * channels; in dlp_channels_to_bytes() 175 return size * prtd->frame_bytes; in dlp_frames_to_bytes() 181 return size / prtd->frame_bytes; in dlp_bytes_to_frames() 411 prtd->frame_bytes = snd_pcm_format_size(params_format(params), in dmaengine_dlp_hw_params()
|
| H A D | rockchip_vad.c | 779 unsigned int val = 0, mask = 0, frame_bytes, buf_time; in rockchip_vad_hw_params() local 830 frame_bytes = snd_pcm_format_size(params_format(params), in rockchip_vad_hw_params() 835 buf_time /= (frame_bytes * params_rate(params)); in rockchip_vad_hw_params() 843 val *= frame_bytes; in rockchip_vad_hw_params()
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | rtk_btusb.c | 703 unsigned int frame_bytes, frames1; in rtk_copy_capture_data_to_alsa() local 708 frame_bytes = 2; in rtk_copy_capture_data_to_alsa() 710 dest = runtime->dma_area + pSCOSnd->capture.buffer_pos * frame_bytes; in rtk_copy_capture_data_to_alsa() 712 memcpy(dest, p_data, frames * frame_bytes); in rtk_copy_capture_data_to_alsa() 716 memcpy(dest, p_data, frames1 * frame_bytes); in rtk_copy_capture_data_to_alsa() 718 p_data + frames1 * frame_bytes, in rtk_copy_capture_data_to_alsa() 719 (frames - frames1) * frame_bytes); in rtk_copy_capture_data_to_alsa() 3233 unsigned int frame_bytes = 2, frames1; in snd_copy_send_sco_data() local 3252 source = runtime->dma_area + pSCOSnd->playback.buffer_pos * frame_bytes; in snd_copy_send_sco_data() 3255 memcpy(buffer, source, period_size * frame_bytes); in snd_copy_send_sco_data() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/dma/ti/ |
| H A D | omap-dma.c | 964 unsigned i, es, en, frame_bytes; in omap_dma_prep_slave_sg() local 1091 frame_bytes = es_bytes[es] * en; in omap_dma_prep_slave_sg() 1101 osg->fn = sg_dma_len(sgent) / frame_bytes; in omap_dma_prep_slave_sg()
|