Home
last modified time | relevance | path

Searched refs:period_bytes (Results 1 – 46 of 46) sorted by relevance

/linux-4.4.14/sound/hda/
Dhdac_stream.c221 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup()
368 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
375 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods()
376 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods()
393 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
411 period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods()
415 period_bytes, in snd_hdac_stream_setup_periods()
424 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods()
441 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
450 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params()
[all …]
/linux-4.4.14/sound/soc/sh/
Dsiu_pcm.c38 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \ argument
39 ((buf_bytes) / (period_bytes))
40 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \ argument
41 ((buf_addr) + ((period_num) * (period_bytes)))
100 siu_stream->period_bytes)) in siu_dma_tx_complete()
105 siu_stream->cur_period * siu_stream->period_bytes, in siu_dma_tx_complete()
235 siu_stream->period_bytes); in siu_io_tasklet()
238 siu_stream->period_bytes); in siu_io_tasklet()
239 count = siu_stream->period_bytes; in siu_io_tasklet()
247 siu_stream->period_bytes), in siu_io_tasklet()
[all …]
Dsiu.h117 size_t period_bytes; member
/linux-4.4.14/sound/soc/au1x/
Ddbdma2.c55 unsigned long period_bytes; /* size in bytes of one SG segment */ member
83 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx()
87 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx()
97 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx()
101 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx()
112 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb()
125 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb()
225 pcd->period_bytes = params_period_bytes(params); in au1xpsc_pcm_hw_params()
Ddma.c61 unsigned int period_bytes, in au1000_setup_dma_link() argument
72 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
78 stream->period_size = period_bytes; in au1000_setup_dma_link()
86 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link()
87 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
/linux-4.4.14/sound/pci/cs5535audio/
Dcs5535audio_pcm.c122 unsigned int period_bytes) in cs5535audio_build_dma_packets() argument
137 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
140 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
151 desc->size = cpu_to_le16(period_bytes); in cs5535audio_build_dma_packets()
154 addr += period_bytes; in cs5535audio_build_dma_packets()
165 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
Dcs5535audio.h79 unsigned int period_bytes, periods; member
/linux-4.4.14/sound/pci/lola/
Dlola_pcm.c296 str->period_bytes = 0; in lola_pcm_hw_params()
359 int i, ofs, periods, period_bytes; in lola_setup_periods() local
361 period_bytes = str->period_bytes; in lola_setup_periods()
362 periods = str->bufsize / period_bytes; in lola_setup_periods()
369 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); in lola_setup_periods()
377 str->bufsize, period_bytes); in lola_setup_periods()
471 unsigned int bufsize, period_bytes, format_verb; in lola_pcm_prepare() local
488 period_bytes = snd_pcm_lib_period_bytes(substream); in lola_pcm_prepare()
492 str->period_bytes = period_bytes; in lola_pcm_prepare()
Dlola.h301 unsigned int period_bytes; member
/linux-4.4.14/sound/pci/
Dals300.c444 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local
452 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
456 tmp |= period_bytes - 1; in snd_als300_playback_prepare()
473 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local
480 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare()
485 tmp |= period_bytes - 1; in snd_als300_capture_prepare()
546 unsigned short period_bytes; in snd_als300_pointer() local
549 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer()
555 if (current_ptr > period_bytes) in snd_als300_pointer()
558 current_ptr = period_bytes - current_ptr; in snd_als300_pointer()
[all …]
Datiixp_modem.c225 unsigned int period_bytes, periods; member
328 unsigned int period_bytes) in atiixp_build_dma_packets() argument
341 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
344 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
362 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets()
368 addr += period_bytes; in atiixp_build_dma_packets()
374 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
Datiixp.c249 unsigned int period_bytes, periods; member
359 unsigned int period_bytes) in atiixp_build_dma_packets() argument
374 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
377 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
395 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets()
401 addr += period_bytes; in atiixp_build_dma_packets()
407 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
Dbt87x.c228 unsigned int periods, unsigned int period_bytes) in snd_bt87x_create_risc() argument
245 rest = period_bytes; in snd_bt87x_create_risc()
254 if (rest == period_bytes) { in snd_bt87x_create_risc()
273 chip->line_bytes = period_bytes; in snd_bt87x_create_risc()
Dazt3328.c1404 unsigned int period_bytes, in snd_azf3328_codec_setdmaa() argument
1408 WARN_ONCE(period_bytes & 1, "odd period length!?\n"); in snd_azf3328_codec_setdmaa()
1409 WARN_ONCE(buffer_bytes != 2 * period_bytes, in snd_azf3328_codec_setdmaa()
1411 buffer_bytes, period_bytes); in snd_azf3328_codec_setdmaa()
1434 period_bytes, buffer_bytes); in snd_azf3328_codec_setdmaa()
Drme96.c960 size_t period_bytes) in snd_rme96_set_period_properties() argument
962 switch (period_bytes) { in snd_rme96_set_period_properties()
1152 static unsigned int period_bytes[] = { RME96_SMALL_BLOCK_SIZE, RME96_LARGE_BLOCK_SIZE }; variable
1155 .count = ARRAY_SIZE(period_bytes),
1156 .list = period_bytes,
Drme32.c822 static unsigned int period_bytes[] = { RME32_BLOCK_SIZE }; variable
826 .count = ARRAY_SIZE(period_bytes),
827 .list = period_bytes,
/linux-4.4.14/sound/drivers/pcsp/
Dpcsp_lib.c90 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
99 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
109 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update()
113 periods_elapsed /= period_bytes; in pcsp_pointer_update()
119 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c90 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare() local
96 period_bytes = period_bytes / runtime->channels * 8; in bf5xx_pcm_prepare()
102 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
106 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
/linux-4.4.14/sound/soc/txx9/
Dtxx9aclc.c91 dmadata->period_bytes = snd_pcm_lib_period_bytes(substream); in txx9aclc_pcm_prepare()
93 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare()
94 dmadata->frag_bytes = dmadata->period_bytes >> 1; in txx9aclc_pcm_prepare()
97 dmadata->frag_bytes = dmadata->period_bytes; in txx9aclc_pcm_prepare()
98 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare()
200 dmadata->period_bytes == 0) in txx9aclc_dma_tasklet()
Dtxx9aclc.h56 unsigned long period_bytes; member
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c791 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size()
978 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params()
1049 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params()
1053 runtime->oss.period_bytes, in snd_pcm_oss_change_params()
1064 runtime->oss.buffer = vmalloc(runtime->oss.period_bytes); in snd_pcm_oss_change_params()
1375 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1()
1377 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1()
1378 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1()
1390 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1397 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
[all …]
/linux-4.4.14/sound/usb/
Dendpoint.h14 unsigned int period_bytes,
Dendpoint.c613 unsigned int period_bytes, in data_ep_set_params() argument
716 while (urb_packs > 1 && urb_packs * maxsize >= period_bytes) in data_ep_set_params()
736 max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); in data_ep_set_params()
848 unsigned int period_bytes, in snd_usb_endpoint_set_params() argument
885 period_bytes, period_frames, in snd_usb_endpoint_set_params()
Dcard.h120 unsigned int period_bytes; /* current period bytes (for hw_params callback) */ member
Dpcm.c616 int sync_period_bytes = subs->period_bytes; in configure_sync_endpoint()
625 subs->period_bytes, in configure_sync_endpoint()
655 sync_period_bytes = (subs->period_bytes / subs->channels) * in configure_sync_endpoint()
659 __func__, subs->period_bytes, sync_period_bytes); in configure_sync_endpoint()
688 subs->period_bytes, in configure_endpoint()
726 subs->period_bytes = params_period_bytes(hw_params); in snd_usb_hw_params()
766 subs->period_bytes = 0; in snd_usb_hw_free()
/linux-4.4.14/sound/soc/fsl/
Dmpc5200_dma.c65 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer()
66 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer()
127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
276 count = s->period_current * s->period_bytes; in psc_dma_pointer()
Dmpc5200_dma.h30 int period_bytes; member
/linux-4.4.14/include/sound/
Dpcm_oss.h50 size_t period_bytes; /* requested period size */ member
Dvx_core.h74 int period_bytes; /* the ALSA pcm period size in bytes */ member
Dhdaudio.h396 unsigned int period_bytes; /* size of the period in bytes */ member
/linux-4.4.14/sound/mips/
Dau1x00.c153 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, in au1000_setup_dma_link() argument
164 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
170 stream->period_size = period_bytes; in au1000_setup_dma_link()
178 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link()
179 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
/linux-4.4.14/sound/pci/hda/
Dhda_intel.c582 if (delay >= azx_dev->core.period_bytes) { in azx_get_delay_from_lpib()
585 delay, azx_dev->core.period_bytes); in azx_get_delay_from_lpib()
665 if (WARN_ONCE(!azx_dev->core.period_bytes, in azx_position_ok()
669 pos % azx_dev->core.period_bytes > azx_dev->core.period_bytes / 2) in azx_position_ok()
773 mod_dma_pos %= azx_dev->core.period_bytes; in azx_via_get_position()
795 mod_mini_pos = mini_pos % azx_dev->core.period_bytes; in azx_via_get_position()
796 mod_link_pos = link_pos % azx_dev->core.period_bytes; in azx_via_get_position()
802 bound_pos = mini_pos - mod_mini_pos + azx_dev->core.period_bytes; in azx_via_get_position()
Dhda_controller.c125 azx_dev->core.period_bytes = 0; in azx_pcm_hw_params()
/linux-4.4.14/sound/pci/lx6464es/
Dlx6464es.c435 const u32 period_bytes = period_size * bytes_per_frame; in lx_trigger_start() local
451 err = lx_buffer_give(chip, 0, is_capture, period_bytes, in lx_trigger_start()
456 buffer_index, (unsigned long)buf, period_bytes); in lx_trigger_start()
457 buf += period_bytes; in lx_trigger_start()
Dlx_core.c1046 const u32 period_bytes = period_size * bytes_per_frame; in lx_interrupt_request_new_buffer() local
1051 dma_addr_t buf = substream->dma_buffer.addr + pos * period_bytes; in lx_interrupt_request_new_buffer()
1068 err = lx_buffer_give(chip, 0, is_capture, period_bytes, buf_lo, buf_hi, in lx_interrupt_request_new_buffer()
1072 buffer_index, (unsigned long)buf, period_bytes); in lx_interrupt_request_new_buffer()
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_core.c1105 dma->period_bytes = psize; in vortex_adbdma_setbuffers()
1206 dma->period_bytes * p)); in vortex_adbdma_bufshift()
1248 dma->period_bytes * p)); in vortex_adbdma_resetup()
1268 return (dma->period_virt + delta) * dma->period_bytes in vortex_adbdma_getlinearpos()
1269 + (temp & (dma->period_bytes - 1)); in vortex_adbdma_getlinearpos()
1381 dma->period_bytes = psize; in vortex_wtdma_setbuffers()
1475 dma->period_bytes * p)); in vortex_wtdma_bufshift()
1515 temp = (dma->period_virt * dma->period_bytes) + (temp & (dma->period_bytes - 1)); in vortex_wtdma_getlinearpos()
Dau88x0.h134 int period_bytes; member
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-pcm.c78 hdac_stream(stream)->period_bytes = 0; in skl_substream_alloc_pages()
777 if (delay >= hstream->period_bytes) { in skl_get_delay_from_lpib()
780 delay, hstream->period_bytes); in skl_get_delay_from_lpib()
/linux-4.4.14/include/uapi/sound/
Dasoc.h224 __le32 period_bytes; /* size of period in bytes */ member
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c156 unsigned int period_bytes; member
510 dpcm->period_bytes = params_period_bytes(params); in snd_card_asihpi_pcm_hw_params()
631 unsigned int preload = ds->period_bytes * 1; in snd_card_asihpi_trigger()
852 remdata = newdata % dpcm->period_bytes; in snd_card_asihpi_timer_function()
858 if (xfercount && (on_card_bytes > dpcm->period_bytes)) in snd_card_asihpi_timer_function()
859 next_jiffies = ((on_card_bytes - dpcm->period_bytes) * HZ / dpcm->bytes_per_sec); in snd_card_asihpi_timer_function()
861 next_jiffies = ((dpcm->period_bytes - remdata) * HZ / dpcm->bytes_per_sec); in snd_card_asihpi_timer_function()
881 ((on_card_bytes <= ds->period_bytes) || in snd_card_asihpi_timer_function()
/linux-4.4.14/sound/drivers/vx/
Dvx_pcm.c858 pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size); in vx_pcm_prepare()
1071 if (pipe->transferred >= pipe->period_bytes) { in vx_pcm_capture_update()
1072 pipe->transferred %= pipe->period_bytes; in vx_pcm_capture_update()
/linux-4.4.14/sound/pci/rme9652/
Drme9652.c221 size_t period_bytes; /* guess what this is */ member
362 rme9652->period_bytes = 1 << ((rme9652_decode_latency(i) + 8)); in rme9652_compute_period_size()
364 (rme9652->period_bytes * 2 - 1) & RME9652_buf_pos; in rme9652_compute_period_size()
372 snd_pcm_uframes_t period_size = rme9652->period_bytes / 4; in rme9652_hw_pointer()
1589 x, (unsigned long) rme9652->period_bytes); in snd_rme9652_proc_read()
1999 if (params_period_size(params) != rme9652->period_bytes / 4) { in snd_rme9652_hw_params()
Dhdspm.c1012 size_t period_bytes; member
1480 hdspm->period_bytes = 4 * hdspm_get_latency(hdspm); in hdspm_compute_period_size()
1498 (hdspm->period_bytes / 4) : 0; in hdspm_hw_pointer()
1521 int n = hdspm->period_bytes; in hdspm_silence_playback()
4906 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_madi()
4908 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_madi()
4934 x, (unsigned long) hdspm->period_bytes); in snd_hdspm_proc_read_madi()
5063 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_aes32()
5065 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_aes32()
5090 x, (unsigned long) hdspm->period_bytes); in snd_hdspm_proc_read_aes32()
[all …]
Dhdsp.c477 size_t period_bytes; /* guess what this is */ member
1044 hdsp->period_bytes = 1 << ((hdsp_decode_latency(hdsp->control_register) + 8)); in hdsp_compute_period_size()
1054 return (position & HDSP_BufferID) ? (hdsp->period_bytes / 4) : 0; in hdsp_hw_pointer()
1058 position &= (hdsp->period_bytes/2) - 1; in hdsp_hw_pointer()
3400 …fer Size (Latency): %d samples (2 periods of %lu bytes)\n", x, (unsigned long) hdsp->period_bytes); in snd_hdsp_proc_read()
4028 if (params_period_size(params) != hdsp->period_bytes / 4) { in snd_hdsp_hw_params()
/linux-4.4.14/sound/pci/riptide/
Driptide.c1094 unsigned int pos, period_bytes; in riptide_handleirq() local
1131 period_bytes = in riptide_handleirq()
1140 if (pos >= period_bytes) { in riptide_handleirq()
1142 while (pos >= period_bytes) in riptide_handleirq()
1143 pos -= period_bytes; in riptide_handleirq()
/linux-4.4.14/sound/core/
Dpcm.c410 snd_iprintf(buffer, "OSS period bytes: %lu\n", (unsigned long)runtime->oss.period_bytes); in snd_pcm_substream_proc_hw_params_read()