Home
last modified time | relevance | path

Searched refs:period_bytes (Results 1 - 25 of 132) sorted by relevance

123456

/kernel/linux/linux-5.10/sound/soc/sh/
H A Dsiu_pcm.c26 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \
27 ((buf_bytes) / (period_bytes))
28 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \
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-6.6/sound/soc/sh/
H A Dsiu_pcm.c26 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \
27 ((buf_bytes) / (period_bytes))
28 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \
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_work()
224 count = siu_stream->period_bytes; in siu_io_work()
232 siu_stream->period_bytes), in siu_io_work()
233 siu_stream->period_bytes); in siu_io_work()
[all...]
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Drt5514-spi.c79 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 in rt5514_spi_copy_work()
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Drt5514-spi.c78 size_t period_bytes, truncated_bytes = 0; in rt5514_spi_copy_work() local
89 period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream); in rt5514_spi_copy_work()
90 if (!period_bytes) { in rt5514_spi_copy_work()
95 if (rt5514_dsp->buf_size % period_bytes) in rt5514_spi_copy_work()
96 rt5514_dsp->buf_size = (rt5514_dsp->buf_size / period_bytes) * in rt5514_spi_copy_work()
97 period_bytes; in rt5514_spi_copy_work()
112 if (remain_data < period_bytes) { in rt5514_spi_copy_work()
118 if (rt5514_dsp->buf_rp + period_bytes <= rt5514_dsp->buf_limit) { in rt5514_spi_copy_work()
121 period_bytes); in rt5514_spi_copy_work()
123 if (rt5514_dsp->buf_rp + period_bytes in rt5514_spi_copy_work()
[all...]
/kernel/linux/linux-6.6/sound/hda/
H A Dhdac_stream.c334 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup()
498 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
515 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods()
516 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods()
532 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
548 &bdl, ofs, period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods()
551 &bdl, ofs, period_bytes, in snd_hdac_stream_setup_periods()
560 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods()
578 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
[all...]
/kernel/linux/linux-5.10/sound/hda/
H A Dhdac_stream.c343 azx_dev->period_bytes = 0; in snd_hdac_stream_cleanup()
492 int i, ofs, periods, period_bytes; in snd_hdac_stream_setup_periods() local
500 period_bytes = azx_dev->period_bytes; in snd_hdac_stream_setup_periods()
501 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods()
520 if (pos_adj >= period_bytes) { in snd_hdac_stream_setup_periods()
538 period_bytes - pos_adj, 0); in snd_hdac_stream_setup_periods()
542 period_bytes, in snd_hdac_stream_setup_periods()
551 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods()
568 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local
[all...]
/kernel/linux/linux-5.10/sound/soc/au1x/
H A Ddbdma2.c53 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()
H A Ddma.c64 unsigned int period_bytes, in au1000_setup_dma_link()
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()
63 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, unsigned int periods) au1000_setup_dma_link() argument
/kernel/linux/linux-6.6/sound/soc/au1x/
H A Ddbdma2.c53 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()
H A Ddma.c64 unsigned int period_bytes, in au1000_setup_dma_link()
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()
63 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, unsigned int periods) au1000_setup_dma_link() argument
/kernel/linux/linux-6.6/sound/soc/bcm/
H A Dcygnus-ssp.h31 unsigned period_bytes; member
41 .period_bytes = 0, \
51 .period_bytes = 0, \
/kernel/linux/linux-5.10/sound/pci/lola/
H A Dlola_pcm.c283 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 in lola_pcm_prepare()
[all...]
/kernel/linux/linux-5.10/sound/pci/
H A Dals300.c417 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 in snd_als300_pointer()
[all...]
/kernel/linux/linux-6.6/sound/pci/lola/
H A Dlola_pcm.c283 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 in lola_pcm_prepare()
[all...]
/kernel/linux/linux-6.6/sound/pci/
H A Dals300.c402 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local
410 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
414 tmp |= period_bytes - 1; in snd_als300_playback_prepare()
431 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local
438 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare()
443 tmp |= period_bytes - 1; in snd_als300_capture_prepare()
504 unsigned short period_bytes; in snd_als300_pointer() local
507 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer()
513 if (current_ptr > period_bytes) in snd_als300_pointer()
516 current_ptr = period_bytes in snd_als300_pointer()
[all...]
/kernel/linux/linux-5.10/sound/pci/cs5535audio/
H A Dcs5535audio_pcm.c109 unsigned int period_bytes) in cs5535audio_build_dma_packets()
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()
105 cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) cs5535audio_build_dma_packets() argument
/kernel/linux/linux-6.6/sound/pci/cs5535audio/
H A Dcs5535audio_pcm.c110 unsigned int period_bytes) in cs5535audio_build_dma_packets()
125 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
128 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()
140 addr += period_bytes; in cs5535audio_build_dma_packets()
151 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
106 cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, struct cs5535audio_dma *dma, struct snd_pcm_substream *substream, unsigned int periods, unsigned int period_bytes) cs5535audio_build_dma_packets() argument
/kernel/linux/linux-5.10/sound/soc/bcm/
H A Dcygnus-ssp.h41 unsigned period_bytes; member
51 .period_bytes = 0, \
61 .period_bytes = 0, \
/kernel/linux/linux-5.10/sound/drivers/pcsp/
H A Dpcsp_lib.c91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
100 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
108 printk(KERN_INFO "PCSP: buffer_bytes mod period_bytes != 0 ? " 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-6.6/sound/drivers/pcsp/
H A Dpcsp_lib.c91 size_t period_bytes, buffer_bytes; in pcsp_pointer_update() local
100 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_pointer_update()
108 printk(KERN_INFO "PCSP: buffer_bytes mod period_bytes != 0 ? " 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-6.6/sound/virtio/
H A Dvirtio_pcm_ops.c145 * @period_bytes: Size of the hardware period.
155 unsigned int period_bytes, in virtsnd_pcm_dev_set_params()
190 request->period_bytes = cpu_to_le32(period_bytes); in virtsnd_pcm_dev_set_params()
289 unsigned int period_bytes = snd_pcm_lib_period_bytes(substream); in virtsnd_pcm_prepare() local
292 rc = virtsnd_pcm_dev_set_params(vss, buffer_bytes, period_bytes, in virtsnd_pcm_prepare()
153 virtsnd_pcm_dev_set_params(struct virtio_pcm_substream *vss, unsigned int buffer_bytes, unsigned int period_bytes, unsigned int channels, snd_pcm_format_t format, unsigned int rate) virtsnd_pcm_dev_set_params() argument
H A Dvirtio_pcm_msg.c124 * @period_bytes: Current period size in bytes.
127 * @period_bytes), and creates @periods corresponding I/O messages.
133 unsigned int periods, unsigned int period_bytes) in virtsnd_pcm_msg_alloc()
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()
158 msg->length = period_bytes; in virtsnd_pcm_msg_alloc()
160 period_bytes); in virtsnd_pcm_msg_alloc()
132 virtsnd_pcm_msg_alloc(struct virtio_pcm_substream *vss, unsigned int periods, unsigned int period_bytes) virtsnd_pcm_msg_alloc() argument
/kernel/linux/linux-6.6/sound/soc/amd/acp/
H A Dacp-pdm.c34 u32 physical_addr, size_dmic, period_bytes; in acp_dmic_prepare() local
43 period_bytes = frames_to_bytes(substream->runtime, in acp_dmic_prepare()
53 writel(period_bytes, adata->acp_base + ACP_WOV_RX_INTR_WATERMARK_SIZE); in acp_dmic_prepare()
/kernel/linux/linux-5.10/sound/soc/amd/renoir/
H A Dacp3x-pdm-dma.c244 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/txx9/
H A Dtxx9aclc.c64 "periods %d period_bytes %d stream %d\n", in txx9aclc_pcm_hw_params()
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()

Completed in 17 milliseconds

123456