Home
last modified time | relevance | path

Searched refs:frames_to_bytes (Results 1 – 30 of 30) sorted by relevance

/linux-4.1.27/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c90 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare()
272 dst += frames_to_bytes(runtime, pos); in bf5xx_pcm_copy()
275 src += frames_to_bytes(runtime, pos); in bf5xx_pcm_copy()
279 memcpy(dst, src, frames_to_bytes(runtime, count)); in bf5xx_pcm_copy()
301 offset = frames_to_bytes(runtime, pos); in bf5xx_pcm_silence()
/linux-4.1.27/sound/sh/
Dsh_dac_audio.c193 ssize_t b_count = frames_to_bytes(runtime , count); in snd_sh_dac_pcm_copy()
194 ssize_t b_pos = frames_to_bytes(runtime , pos); in snd_sh_dac_pcm_copy()
220 ssize_t b_count = frames_to_bytes(runtime , count); in snd_sh_dac_pcm_silence()
221 ssize_t b_pos = frames_to_bytes(runtime , pos); in snd_sh_dac_pcm_silence()
318 ssize_t b_ps = frames_to_bytes(runtime, runtime->period_size); in sh_dac_audio_timer()
Daica.c284 frames_to_bytes(runtime, runtime->buffer_size); in run_spu_dma()
317 frames_to_bytes(runtime, in aica_period_elapsed()
/linux-4.1.27/include/sound/
Dpcm-indirect.h59 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect_playback_transfer()
124 rec->sw_ready -= frames_to_bytes(runtime, diff); in snd_pcm_indirect_capture_transfer()
Dpcm.h703 static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size) in frames_to_bytes() function
725 return frames_to_bytes(runtime, runtime->buffer_size); in snd_pcm_lib_buffer_bytes()
735 return frames_to_bytes(runtime, runtime->period_size); in snd_pcm_lib_period_bytes()
/linux-4.1.27/sound/pci/nm256/
Dnm256.c645 s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size); in snd_nm256_pcm_prepare()
646 s->period_size = frames_to_bytes(runtime, substream->runtime->period_size); in snd_nm256_pcm_prepare()
704 count = frames_to_bytes(runtime, count); in snd_nm256_playback_silence()
705 pos = frames_to_bytes(runtime, pos); in snd_nm256_playback_silence()
719 count = frames_to_bytes(runtime, count); in snd_nm256_playback_copy()
720 pos = frames_to_bytes(runtime, pos); in snd_nm256_playback_copy()
738 count = frames_to_bytes(runtime, count); in snd_nm256_capture_copy()
739 pos = frames_to_bytes(runtime, pos); in snd_nm256_capture_copy()
/linux-4.1.27/sound/usb/caiaq/
Daudio.c394 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0()
441 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2()
473 sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode3()
554 int sz = frames_to_bytes(rt, rt->buffer_size); in fill_out_urb_mode_0()
590 sz = frames_to_bytes(rt, rt->buffer_size); in fill_out_urb_mode_3()
/linux-4.1.27/sound/atmel/
Dac97c.c130 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_ac97c_prepare_dma()
131 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_prepare_dma()
321 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_playback_prepare()
412 int block_size = frames_to_bytes(runtime, runtime->period_size); in atmel_ac97c_capture_prepare()
672 block_size = frames_to_bytes(runtime, in atmel_ac97c_interrupt()
694 block_size = frames_to_bytes(runtime, in atmel_ac97c_interrupt()
Dabdac.c135 buffer_len = frames_to_bytes(runtime, runtime->buffer_size); in atmel_abdac_prepare_dma()
136 period_len = frames_to_bytes(runtime, runtime->period_size); in atmel_abdac_prepare_dma()
/linux-4.1.27/sound/drivers/
Dpcm-indirect2.c270 rec->sw_ready += (int)frames_to_bytes(runtime, diff); in snd_pcm_indirect2_playback_transfer()
428 rec->sw_ready -= frames_to_bytes(runtime, diff); in snd_pcm_indirect2_capture_transfer()
Daloop.c352 dpcm->pcm_buffer_size = frames_to_bytes(runtime, runtime->buffer_size); in loopback_prepare()
364 dpcm->pcm_period_size = frames_to_bytes(runtime, runtime->period_size); in loopback_prepare()
/linux-4.1.27/sound/pci/emu10k1/
Dp16v.c344 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_p16v_pcm_prepare_playback()
355 runtime->periods, frames_to_bytes(runtime, 1)); in snd_p16v_pcm_prepare_playback()
434 …snd_emu10k1_ptr20_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffe… in snd_p16v_pcm_prepare_capture()
Demu10k1x.c460 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_emu10k1x_pcm_prepare()
476 …snd_emu10k1x_ptr_write(emu, PLAYBACK_PERIOD_SIZE, voice, frames_to_bytes(runtime, runtime->period_… in snd_emu10k1x_pcm_prepare()
535 if(ptr4 == 0 && ptr1 == frames_to_bytes(runtime, runtime->buffer_size)) in snd_emu10k1x_pcm_pointer()
642 …snd_emu10k1x_ptr_write(emu, CAPTURE_BUFFER_SIZE, 0, frames_to_bytes(runtime, runtime->buffer_size)… in snd_emu10k1x_pcm_prepare_capture()
/linux-4.1.27/sound/firewire/
Damdtp.c407 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_write_s32()
432 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_write_s16()
457 frames_to_bytes(runtime, s->pcm_buffer_pointer); in amdtp_read_s32()
/linux-4.1.27/sound/pci/ca0106/
Dca0106_main.c762 u32 period_size_bytes = frames_to_bytes(runtime, runtime->period_size); in snd_ca0106_pcm_prepare_playback()
783 frames_to_bytes(runtime, 1)); in snd_ca0106_pcm_prepare_playback()
849 …snd_ca0106_ptr_write(emu, PLAYBACK_PERIOD_SIZE, channel, frames_to_bytes(runtime, runtime->period_… in snd_ca0106_pcm_prepare_playback()
890 frames_to_bytes(runtime, 1)); in snd_ca0106_pcm_prepare_capture()
952 …snd_ca0106_ptr_write(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_s… in snd_ca0106_pcm_prepare_capture()
/linux-4.1.27/sound/core/
Dpcm_lib.c116 char *hwbuf = runtime->dma_area + frames_to_bytes(runtime, ofs); in snd_pcm_playback_silence()
1996 char __user *buf = (char __user *) data + frames_to_bytes(runtime, off); in snd_pcm_lib_write_transfer()
2001 char *hwbuf = runtime->dma_area + frames_to_bytes(runtime, hwoff); in snd_pcm_lib_write_transfer()
2002 if (copy_from_user(hwbuf, buf, frames_to_bytes(runtime, frames))) in snd_pcm_lib_write_transfer()
2218 char __user *buf = (char __user *) data + frames_to_bytes(runtime, off); in snd_pcm_lib_read_transfer()
2223 char *hwbuf = runtime->dma_area + frames_to_bytes(runtime, hwoff); in snd_pcm_lib_read_transfer()
2224 if (copy_to_user(buf, hwbuf, frames_to_bytes(runtime, frames))) in snd_pcm_lib_read_transfer()
Dpcm_native.c3055 result = frames_to_bytes(runtime, result); in snd_pcm_read()
3079 result = frames_to_bytes(runtime, result); in snd_pcm_write()
3114 result = frames_to_bytes(runtime, result); in snd_pcm_readv()
3149 result = frames_to_bytes(runtime, result); in snd_pcm_writev()
/linux-4.1.27/sound/drivers/vx/
Dvx_pcm.c857 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
858 pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size); in vx_pcm_prepare()
1024 size = frames_to_bytes(runtime, size); in vx_pcm_capture_update()
/linux-4.1.27/sound/soc/kirkwood/
Dkirkwood-dma.c207 size = frames_to_bytes(runtime, runtime->buffer_size); in kirkwood_dma_prepare()
/linux-4.1.27/sound/mips/
Dsgio2audio.c377 dst_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; in snd_sgio2audio_dma_pull_frag()
425 src_mask = frames_to_bytes(runtime, runtime->buffer_size) - 1; in snd_sgio2audio_dma_push_frag()
/linux-4.1.27/sound/soc/intel/haswell/
Dsst-haswell-pcm.c40 frames_to_bytes(r, o))
42 frames_to_bytes(r, (x))))
733 pos = frames_to_bytes(runtime, in hsw_notify_pointer()
/linux-4.1.27/sound/soc/intel/baytrail/
Dsst-baytrail-pcm.c227 pos = frames_to_bytes(runtime, in byt_notify_pointer()
/linux-4.1.27/sound/spi/
Dat73c213.c260 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_pcm_prepare()
369 block_size = frames_to_bytes(runtime, runtime->period_size); in snd_at73c213_interrupt()
/linux-4.1.27/sound/soc/fsl/
Dmpc5200_dma.c127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
/linux-4.1.27/sound/pci/riptide/
Driptide.c1132 frames_to_bytes(runtime, in riptide_handleirq()
1494 size = frames_to_bytes(runtime, runtime->buffer_size); in snd_riptide_prepare()
1495 period = frames_to_bytes(runtime, runtime->period_size); in snd_riptide_prepare()
/linux-4.1.27/sound/pci/hda/
Dhda_controller.c364 pos_adj = frames_to_bytes(runtime, pos_adj); in azx_setup_periods()
531 azx_dev->delay_negative_threshold = -frames_to_bytes(runtime, 64); in azx_pcm_prepare()
/linux-4.1.27/sound/core/oss/
Dpcm_oss.c615 long bytes = frames_to_bytes(runtime, frames); in snd_pcm_oss_bytes()
1357 bytes = frames_to_bytes(runtime, frames1); in snd_pcm_oss_write2()
1457 bytes = frames_to_bytes(runtime, frames1); in snd_pcm_oss_read2()
/linux-4.1.27/sound/pci/
Dmaestro3.c1165 s->dma_size = frames_to_bytes(runtime, runtime->buffer_size); in snd_m3_pcm_setup1()
1166 s->period_size = frames_to_bytes(runtime, runtime->period_size); in snd_m3_pcm_setup1()
/linux-4.1.27/sound/pci/asihpi/
Dasihpi.c843 (unsigned long)frames_to_bytes(runtime, in snd_card_asihpi_timer_function()
845 (unsigned long)frames_to_bytes(runtime, in snd_card_asihpi_timer_function()
/linux-4.1.27/sound/pci/echoaudio/
Dechoaudio.c820 pipe->position -= frames_to_bytes(substream->runtime, bufsize); in pcm_pointer()