]> git.alsa-project.org Git - alsa-lib.git/commit
pcm_rate: Do not discard slave reported delay in status result.
authorAlan Young <consult.awy@gmail.com>
Tue, 14 Jun 2016 09:15:01 +0000 (10:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Dec 2016 14:28:24 +0000 (15:28 +0100)
commite1e211208ab95f374a580c3c2649a1384b65065b
tree8a4febf7a0c082b73fe47c4f92e1f30ea0976645
parent5a2bddfc79912d7537a3a43e28481bfefa9db88e
pcm_rate: Do not discard slave reported delay in status result.

snd_pcm_rate_status() gets the underlying status from the slave PCM.
This may contain a delay value that includes elements such as codec and
other transfer delays. Use this as the base for the returned delay
value, adjusted for any frames buffered locally (within the rate
plugin).

Also update snd_pcm_rate_delay() similarly.

[fixed some comments by tiwai]

Signed-off-by: Alan Young <consult.awy@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_rate.c