diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-23 16:00:37 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-23 16:07:11 +0100 |
commit | 48779a0b8ffc45f7f2b519ef462a72b1c5208d09 (patch) | |
tree | 4ba2b63bfe9d922a6fd6d5c6d9558f4fd2f28981 /include/uapi/sound | |
parent | 3f94fad09538ec988919ec3f371841182df71d04 (diff) | |
download | blackbird-op-linux-48779a0b8ffc45f7f2b519ef462a72b1c5208d09.tar.gz blackbird-op-linux-48779a0b8ffc45f7f2b519ef462a72b1c5208d09.zip |
ALSA: usb-audio: fix delay account during pause
When a playback stream is paused, the stream isn't actually stopped,
thus we still need to take care of the in-flight data amount for the
delay calculation. Otherwise the value of subs->last_delay is no
longer reliable and can give a bogus value after resuming from pause.
This will result in "delay: estimated XX, actual YY" error messages.
Also, during pause after all in flight data are processed
(i.e. last_delay = 0), we don't have to calculate the actual delay
from the current frame. Give a short path in such a case.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/uapi/sound')
0 files changed, 0 insertions, 0 deletions