/Linux-v4.19/sound/soc/codecs/ |
D | rt5514-spi.c | 82 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local 93 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work() 108 if (remain_data < period_bytes) { in rt5514_spi_copy_work() 114 if (rt5514_dsp->buf_rp + period_bytes <= rt5514_dsp->buf_limit) { in rt5514_spi_copy_work() 117 period_bytes); in rt5514_spi_copy_work() 119 if (rt5514_dsp->buf_rp + period_bytes == rt5514_dsp->buf_limit) in rt5514_spi_copy_work() 122 rt5514_dsp->buf_rp += period_bytes; in rt5514_spi_copy_work() 131 truncated_bytes, period_bytes - truncated_bytes); in rt5514_spi_copy_work() 133 rt5514_dsp->buf_rp = rt5514_dsp->buf_base + period_bytes - in rt5514_spi_copy_work() 137 rt5514_dsp->get_size += period_bytes; in rt5514_spi_copy_work() [all …]
|
/Linux-v4.19/sound/hda/ |
D | hdac_stream.c | 221 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-v4.19/sound/soc/sh/ |
D | siu_pcm.c | 26 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \ argument 27 ((buf_bytes) / (period_bytes)) 28 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \ argument 29 ((buf_addr) + ((period_num) * (period_bytes))) 88 siu_stream->period_bytes)) in siu_dma_tx_complete() 93 siu_stream->cur_period * siu_stream->period_bytes, in siu_dma_tx_complete() 223 siu_stream->period_bytes); in siu_io_tasklet() 226 siu_stream->period_bytes); in siu_io_tasklet() 227 count = siu_stream->period_bytes; in siu_io_tasklet() 235 siu_stream->period_bytes), in siu_io_tasklet() [all …]
|
/Linux-v4.19/sound/soc/au1x/ |
D | dbdma2.c | 57 unsigned long period_bytes; /* size in bytes of one SG segment */ member 85 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx() 89 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx() 99 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx() 103 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx() 114 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb() 127 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb() 227 pcd->period_bytes = params_period_bytes(params); in au1xpsc_pcm_hw_params()
|
D | dma.c | 63 unsigned int period_bytes, in au1000_setup_dma_link() argument 74 if (stream->period_size == period_bytes && in au1000_setup_dma_link() 80 stream->period_size = period_bytes; in au1000_setup_dma_link() 88 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link() 89 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
|
/Linux-v4.19/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 122 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()
|
D | cs5535audio.h | 80 unsigned int period_bytes, periods; member
|
/Linux-v4.19/sound/soc/bcm/ |
D | cygnus-ssp.h | 41 unsigned period_bytes; member 51 .period_bytes = 0, \ 61 .period_bytes = 0, \
|
/Linux-v4.19/sound/pci/ |
D | als300.c | 444 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 …]
|
D | atiixp_modem.c | 225 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()
|
D | atiixp.c | 249 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()
|
/Linux-v4.19/sound/pci/lola/ |
D | lola_pcm.c | 296 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()
|
/Linux-v4.19/sound/drivers/pcsp/ |
D | pcsp_lib.c | 91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local 100 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update() 110 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update() 114 periods_elapsed /= period_bytes; in pcsp_pointer_update() 120 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
|
/Linux-v4.19/sound/soc/txx9/ |
D | txx9aclc.c | 94 dmadata->period_bytes = snd_pcm_lib_period_bytes(substream); in txx9aclc_pcm_prepare() 96 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare() 97 dmadata->frag_bytes = dmadata->period_bytes >> 1; in txx9aclc_pcm_prepare() 100 dmadata->frag_bytes = dmadata->period_bytes; in txx9aclc_pcm_prepare() 101 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare() 203 dmadata->period_bytes == 0) in txx9aclc_dma_tasklet()
|
D | txx9aclc.h | 56 unsigned long period_bytes; member
|
/Linux-v4.19/sound/core/oss/ |
D | pcm_oss.c | 780 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size() 981 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked() 1051 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked() 1055 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked() 1066 runtime->oss.buffer = vmalloc(runtime->oss.period_bytes); in snd_pcm_oss_change_params_locked() 1400 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1() 1402 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1() 1403 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1() 1415 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1() 1422 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1() [all …]
|
/Linux-v4.19/sound/soc/fsl/ |
D | mpc5200_dma.c | 67 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer() 68 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer() 129 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger() 278 count = s->period_current * s->period_bytes; in psc_dma_pointer()
|
D | mpc5200_dma.h | 31 int period_bytes; member
|
/Linux-v4.19/sound/usb/ |
D | endpoint.h | 15 unsigned int period_bytes,
|
D | endpoint.c | 615 unsigned int period_bytes, in data_ep_set_params() argument 732 while (urb_packs > 1 && urb_packs * maxsize >= period_bytes) in data_ep_set_params() 752 max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); in data_ep_set_params() 864 unsigned int period_bytes, in snd_usb_endpoint_set_params() argument 901 period_bytes, period_frames, in snd_usb_endpoint_set_params()
|
D | card.h | 124 unsigned int period_bytes; /* current period bytes (for hw_params callback) */ member
|
D | pcm.c | 627 int sync_period_bytes = subs->period_bytes; in configure_sync_endpoint() 636 subs->period_bytes, in configure_sync_endpoint() 666 sync_period_bytes = (subs->period_bytes / subs->channels) * in configure_sync_endpoint() 670 __func__, subs->period_bytes, sync_period_bytes); in configure_sync_endpoint() 699 subs->period_bytes, in configure_endpoint() 789 subs->period_bytes = params_period_bytes(hw_params); in snd_usb_hw_params() 835 subs->period_bytes = 0; in snd_usb_hw_free()
|
/Linux-v4.19/include/sound/ |
D | pcm_oss.h | 50 size_t period_bytes; /* requested period size */ member
|
/Linux-v4.19/sound/x86/ |
D | intel_hdmi_audio.h | 124 unsigned int period_bytes; /* PCM period size in bytes */ member
|
D | intel_hdmi_audio.c | 882 int ofs = intelhaddata->pcmbuf_filled * intelhaddata->period_bytes; in had_prog_bd() 890 intelhaddata->period_bytes); in had_prog_bd() 918 intelhaddata->period_bytes = in had_init_ringbuf() 920 WARN_ON(intelhaddata->period_bytes & 0x3f); in had_init_ringbuf() 966 if (len < 0 || len > intelhaddata->period_bytes) { in had_process_ringbuf() 984 len = intelhaddata->period_bytes - len; in had_process_ringbuf() 985 len += intelhaddata->period_bytes * intelhaddata->pcmbuf_head; in had_process_ringbuf()
|