Home
last modified time | relevance | path

Searched refs:period_size (Results 1 – 20 of 20) sorted by relevance

/drivers/media/pci/tw686x/
Dtw686x-audio.c71 dev->period_size); in tw686x_audio_irq()
135 unsigned int period_size = snd_pcm_lib_period_bytes(ss); in tw686x_pcm_prepare() local
146 (dev->period_size != period_size)) && dev->audio_enabled) in tw686x_pcm_prepare()
162 if (dev->period_size != period_size) { in tw686x_pcm_prepare()
165 dev->period_size = period_size; in tw686x_pcm_prepare()
168 reg |= period_size << AUDIO_DMA_SIZE_SHIFT; in tw686x_pcm_prepare()
181 ac->buf[i].dma = rt->dma_addr + period_size * i; in tw686x_pcm_prepare()
182 ac->buf[i].virt = rt->dma_area + period_size * i; in tw686x_pcm_prepare()
Dtw686x.h137 int period_size; member
/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c58 if (!alsa_stream->period_size) in bcm2835_playback_fifo()
78 if (alsa_stream->period_offset >= alsa_stream->period_size) { in bcm2835_playback_fifo()
79 alsa_stream->period_offset %= alsa_stream->period_size; in bcm2835_playback_fifo()
179 alsa_stream->period_size = 0; in snd_bcm2835_playback_close()
226 alsa_stream->period_size = snd_pcm_lib_period_bytes(substream); in snd_bcm2835_pcm_prepare()
Dbcm2835.h79 unsigned int period_size; member
/drivers/media/pci/cx25821/
Dcx25821-alsa.c77 unsigned int period_size; member
508 chip->period_size = params_period_bytes(hw_params); in snd_cx25821_hw_params()
510 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx25821_hw_params()
519 if (chip->period_size > AUDIO_LINE_SIZE) in snd_cx25821_hw_params()
520 chip->period_size = AUDIO_LINE_SIZE; in snd_cx25821_hw_params()
522 buf->bpl = chip->period_size; in snd_cx25821_hw_params()
535 chip->period_size, chip->num_periods, 1); in snd_cx25821_hw_params()
622 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx25821_pointer()
/drivers/media/pci/cx23885/
Dcx23885-alsa.c370 chip->period_size = params_period_bytes(hw_params); in snd_cx23885_hw_params()
372 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx23885_hw_params()
381 buf->bpl = chip->period_size; in snd_cx23885_hw_params()
394 chip->period_size, chip->num_periods, 1); in snd_cx23885_hw_params()
480 return runtime->period_size * (count & (runtime->periods-1)); in snd_cx23885_pointer()
Dcx23885.h344 unsigned int period_size; member
/drivers/iio/adc/
Dti_am335x_adc.c45 int period_size; member
241 data = dma->buf + dma->current_period * dma->period_size; in tiadc_dma_rx_complete()
244 for (i = 0; i < dma->period_size; i += indio_dev->scan_bytes) { in tiadc_dma_rx_complete()
267 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma()
274 dma->period_size * 2, in tiadc_start_dma()
275 dma->period_size, DMA_DEV_TO_MEM, in tiadc_start_dma()
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c666 unsigned int period_size, periods; in snd_card_saa7134_hw_params() local
669 period_size = params_period_bytes(hw_params); in snd_card_saa7134_hw_params()
672 if (period_size < 0x100 || period_size > 0x10000) in snd_card_saa7134_hw_params()
676 if (period_size * periods > 1024 * 1024) in snd_card_saa7134_hw_params()
682 dev->dmasound.blksize == period_size) in snd_card_saa7134_hw_params()
693 dev->dmasound.blksize = period_size; in snd_card_saa7134_hw_params()
694 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params()
/drivers/media/pci/cx88/
Dcx88-alsa.c69 unsigned int period_size; member
461 chip->period_size = params_period_bytes(hw_params); in snd_cx88_hw_params()
463 chip->dma_size = chip->period_size * params_periods(hw_params); in snd_cx88_hw_params()
473 buf->bpl = chip->period_size; in snd_cx88_hw_params()
485 chip->period_size, chip->num_periods, 1); in snd_cx88_hw_params()
568 return runtime->period_size * (count & (runtime->periods - 1)); in snd_cx88_pointer()
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c122 runtime->period_size) { in cx18_alsa_announce_pcm_data()
124 runtime->period_size; in cx18_alsa_announce_pcm_data()
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c119 runtime->period_size) { in ivtv_alsa_announce_pcm_data()
121 runtime->period_size; in ivtv_alsa_announce_pcm_data()
/drivers/media/usb/cx231xx/
Dcx231xx-audio.c150 runtime->period_size) { in cx231xx_audio_isocirq()
152 runtime->period_size; in cx231xx_audio_isocirq()
237 runtime->period_size) { in cx231xx_audio_bulkirq()
239 runtime->period_size; in cx231xx_audio_bulkirq()
/drivers/media/usb/go7007/
Dsnd-go7007.c88 if (gosnd->avail < runtime->period_size) { in parse_audio_stream_data()
92 gosnd->avail -= runtime->period_size; in parse_audio_stream_data()
/drivers/media/usb/tm6000/
Dtm6000-alsa.c222 if (chip->period_pos >= runtime->period_size) { in tm6000_fillbuf()
223 chip->period_pos -= runtime->period_size; in tm6000_fillbuf()
/drivers/media/usb/usbtv/
Dusbtv-audio.c153 if (period_pos >= runtime->period_size) { in usbtv_audio_urb_received()
154 period_pos -= runtime->period_size; in usbtv_audio_urb_received()
/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c172 runtime->period_size) { in cobalt_alsa_announce_pcm_data()
174 runtime->period_size; in cobalt_alsa_announce_pcm_data()
/drivers/most/
Dmost_snd.c208 if (channel->period_pos >= runtime->period_size) { in copy_data()
209 channel->period_pos -= runtime->period_size; in copy_data()
/drivers/media/usb/em28xx/
Dem28xx-audio.c149 runtime->period_size) { in em28xx_audio_isocirq()
151 runtime->period_size; in em28xx_audio_isocirq()
/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c478 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()