| /linux/sound/virtio/ |
| H A D | virtio_pcm_msg.c | 133 unsigned int periods, unsigned int period_bytes) in virtsnd_pcm_msg_alloc() argument 145 u8 *data = runtime->dma_area + period_bytes * i; in virtsnd_pcm_msg_alloc() 146 int sg_num = virtsnd_pcm_sg_num(data, period_bytes); in virtsnd_pcm_msg_alloc() 159 period_bytes); in virtsnd_pcm_msg_alloc() 206 unsigned long period_bytes = snd_pcm_lib_period_bytes(vss->substream); in virtsnd_pcm_msg_send() local 212 start = offset / period_bytes; in virtsnd_pcm_msg_send() 213 end = (offset + bytes - 1) / period_bytes; in virtsnd_pcm_msg_send() 224 n = period_bytes - (offset % period_bytes); in virtsnd_pcm_msg_send() 229 if (msg->length == period_bytes) { in virtsnd_pcm_msg_send()
|
| H A D | virtio_pcm.h | 118 unsigned int periods, unsigned int period_bytes);
|
| /linux/sound/hda/core/ |
| H A D | stream.c | 345 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup() 505 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_bdle() local 513 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_bdle() 514 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_bdle() 530 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_bdle() 546 &bdl, ofs, period_bytes - pos_adj, 0); in snd_hdac_stream_setup_bdle() 549 &bdl, ofs, period_bytes, in snd_hdac_stream_setup_bdle() 558 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_bdle() 603 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local 609 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_hdac_stream_set_params() [all …]
|
| /linux/sound/pci/ |
| H A D | als300.c | 400 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local 408 period_bytes, buffer_bytes); in snd_als300_playback_prepare() 412 tmp |= period_bytes - 1; in snd_als300_playback_prepare() 428 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local 435 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare() 440 tmp |= period_bytes - 1; in snd_als300_capture_prepare() 499 unsigned short period_bytes; in snd_als300_pointer() local 502 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer() 508 if (current_ptr > period_bytes) in snd_als300_pointer() 511 current_ptr = period_bytes - current_ptr; in snd_als300_pointer() [all …]
|
| /linux/sound/soc/bcm/ |
| H A D | cygnus-ssp.h | 31 unsigned period_bytes; member 41 .period_bytes = 0, \ 51 .period_bytes = 0, \
|
| /linux/sound/drivers/pcsp/ |
| H A D | pcsp_lib.c | 92 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local 101 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update() 111 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_pointer_update() 115 periods_elapsed /= period_bytes; in pcsp_pointer_update() 121 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_pointer_update()
|
| /linux/sound/soc/au1x/ |
| H A 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()
|
| /linux/sound/soc/amd/ps/ |
| H A D | ps-pdm-dma.c | 222 size_t size, period_bytes; in acp63_pdm_dma_hw_params() local 228 period_bytes = params_period_bytes(params); in acp63_pdm_dma_hw_params() 233 period_bytes, rtd->acp63_base); in acp63_pdm_dma_hw_params() 410 u32 period_bytes, buffer_len; in acp63_pdm_resume() local 416 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp63_pdm_resume() 420 period_bytes, adata->acp63_base); in acp63_pdm_resume()
|
| H A D | ps-sdw-dma.c | 349 u32 period_bytes; in acp63_sdw_dma_hw_params() local 415 period_bytes = params_period_bytes(params); in acp63_sdw_dma_hw_params() 428 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_sdw_dma_hw_params() 694 u32 period_bytes, buf_size, water_mark_size_reg; in acp63_restore_sdw_dma_config() local 718 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp63_restore_sdw_dma_config() 726 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_restore_sdw_dma_config() 739 u32 period_bytes, buf_size, water_mark_size_reg; in acp70_restore_sdw_dma_config() local 759 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp70_restore_sdw_dma_config() 767 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp70_restore_sdw_dma_config()
|
| /linux/sound/soc/amd/yc/ |
| H A D | acp6x-pdm-dma.c | 220 size_t size, period_bytes; in acp6x_pdm_dma_hw_params() local 226 period_bytes = params_period_bytes(params); in acp6x_pdm_dma_hw_params() 231 period_bytes, rtd->acp6x_base); in acp6x_pdm_dma_hw_params() 402 u32 period_bytes, buffer_len; in acp6x_pdm_resume() local 408 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp6x_pdm_resume() 412 period_bytes, adata->acp6x_base); in acp6x_pdm_resume()
|
| /linux/sound/soc/amd/renoir/ |
| H A 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() 451 u32 period_bytes, buffer_len; in acp_pdm_resume() local 457 period_bytes = frames_to_bytes(runtime, runtime->period_size); in acp_pdm_resume() 460 init_pdm_ring_buffer(MEM_WINDOW_START, buffer_len, period_bytes, in acp_pdm_resume()
|
| /linux/sound/soc/sof/intel/ |
| H A D | hda-stream.c | 118 int i, offset, period_bytes, periods; in hda_dsp_stream_setup_bdl() local 121 period_bytes = hstream->period_bytes; in hda_dsp_stream_setup_bdl() 122 dev_dbg(sdev->dev, "period_bytes: %#x, bufsize: %#x\n", period_bytes, in hda_dsp_stream_setup_bdl() 125 if (!period_bytes) { in hda_dsp_stream_setup_bdl() 130 period_bytes = hstream->bufsize; in hda_dsp_stream_setup_bdl() 143 * Note: period_bytes == 0 can only happen for firmware or in hda_dsp_stream_setup_bdl() 149 period_bytes /= 2; in hda_dsp_stream_setup_bdl() 152 periods = hstream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl() [all...] |
| H A D | hda-trace.c | 29 hstream->period_bytes = 0;/* initialize period_bytes */ in hda_dsp_trace_prepare()
|
| /linux/sound/soc/codecs/ |
| H A 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; in rt5677_spi_copy_work()
|
| H A D | cros_ec_codec.c | 504 size_t period_bytes = snd_pcm_lib_period_bytes(priv->wov_substream); in wov_queue_try_dequeue() 506 while (period_bytes && wov_queue_size(priv) >= period_bytes) { in wov_queue_try_dequeue() local 507 wov_queue_dequeue(priv, period_bytes); in wov_queue_try_dequeue() 508 period_bytes = snd_pcm_lib_period_bytes(priv->wov_substream); in wov_queue_try_dequeue()
|
| /linux/sound/core/oss/ |
| H A D | pcm_oss.c | 776 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size() 955 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked() 1055 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked() 1059 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked() 1070 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked() 1411 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1() 1413 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1() 1414 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1() 1426 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1() 1433 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1() [all …]
|
| /linux/sound/soc/google/ |
| H A D | chv3-i2s.c | 205 unsigned int buffer_bytes, period_bytes, period_size; in chv3_dma_prepare() local 208 period_bytes = snd_pcm_lib_period_bytes(substream); in chv3_dma_prepare() 221 chv3_i2s_wr(i2s, I2S_TX_IRQ, ((period_bytes / i2s->tx_bytes_to_fetch) << 8) | 1); in chv3_dma_prepare()
|
| /linux/sound/soc/fsl/ |
| H A 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() 127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger() 279 count = s->period_current * s->period_bytes; in psc_dma_pointer()
|
| H A D | mpc5200_dma.h | 31 int period_bytes; member
|
| /linux/include/sound/ |
| H A D | pcm_oss.h | 35 size_t period_bytes; /* requested period size */ member
|
| /linux/sound/x86/ |
| H A D | intel_hdmi_audio.h | 124 unsigned int period_bytes; /* PCM period size in bytes */ member
|
| H A D | intel_hdmi_audio.c | 869 int ofs = intelhaddata->pcmbuf_filled * intelhaddata->period_bytes; in had_prog_bd() 877 intelhaddata->period_bytes); in had_prog_bd() 905 intelhaddata->period_bytes = in had_init_ringbuf() 907 WARN_ON(intelhaddata->period_bytes & 0x3f); in had_init_ringbuf() 952 if (len < 0 || len > intelhaddata->period_bytes) { in had_process_ringbuf() 967 len = intelhaddata->period_bytes - len; in had_process_ringbuf() 968 len += intelhaddata->period_bytes * intelhaddata->pcmbuf_head; in had_process_ringbuf()
|
| /linux/sound/drivers/ |
| H A D | pcmtest.c | 107 size_t period_bytes; // bytes in a one period member 363 if (v_iter->period_pos >= v_iter->period_bytes) { in timer_timeout() 364 v_iter->period_pos %= v_iter->period_bytes; in timer_timeout() 479 v_iter->period_bytes = snd_pcm_lib_period_bytes(substream); in snd_pcmtst_pcm_prepare()
|
| /linux/sound/soc/amd/acp/ |
| H A D | acp-i2s.c | 393 u32 val, period_bytes, reg_val, ier_val, water_val, buf_size, buf_reg; in acp_i2s_trigger() local 395 period_bytes = frames_to_bytes(substream->runtime, substream->runtime->period_size); in acp_i2s_trigger() 453 writel(period_bytes, chip->base + water_val); in acp_i2s_trigger()
|
| H A D | acp-legacy-common.c | 153 u32 physical_addr, pdm_size, period_bytes; in set_acp_pdm_ring_buffer() local 155 period_bytes = frames_to_bytes(runtime, runtime->period_size); in set_acp_pdm_ring_buffer() 162 writel(period_bytes, chip->base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in set_acp_pdm_ring_buffer()
|