/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | rt5514-spi.c | 79 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local 90 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work() 91 if (!period_bytes) { in rt5514_spi_copy_work() 96 if (rt5514_dsp->buf_size % period_bytes) in rt5514_spi_copy_work() 97 rt5514_dsp->buf_size = (rt5514_dsp->buf_size / period_bytes) * in rt5514_spi_copy_work() 98 period_bytes; in rt5514_spi_copy_work() 113 if (remain_data < 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 period_bytes); in rt5514_spi_copy_work() 124 if (rt5514_dsp->buf_rp + period_bytes == rt5514_dsp->buf_limit) in rt5514_spi_copy_work() [all …]
|
D | rt5677-spi.c | 309 size_t new_bytes, copy_bytes, period_bytes; in rt5677_spi_copy_work() local 351 period_bytes = snd_pcm_lib_period_bytes(rt5677_dsp->substream); in rt5677_spi_copy_work() 353 copy_bytes = min(new_bytes, period_bytes in rt5677_spi_copy_work() 361 if (rt5677_dsp->avail_bytes >= period_bytes) { in rt5677_spi_copy_work() 368 delay = bytes_to_frames(runtime, period_bytes) / (runtime->rate / 1000); in rt5677_spi_copy_work()
|
/kernel/linux/linux-5.10/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() 224 siu_stream->period_bytes); in siu_io_work() 227 siu_stream->period_bytes); in siu_io_work() 228 count = siu_stream->period_bytes; in siu_io_work() 236 siu_stream->period_bytes), in siu_io_work() [all …]
|
/kernel/linux/linux-5.10/sound/hda/ |
D | hdac_stream.c | 273 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup() 420 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local 427 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods() 428 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods() 445 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods() 463 period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods() 467 period_bytes, in snd_hdac_stream_setup_periods() 476 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods() 493 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local 502 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params() [all …]
|
/kernel/linux/linux-5.10/sound/soc/au1x/ |
D | dbdma2.c | 53 unsigned long period_bytes; /* size in bytes of one SG segment */ member 81 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx() 85 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx() 95 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx() 99 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx() 110 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb() 123 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb() 219 pcd->period_bytes = params_period_bytes(params); in au1xpsc_pcm_hw_params()
|
D | dma.c | 64 unsigned int period_bytes, in au1000_setup_dma_link() argument 75 if (stream->period_size == period_bytes && in au1000_setup_dma_link() 81 stream->period_size = period_bytes; in au1000_setup_dma_link() 89 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link() 90 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
|
/kernel/linux/linux-5.10/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 109 unsigned int period_bytes) in cs5535audio_build_dma_packets() argument 124 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets() 127 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets() 138 desc->size = cpu_to_le16(period_bytes); in cs5535audio_build_dma_packets() 141 addr += period_bytes; in cs5535audio_build_dma_packets() 152 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
|
/kernel/linux/linux-5.10/sound/pci/lola/ |
D | lola_pcm.c | 283 str->period_bytes = 0; in lola_pcm_hw_params() 345 int i, ofs, periods, period_bytes; in lola_setup_periods() local 347 period_bytes = str->period_bytes; in lola_setup_periods() 348 periods = str->bufsize / period_bytes; in lola_setup_periods() 355 ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); in lola_setup_periods() 363 str->bufsize, period_bytes); in lola_setup_periods() 457 unsigned int bufsize, period_bytes, format_verb; in lola_pcm_prepare() local 474 period_bytes = snd_pcm_lib_period_bytes(substream); in lola_pcm_prepare() 478 str->period_bytes = period_bytes; in lola_pcm_prepare()
|
/kernel/linux/linux-5.10/sound/pci/ |
D | als300.c | 417 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local 425 period_bytes, buffer_bytes); in snd_als300_playback_prepare() 429 tmp |= period_bytes - 1; in snd_als300_playback_prepare() 446 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local 453 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare() 458 tmp |= period_bytes - 1; in snd_als300_capture_prepare() 519 unsigned short period_bytes; in snd_als300_pointer() local 522 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer() 528 if (current_ptr > period_bytes) in snd_als300_pointer() 531 current_ptr = period_bytes - current_ptr; in snd_als300_pointer() [all …]
|
D | atiixp_modem.c | 211 unsigned int period_bytes, periods; member 314 unsigned int period_bytes) in atiixp_build_dma_packets() argument 327 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 330 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 348 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets() 354 addr += period_bytes; in atiixp_build_dma_packets() 360 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
|
D | atiixp.c | 235 unsigned int period_bytes, periods; member 345 unsigned int period_bytes) in atiixp_build_dma_packets() argument 360 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets() 363 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets() 381 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets() 387 addr += period_bytes; in atiixp_build_dma_packets() 393 dma->period_bytes = period_bytes; in atiixp_build_dma_packets()
|
/kernel/linux/linux-5.10/sound/soc/bcm/ |
D | cygnus-ssp.h | 41 unsigned period_bytes; member 51 .period_bytes = 0, \ 61 .period_bytes = 0, \
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/sound/soc/txx9/ |
D | txx9aclc.c | 81 dmadata->period_bytes = snd_pcm_lib_period_bytes(substream); in txx9aclc_pcm_prepare() 83 if (dmadata->buffer_bytes == dmadata->period_bytes) { in txx9aclc_pcm_prepare() 84 dmadata->frag_bytes = dmadata->period_bytes >> 1; in txx9aclc_pcm_prepare() 87 dmadata->frag_bytes = dmadata->period_bytes; in txx9aclc_pcm_prepare() 88 dmadata->frags = dmadata->buffer_bytes / dmadata->period_bytes; in txx9aclc_pcm_prepare() 191 dmadata->period_bytes == 0) in txx9aclc_dma_work()
|
D | txx9aclc.h | 53 unsigned long period_bytes; member
|
/kernel/linux/linux-5.10/sound/soc/amd/renoir/ |
D | acp3x-pdm-dma.c | 244 size_t size, period_bytes; in acp_pdm_dma_hw_params() local 250 period_bytes = params_period_bytes(params); in acp_pdm_dma_hw_params() 254 init_pdm_ring_buffer(MEM_WINDOW_START, size, period_bytes, in acp_pdm_dma_hw_params() 458 u32 period_bytes, buffer_len; in acp_pdm_resume() local 464 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_pdm_resume() 467 init_pdm_ring_buffer(MEM_WINDOW_START, buffer_len, period_bytes, in acp_pdm_resume()
|
/kernel/linux/linux-5.10/sound/soc/sof/intel/ |
D | hda-stream.c | 88 int i, offset, period_bytes, periods; in hda_dsp_stream_setup_bdl() local 91 period_bytes = stream->period_bytes; in hda_dsp_stream_setup_bdl() 92 dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes); in hda_dsp_stream_setup_bdl() 93 if (!period_bytes) in hda_dsp_stream_setup_bdl() 94 period_bytes = stream->bufsize; in hda_dsp_stream_setup_bdl() 96 periods = stream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl() 100 remain = stream->bufsize % period_bytes; in hda_dsp_stream_setup_bdl() 125 period_bytes, ioc); in hda_dsp_stream_setup_bdl()
|
/kernel/linux/linux-5.10/sound/usb/ |
D | endpoint.c | 628 unsigned int period_bytes, in check_ep_params() argument 747 while (urb_packs > 1 && urb_packs * maxsize >= period_bytes) in check_ep_params() 767 max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); in check_ep_params() 800 unsigned int period_bytes, in data_ep_set_params() argument 917 while (urb_packs > 1 && urb_packs * maxsize >= period_bytes) in data_ep_set_params() 937 max_packs_per_period = DIV_ROUND_UP(period_bytes, minsize); in data_ep_set_params() 1049 unsigned int period_bytes, in snd_usb_endpoint_set_params() argument 1061 channels, period_bytes, in snd_usb_endpoint_set_params() 1106 period_bytes, period_frames, in snd_usb_endpoint_set_params()
|
D | endpoint.h | 15 unsigned int period_bytes,
|
/kernel/linux/linux-5.10/sound/soc/amd/raven/ |
D | acp3x-i2s.c | 152 u32 ret, val, period_bytes, reg_val, ier_val, water_val; in acp3x_i2s_trigger() local 156 period_bytes = frames_to_bytes(substream->runtime, in acp3x_i2s_trigger() 201 rv_writel(period_bytes, rtd->acp3x_base + water_val); in acp3x_i2s_trigger()
|
/kernel/linux/linux-5.10/sound/core/oss/ |
D | pcm_oss.c | 777 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size() 948 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked() 1053 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked() 1057 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked() 1068 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked() 1406 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1() 1408 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1() 1409 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1() 1421 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1() 1428 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1() [all …]
|
/kernel/linux/linux-5.10/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() 131 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger() 283 count = s->period_current * s->period_bytes; in psc_dma_pointer()
|
D | mpc5200_dma.h | 31 int period_bytes; member
|
/kernel/linux/linux-5.10/include/sound/ |
D | pcm_oss.h | 35 size_t period_bytes; /* requested period size */ member
|
/kernel/linux/linux-5.10/sound/x86/ |
D | intel_hdmi_audio.h | 124 unsigned int period_bytes; /* PCM period size in bytes */ member
|