Home
last modified time | relevance | path

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

/sound/soc/au1x/
Ddbdma2.c58 unsigned long period_bytes; /* size in bytes of one SG segment */ member
99 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_tx()
103 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_tx()
114 cd->period_bytes, DDMA_FLAGS_IE); in au1x_pcm_queue_rx()
118 cd->dma_area += cd->period_bytes; in au1x_pcm_queue_rx()
129 cd->pos += cd->period_bytes; in au1x_pcm_dmatx_cb()
142 cd->pos += cd->period_bytes; in au1x_pcm_dmarx_cb()
234 pcd->period_bytes = params_period_bytes(params); in au1xpsc_pcm_hw_params()
/sound/pci/cs5535audio/
Dcs5535audio_pcm.c123 unsigned int period_bytes) in cs5535audio_build_dma_packets() argument
138 dma->period_bytes = dma->periods = 0; in cs5535audio_build_dma_packets()
141 if (dma->periods == periods && dma->period_bytes == period_bytes) in cs5535audio_build_dma_packets()
152 desc->size = cpu_to_le32(period_bytes); in cs5535audio_build_dma_packets()
155 addr += period_bytes; in cs5535audio_build_dma_packets()
166 dma->period_bytes = period_bytes; in cs5535audio_build_dma_packets()
Dcs5535audio.h79 unsigned int period_bytes, periods; member
/sound/pci/
Dals300.c462 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_playback_prepare() local
471 period_bytes, buffer_bytes); in snd_als300_playback_prepare()
475 tmp |= period_bytes - 1; in snd_als300_playback_prepare()
493 unsigned short period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_capture_prepare() local
501 snd_als300_dbgplay("Period bytes: %d Buffer bytes %d\n", period_bytes, in snd_als300_capture_prepare()
506 tmp |= period_bytes - 1; in snd_als300_capture_prepare()
570 unsigned short period_bytes; in snd_als300_pointer() local
573 period_bytes = snd_pcm_lib_period_bytes(substream); in snd_als300_pointer()
580 if (current_ptr > period_bytes) in snd_als300_pointer()
583 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
358 unsigned int period_bytes) in atiixp_build_dma_packets() argument
373 dma->period_bytes = dma->periods = 0; /* clear */ in atiixp_build_dma_packets()
376 if (dma->periods == periods && dma->period_bytes == period_bytes) in atiixp_build_dma_packets()
394 desc->size = period_bytes >> 2; /* in dwords */ in atiixp_build_dma_packets()
400 addr += period_bytes; in atiixp_build_dma_packets()
406 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()
Drme96.c929 size_t period_bytes) in snd_rme96_set_period_properties() argument
931 switch (period_bytes) { in snd_rme96_set_period_properties()
1130 static unsigned int period_bytes[] = { RME96_SMALL_BLOCK_SIZE, RME96_LARGE_BLOCK_SIZE }; variable
1133 .count = ARRAY_SIZE(period_bytes),
1134 .list = period_bytes,
Drme32.c826 static unsigned int period_bytes[] = { RME32_BLOCK_SIZE }; variable
830 .count = ARRAY_SIZE(period_bytes),
831 .list = period_bytes,
/sound/drivers/pcsp/
Dpcsp_lib.c96 size_t period_bytes, buffer_bytes; in pcsp_do_timer() local
110 period_bytes = snd_pcm_lib_period_bytes(substream); in pcsp_do_timer()
120 chip->playback_ptr, period_bytes, buffer_bytes); in pcsp_do_timer()
124 periods_elapsed /= period_bytes; in pcsp_do_timer()
130 chip->period_ptr += periods_elapsed * period_bytes; in pcsp_do_timer()
/sound/core/oss/
Dpcm_oss.c784 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size()
962 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params()
1033 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params()
1037 runtime->oss.period_bytes, in snd_pcm_oss_change_params()
1050 runtime->oss.buffer = vmalloc(runtime->oss.period_bytes); in snd_pcm_oss_change_params()
1353 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1()
1355 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1()
1356 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1()
1368 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1375 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
[all …]
/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c88 int period_bytes = frames_to_bytes(runtime, runtime->period_size); in bf5xx_pcm_prepare() local
94 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
98 runtime->periods, period_bytes); in bf5xx_pcm_prepare()
/sound/pci/hda/
Dhda_intel.c312 unsigned int period_bytes; /* size of the period in bytes */ member
1071 int i, ofs, periods, period_bytes; in azx_setup_periods() local
1078 period_bytes = snd_pcm_lib_period_bytes(substream); in azx_setup_periods()
1079 azx_dev->period_bytes = period_bytes; in azx_setup_periods()
1080 periods = azx_dev->bufsize / period_bytes; in azx_setup_periods()
1098 if (pos_adj >= period_bytes) { in azx_setup_periods()
1114 period_bytes - pos_adj, 0); in azx_setup_periods()
1117 period_bytes, 1); in azx_setup_periods()
1125 azx_dev->bufsize, period_bytes); in azx_setup_periods()
1598 mod_dma_pos %= azx_dev->period_bytes; in azx_via_get_position()
[all …]
/sound/soc/fsl/
Dmpc5200_psc_i2s.c71 int period_bytes; member
148 bd->status = s->period_bytes; in psc_i2s_bcom_enqueue_next_buffer()
153 s->period_next_pt += s->period_bytes; in psc_i2s_bcom_enqueue_next_buffer()
167 s->period_current_pt += s->period_bytes; in psc_i2s_bcom_irq()
297 s->period_bytes = frames_to_bytes(runtime, in psc_i2s_trigger()
301 (s->period_bytes * runtime->periods); in psc_i2s_trigger()
/sound/mips/
Dau1x00.c150 au1000_setup_dma_link(struct audio_stream *stream, unsigned int period_bytes, in au1000_setup_dma_link() argument
161 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
167 stream->period_size = period_bytes; in au1000_setup_dma_link()
175 pointer->start = (u32)(dma_start + (i * period_bytes)); in au1000_setup_dma_link()
176 pointer->relative_end = (u32) (((i+1) * period_bytes) - 0x1); in au1000_setup_dma_link()
/sound/pci/rme9652/
Dhdspm.c454 size_t period_bytes; member
751 hdspm->period_bytes = in hdspm_compute_period_size()
763 (hdspm->period_bytes / 4) : 0; in hdspm_hw_pointer()
773 position = ((position - 64) % (2 * hdspm->period_bytes)) / 4; in hdspm_hw_pointer()
795 int n = hdspm->period_bytes; in hdspm_silence_playback()
2982 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_madi()
2984 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_madi()
3006 x, (unsigned long) hdspm->period_bytes); in snd_hdspm_proc_read_madi()
3174 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_aes32()
3176 (2 * (int)hdspm->period_bytes), in snd_hdspm_proc_read_aes32()
[all …]
Drme9652.c222 size_t period_bytes; /* guess what this is */ member
369 rme9652->period_bytes = 1 << ((rme9652_decode_latency(i) + 8)); in rme9652_compute_period_size()
371 (rme9652->period_bytes * 2 - 1) & RME9652_buf_pos; in rme9652_compute_period_size()
379 snd_pcm_uframes_t period_size = rme9652->period_bytes / 4; in rme9652_hw_pointer()
1613 x, (unsigned long) rme9652->period_bytes); in snd_rme9652_proc_read()
2023 if (params_period_size(params) != rme9652->period_bytes / 4) { in snd_rme9652_hw_params()
Dhdsp.c458 size_t period_bytes; /* guess what this is */ member
956 hdsp->period_bytes = 1 << ((hdsp_decode_latency(hdsp->control_register) + 8)); in hdsp_compute_period_size()
966 return (position & HDSP_BufferID) ? (hdsp->period_bytes / 4) : 0; in hdsp_hw_pointer()
970 position &= (hdsp->period_bytes/2) - 1; in hdsp_hw_pointer()
3325 …fer Size (Latency): %d samples (2 periods of %lu bytes)\n", x, (unsigned long) hdsp->period_bytes); in snd_hdsp_proc_read()
3894 if (params_period_size(params) != hdsp->period_bytes / 4) { in snd_hdsp_hw_params()
/sound/pci/au88x0/
Dau88x0_core.c1104 dma->period_bytes = psize; in vortex_adbdma_setbuffers()
1202 dma->period_bytes * p)); in vortex_adbdma_bufshift()
1243 dma->period_bytes * p)); in vortex_adbdma_resetup()
1255 temp = (dma->period_virt * dma->period_bytes) + (temp & POS_MASK); in vortex_adbdma_getlinearpos()
1370 dma->period_bytes = psize; in vortex_wtdma_setbuffers()
1464 dma->period_bytes * p)); in vortex_wtdma_bufshift()
1505 temp = (temp & POS_MASK) + ((dma->period_virt) * (dma->period_bytes)); in vortex_wtdma_getlinearpos()
Dau88x0.h127 int period_bytes; member
/sound/drivers/vx/
Dvx_pcm.c929 pipe->period_bytes = frames_to_bytes(runtime, runtime->period_size); in vx_pcm_prepare()
1142 if (pipe->transferred >= pipe->period_bytes) { in vx_pcm_capture_update()
1143 pipe->transferred %= pipe->period_bytes; in vx_pcm_capture_update()
/sound/pci/riptide/
Driptide.c1113 unsigned int pos, period_bytes; in riptide_handleirq() local
1150 period_bytes = in riptide_handleirq()
1159 if (pos >= period_bytes) { in riptide_handleirq()
1161 while (pos >= period_bytes) in riptide_handleirq()
1162 pos -= period_bytes; in riptide_handleirq()
/sound/usb/
Dusbaudio.c157 unsigned int period_bytes; /* current period bytes (for hw_params callback) */ member
1034 static int init_substream_urbs(struct snd_usb_substream *subs, unsigned int period_bytes, in init_substream_urbs() argument
1090 total_packs = (period_bytes + minsize - 1) / minsize; in init_substream_urbs()
1477 subs->period_bytes != params_period_bytes(hw_params) || in snd_usb_hw_params()
1516 subs->period_bytes = 0; in snd_usb_hw_free()
/sound/core/
Dpcm.c388 snd_iprintf(buffer, "OSS period bytes: %lu\n", (unsigned long)runtime->oss.period_bytes); in snd_pcm_substream_proc_hw_params_read()