alsa-lib/src/pcm
Timo Wischer 543a9eac5d pcm: ioplug: Use boundary for wrap around
if requested by the IO plugin

Without this changes an IO plugin is not able to report
that buffer_size frames were read from the buffer.
When the buffer was full this is a valid action and
has not to be handled as an under run.

For example when the hw_ptr will be updated with
hw_ptr += buffer_size
and it is using the buffer_size as wrap around
hw_ptr %= buffer_size
would result in the same value as before the add operation.

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-02-24 11:41:22 +01:00
..
scopes Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
interval.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
interval.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
interval_inline.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
ladspa.h big ALSA LADSPA plugin rewrite for multiple channel LADSPA plugins 2005-12-13 14:08:58 +00:00
Makefile.am pcm: Remove home brew atomic operations 2016-07-11 15:25:30 +02:00
mask.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
mask.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
mask_inline.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm.c pcm: another fix for the snd_pcm_area_silence() fast path 2018-02-05 15:03:44 +01:00
pcm_adpcm.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_alaw.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_asym.c Set PCM name properly in empty and asym plugins 2007-11-26 12:29:37 +01:00
pcm_copy.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_direct.c timer: Proper reference of internal versioned symbols 2018-01-04 15:29:22 +01:00
pcm_direct.h timer: Proper reference of internal versioned symbols 2018-01-04 15:29:22 +01:00
pcm_dmix.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_dmix_generic.c Introduce bswap.h for portable definitions of byte swap macros. 2016-03-03 16:18:10 +01:00
pcm_dmix_i386.c pcm: dmix: Allow disabling x86 optimizations 2017-02-10 12:16:12 +01:00
pcm_dmix_i386.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_dmix_x86_64.c pcm: dmix: Allow disabling x86 optimizations 2017-02-10 12:16:12 +01:00
pcm_dmix_x86_64.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_dshare.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_dsnoop.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_empty.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_ext_parm.h Make local functions really local 2007-11-30 18:26:13 +01:00
pcm_extplug.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_file.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_generic.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_generic.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_hooks.c core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
pcm_hw.c timer: Proper reference of internal versioned symbols 2018-01-04 15:29:22 +01:00
pcm_iec958.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_ioplug.c pcm: ioplug: Use boundary for wrap around 2018-02-24 11:41:22 +01:00
pcm_ladspa.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_lfloat.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_linear.c pcm: linear, route: handle linear formats with 20-bit sample on 4 bytes 2017-12-18 15:41:08 +01:00
pcm_local.h pcm: add and describe SND_PCM_FORMAT_{S, U}20 2017-12-18 15:40:36 +01:00
pcm_meter.c core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
pcm_misc.c pcm: add and describe SND_PCM_FORMAT_{S, U}20 2017-12-18 15:40:36 +01:00
pcm_mmap.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_mmap_emul.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_mulaw.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_multi.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_null.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_params.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_plug.c pcm: plug: add SND_PCM_FORMAT_{S, U}20 to linear_preferred_formats 2017-12-18 15:41:29 +01:00
pcm_plugin.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_plugin.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_rate.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_rate_linear.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_route.c pcm: linear, route: handle linear formats with 20-bit sample on 4 bytes 2017-12-18 15:41:08 +01:00
pcm_share.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_shm.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_simple.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_softvol.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_symbols.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
plugin_ops.h pcm: fix wrong comments for some cases of linear interpolation of PCM samples 2017-12-22 10:23:42 +01:00