summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa/module-alsa-sink.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@intel.com>2010-04-29 10:48:11 -0500
committerColin Guthrie <cguthrie@mandriva.org>2010-09-04 11:41:18 +0100
commit514fd1eee848c3a81298fa34422df3a98027b322 (patch)
tree0a4238db1b790f64d4edd797dc1960a7aa731eb6 /src/modules/alsa/module-alsa-sink.c
parente2ef3a1391956bddefdce8716f28776190122ae3 (diff)
add rewind-safeguard parameter
Rewinding the ring buffer completely causes audible issues with DMAs. Previous solution didn't work with tsched=0, and used tsched_watermark for guardband, which isn't linked to hardware and could become really high if underflows occurred. Added separate parameter that can be tuned to hardware limitations and size of DMA bursts.
Diffstat (limited to 'src/modules/alsa/module-alsa-sink.c')
-rw-r--r--src/modules/alsa/module-alsa-sink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/alsa/module-alsa-sink.c b/src/modules/alsa/module-alsa-sink.c
index 3aa89b2a..a73274fd 100644
--- a/src/modules/alsa/module-alsa-sink.c
+++ b/src/modules/alsa/module-alsa-sink.c
@@ -54,7 +54,8 @@ PA_MODULE_USAGE(
"tsched_buffer_size=<buffer size when using timer based scheduling> "
"tsched_buffer_watermark=<lower fill watermark> "
"ignore_dB=<ignore dB information from the device?> "
- "control=<name of mixer control>");
+ "control=<name of mixer control>"
+ "rewind_safeguard=<number of bytes that cannot be rewound");
static const char* const valid_modargs[] = {
"name",
@@ -74,6 +75,7 @@ static const char* const valid_modargs[] = {
"tsched_buffer_watermark",
"ignore_dB",
"control",
+ "rewind_safeguard",
NULL
};