add rewind-safeguard parameter
authorPierre-Louis Bossart <pierre-louis.bossart@intel.com>
Thu, 29 Apr 2010 15:48:11 +0000 (10:48 -0500)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 May 2010 23:38:25 +0000 (01:38 +0200)
commit4df443bbe682055a41e7c2248877dcc7682a69b8
treee1c687b48d24f4c03fe7f43c1e4072fb70df9188
parentf081c152f3d5f6a70edc6b7369445229b4f6a1b8
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.
src/modules/alsa/alsa-sink.c
src/modules/alsa/module-alsa-sink.c