alsa: work around slightly broken _delay implementations
commitf29acfd0e0413a9bd126782763ee2dcf10357546
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 8 Sep 2010 11:26:39 +0000 (8 13:26 +0200)
committerColin Guthrie <cguthrie@mandriva.org>
Thu, 9 Sep 2010 16:03:34 +0000 (9 17:03 +0100)
tree29bb37d84c49b4f27684f37d39f3d9df0c48f17e
parentb0042cec71ffb09d3720fdcc4223de8153fed67a
alsa: work around slightly broken _delay implementations

Use snd_pcm_avail_delay() in pa_alsa_safe_delay() so that we can check the delay
value against the avail value and patch it up when it looks invalid. Only do
this for capture.
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/alsa/alsa-util.c
src/modules/alsa/alsa-util.h