From: Takashi Iwai Date: Fri, 23 Nov 2012 15:00:37 +0000 (+0100) Subject: ALSA: usb-audio: fix delay account during pause X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~39^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48779a0b8ffc45f7f2b519ef462a72b1c5208d09;p=pandora-kernel.git 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 --- Reading git-diff-tree failed