Home
last modified time | relevance | path

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

123

/sound/core/
Drawmidi.c124 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
129 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
130 if ((runtime->buffer = kmalloc(runtime->buffer_size, GFP_KERNEL)) == NULL) { in snd_rawmidi_runtime_create()
179 runtime->avail = runtime->buffer_size; in snd_rawmidi_drop_output()
193 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
197 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
198 …drain error (avail = %li, buffer_size = %li)\n", (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
621 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) { in snd_rawmidi_output_params()
624 if (params->avail_min < 1 || params->avail_min > params->buffer_size) { in snd_rawmidi_output_params()
627 if (params->buffer_size != runtime->buffer_size) { in snd_rawmidi_output_params()
[all …]
Drawmidi_compat.c27 u32 buffer_size; member
42 get_user(params.buffer_size, &src->buffer_size) || in snd_rawmidi_ioctl_params_compat()
Dpcm_lib.c58 if (runtime->silence_filled >= runtime->buffer_size) in snd_pcm_playback_silence()
86 frames = runtime->buffer_size - runtime->silence_filled; in snd_pcm_playback_silence()
88 if (snd_BUG_ON(frames > runtime->buffer_size)) in snd_pcm_playback_silence()
92 ofs = runtime->silence_start % runtime->buffer_size; in snd_pcm_playback_silence()
94 transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; in snd_pcm_playback_silence()
154 if (pos >= runtime->buffer_size) { in snd_pcm_update_hw_ptr_pos()
155 …size = 0x%lx, period size = 0x%lx\n", substream->stream, pos, runtime->buffer_size, runtime->perio… in snd_pcm_update_hw_ptr_pos()
197 if (runtime->period_size == runtime->buffer_size) in snd_pcm_update_hw_ptr_interrupt()
204 if ((snd_pcm_uframes_t)delta < runtime->buffer_size / 2) { in snd_pcm_update_hw_ptr_interrupt()
207 … %ld): wrong interrupt acknowledge?\n", substream->stream, (long) delta, runtime->buffer_size / 2); in snd_pcm_update_hw_ptr_interrupt()
[all …]
Dpcm_compat.c111 if (! runtime->buffer_size) in recalculate_boundary()
113 boundary = runtime->buffer_size; in recalculate_boundary()
114 while (boundary * 2 <= 0x7fffffffUL - runtime->buffer_size) in recalculate_boundary()
/sound/pci/aw2/
Daw2-saa7146.c160 unsigned long buffer_size) in snd_aw2_saa7146_pcm_init_playback() argument
196 WRITEREG(dma_addr + buffer_size, ProtA2_out); in snd_aw2_saa7146_pcm_init_playback()
207 WRITEREG(dma_addr + buffer_size, ProtA1_out); in snd_aw2_saa7146_pcm_init_playback()
218 unsigned long buffer_size) in snd_aw2_saa7146_pcm_init_capture() argument
254 WRITEREG(dma_addr + buffer_size, ProtA1_in); in snd_aw2_saa7146_pcm_init_capture()
392 unsigned int buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback() argument
401 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback()
408 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_playback()
417 unsigned int buffer_size) in snd_aw2_saa7146_get_hw_ptr_capture() argument
425 if (ptr == buffer_size) in snd_aw2_saa7146_get_hw_ptr_capture()
Daw2-saa7146.h56 unsigned long buffer_size);
61 unsigned long buffer_size);
90 buffer_size);
97 buffer_size);
Daw2-alsa.c470 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_playback() local
475 buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_aw2_pcm_prepare_playback()
480 buffer_size); in snd_aw2_pcm_prepare_playback()
499 unsigned long period_size, buffer_size; in snd_aw2_pcm_prepare_capture() local
504 buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_aw2_pcm_prepare_capture()
509 buffer_size); in snd_aw2_pcm_prepare_capture()
588 runtime->buffer_size); in snd_aw2_pcm_pointer_playback()
607 runtime->buffer_size); in snd_aw2_pcm_pointer_capture()
/sound/pci/
Dsis7019.c85 u16 buffer_size; member
202 if (voice->sso >= voice->buffer_size) in sis_update_sso()
203 voice->sso -= voice->buffer_size; in sis_update_sso()
272 if (voice->vperiod < voice->buffer_size) { in sis_update_voice()
444 unsigned int period_size, buffer_size; in sis_alloc_timing_voice() local
453 buffer_size = params_buffer_size(hw_params); in sis_alloc_timing_voice()
454 needed = (period_size != buffer_size && in sis_alloc_timing_voice()
455 period_size != (buffer_size / 2)); in sis_alloc_timing_voice()
541 leo = runtime->buffer_size - 1; in sis_pcm_playback_prepare()
545 if (runtime->period_size == (runtime->buffer_size / 2)) { in sis_pcm_playback_prepare()
[all …]
/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c67 if (sport->tx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
68 sport->tx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
75 if (sport->rx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
76 sport->rx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
140 memset(runtime->dma_area, 0, runtime->buffer_size); in bf5xx_pcm_hw_free()
141 memset(sport->tx_dma_buf, 0, runtime->buffer_size * in bf5xx_pcm_hw_free()
144 memset(sport->rx_dma_buf, 0, runtime->buffer_size * in bf5xx_pcm_hw_free()
/sound/sh/
Daica.c233 static int aica_dma_transfer(int channels, int buffer_size, in aica_dma_transfer() argument
255 buffer_size / channels, AICA_DMA_MODE); in aica_dma_transfer()
275 int buffer_size; in run_spu_dma() local
282 buffer_size = in run_spu_dma()
283 frames_to_bytes(runtime, runtime->buffer_size); in run_spu_dma()
286 aica_dma_transfer(runtime->channels, buffer_size, in run_spu_dma()
290 buffer_size / (AICA_PERIOD_SIZE * runtime->channels); in run_spu_dma()
/sound/usb/usx2y/
Dusbusx2yaudio.c92 if ((hwptr_done + len) > runtime->buffer_size) { in usX2Y_urb_capt_retire()
93 int cnt = runtime->buffer_size - hwptr_done; in usX2Y_urb_capt_retire()
102 if ((hwptr_done += len) >= runtime->buffer_size) in usX2Y_urb_capt_retire()
103 hwptr_done -= runtime->buffer_size; in usX2Y_urb_capt_retire()
150 if (subs->hwptr + count > runtime->buffer_size) { in usX2Y_urb_play_prepare()
155 len = runtime->buffer_size - subs->hwptr; in usX2Y_urb_play_prepare()
162 subs->hwptr -= runtime->buffer_size; in usX2Y_urb_play_prepare()
166 if ((subs->hwptr += count) >= runtime->buffer_size) in usX2Y_urb_play_prepare()
167 subs->hwptr -= runtime->buffer_size; in usX2Y_urb_play_prepare()
187 if (subs->hwptr_done >= runtime->buffer_size) in usX2Y_urb_play_retire()
[all …]
Dusx2yhwdeppcm.c81 if ((hwptr_done += lens) >= runtime->buffer_size) in usX2Y_usbpcm_urb_capt_retire()
82 hwptr_done -= runtime->buffer_size; in usX2Y_usbpcm_urb_capt_retire()
96 …return (runtime->buffer_size * 1000) / usX2Y->rate + 1; //FIXME: so far only correct period_size =… in usX2Y_iso_frames_per_buffer()
/sound/pci/nm256/
Dnm256.c221 u32 buffer_size; /* total buffer size */ member
320 if (offset < 0 || offset >= chip->buffer_size) { in snd_nm256_write_buffer()
642 s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size); in snd_nm256_pcm_prepare()
1362 pointer < chip->buffer_size || in snd_nm256_peek_for_sig()
1559 chip->buffer_size = chip->streams[SNDRV_PCM_STREAM_PLAYBACK].bufsize + in snd_nm256_create()
1562 chip->buffer_size += NM_TOTAL_COEFF_COUNT * 4; in snd_nm256_create()
1564 chip->buffer_size += NM_MAX_PLAYBACK_COEF_SIZE + NM_MAX_RECORD_COEF_SIZE; in snd_nm256_create()
1566 if (buffer_top >= chip->buffer_size && buffer_top < chip->buffer_end) in snd_nm256_create()
1574 chip->buffer_start = chip->buffer_end - chip->buffer_size; in snd_nm256_create()
1581 chip->buffer_size, in snd_nm256_create()
[all …]
/sound/pci/emu10k1/
Demupcm.c101 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
103 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
848 ptr += runtime->buffer_size; in snd_emu10k1_playback_pointer()
850 ptr %= runtime->buffer_size; in snd_emu10k1_playback_pointer()
853 ptr += runtime->buffer_size - epcm->ccca_start_addr; in snd_emu10k1_playback_pointer()
856 if (ptr >= runtime->buffer_size) in snd_emu10k1_playback_pointer()
857 ptr -= runtime->buffer_size; in snd_emu10k1_playback_pointer()
1568 unsigned int tram_size = pcm->buffer_size; in fx8010_pb_trans_copy()
1628 pcm->pcm_rec.hw_buffer_size = pcm->buffer_size * 2; /* byte size */ in snd_emu10k1_fx8010_playback_prepare()
1630 pcm->tram_pos = INITIAL_TRAM_POS(pcm->buffer_size); in snd_emu10k1_fx8010_playback_prepare()
[all …]
Dp16v.c402 …e(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size) << 16); // buf… in snd_p16v_pcm_prepare_capture()
535 if (ptr >= runtime->buffer_size) in snd_p16v_pcm_pointer_playback()
536 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_playback()
557 if (ptr >= runtime->buffer_size) { in snd_p16v_pcm_pointer_capture()
558 ptr -= runtime->buffer_size; in snd_p16v_pcm_pointer_capture()
Demu10k1x.c530 if(ptr4 == 0 && ptr1 == frames_to_bytes(runtime, runtime->buffer_size)) in snd_emu10k1x_pcm_pointer()
539 if (ptr >= runtime->buffer_size) in snd_emu10k1x_pcm_pointer()
540 ptr -= runtime->buffer_size; in snd_emu10k1x_pcm_pointer()
637 …snd_emu10k1x_ptr_write(emu, CAPTURE_BUFFER_SIZE, 0, frames_to_bytes(runtime, runtime->buffer_size)… in snd_emu10k1x_pcm_prepare_capture()
686 if (ptr >= runtime->buffer_size) in snd_emu10k1x_pcm_pointer_capture()
687 ptr -= runtime->buffer_size; in snd_emu10k1x_pcm_pointer_capture()
/sound/core/oss/
Dpcm_oss.c611 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_oss_bytes() local
613 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_oss_bytes()
616 return runtime->oss.buffer_bytes * bytes / buffer_size; in snd_pcm_oss_bytes()
621 div64_32(&bsize, buffer_size, &rem); in snd_pcm_oss_bytes()
630 long buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_pcm_alsa_frames() local
631 if (buffer_size == runtime->oss.buffer_bytes) in snd_pcm_alsa_frames()
633 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
989 sw_params->stop_threshold = runtime->buffer_size; in snd_pcm_oss_change_params()
1001 if (frames > runtime->buffer_size) in snd_pcm_oss_change_params()
1002 frames = runtime->buffer_size; in snd_pcm_oss_change_params()
[all …]
/sound/soc/fsl/
Dfsl_dma.c544 size_t buffer_size = params_buffer_bytes(hw_params); in fsl_dma_hw_params() local
550 dma_private->dma_buf_end = dma_private->dma_buf_phys + buffer_size; in fsl_dma_hw_params()
712 if (frames == runtime->buffer_size) in fsl_dma_pointer()
/sound/ppc/
Dpmac.h70 int buffer_size; /* in kbytes */ member
/sound/usb/caiaq/
Dcaiaq-audio.c338 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0()
382 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2()
430 int sz = frames_to_bytes(rt, rt->buffer_size); in fill_out_urb()
/sound/usb/
Dusbaudio.c135 unsigned int buffer_size; /* size of data buffer, if data URB */ member
364 if (subs->hwptr_done >= runtime->buffer_size) in retire_capture_urb()
365 subs->hwptr_done -= runtime->buffer_size; in retire_capture_urb()
373 if (oldptr + len > runtime->buffer_size) { in retire_capture_urb()
374 unsigned int cnt = runtime->buffer_size - oldptr; in retire_capture_urb()
615 if (subs->hwptr_done + offs > runtime->buffer_size) { in prepare_playback_urb()
617 unsigned int len = runtime->buffer_size - subs->hwptr_done; in prepare_playback_urb()
630 if (subs->hwptr_done >= runtime->buffer_size) in prepare_playback_urb()
631 subs->hwptr_done -= runtime->buffer_size; in prepare_playback_urb()
1001 if (u->buffer_size) in release_urb_ctx()
[all …]
/sound/drivers/vx/
Dvx_pcm.c733 if (pipe->position >= (int)runtime->buffer_size) in vx_update_pipe_position()
734 pipe->position %= runtime->buffer_size; in vx_update_pipe_position()
928 pipe->buffer_bytes = frames_to_bytes(runtime, runtime->buffer_size); in vx_pcm_prepare()
1092 size = runtime->buffer_size - snd_pcm_capture_avail(runtime); in vx_pcm_capture_update()
/sound/soc/atmel/
Datmel-pcm.c235 rtd->buffer_size, rtd->dma_area, rtd->dma_bytes); in atmel_pcm_trigger()
303 if (x == runtime->buffer_size) in atmel_pcm_pointer()
/sound/core/seq/
Dseq_midi.c197 params.buffer_size = input_buffer_size; in midisynth_subscribe()
238 params.buffer_size = output_buffer_size; in midisynth_use()
/sound/pci/ca0106/
Dca0106_main.c852 …e(emu, CAPTURE_BUFFER_SIZE, channel, frames_to_bytes(runtime, runtime->buffer_size)<<16); // buffe… in snd_ca0106_pcm_prepare_capture()
973 if (ptr >= runtime->buffer_size) in snd_ca0106_pcm_pointer_playback()
974 ptr -= runtime->buffer_size; in snd_ca0106_pcm_pointer_playback()
996 if (ptr >= runtime->buffer_size) in snd_ca0106_pcm_pointer_capture()
997 ptr -= runtime->buffer_size; in snd_ca0106_pcm_pointer_capture()

123