pulseaudio/src/modules/alsa
Arun Raghavan c82e4913e8 alsa: Avoid creating tiny memchunks on write iterations
If the ALSA device supports granular pointer reporting, we end up in a
situation where we write out a bunch of data, iterate, and then find a
small amount of data available in the buffer (consumed while we were
writing data into the available buffer space). We do this 10 times
before quitting the write loop.

This is inefficient in itself, but can also have wider consequences. For
example, with module-combine-sink, this will end up pushing the same
small chunks to all other devices too.

Given both of these, it just makes sense to not try to write out data
unless a minimum threshold is available. This could potentially be a
fragment, but it's likely most robust to just work with a fraction of
the total available buffer size.
2017-03-09 22:17:48 +05:30
..
mixer alsa-mixer: Support for Creative SoundBlaster Omni Surround 5.1 USB sound card with latest firmware 2016-04-19 16:44:41 +03:00
alsa-mixer.c alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-mixer.h alsa-mixer: Fill in input and output names 2015-11-22 04:59:21 +02:00
alsa-sink.c alsa: Avoid creating tiny memchunks on write iterations 2017-03-09 22:17:48 +05:30
alsa-sink.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-source.c don't assume that pa_asyncq_new() always succeeds 2016-12-20 01:19:06 +02:00
alsa-source.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
alsa-ucm.c alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-ucm.h alsa: Use pa_device_port->impl_free() for freeing port data 2016-06-22 21:04:47 +05:30
alsa-util.c alsa-util: don't crash on devices with more than 32 channels 2017-01-31 15:59:14 +02:00
alsa-util.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
module-alsa-card.c alsa: Check pa_modargs_get_value_boolean() retval for use_ucm 2016-08-15 23:53:32 +02:00
module-alsa-sink.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
module-alsa-source.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00