OSDN Git Service

pcm_dshare: Do not discard slave reported delay in status result.
authorAlan Young <consult.awy@gmail.com>
Wed, 2 Nov 2016 17:40:32 +0000 (17:40 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Nov 2016 15:19:32 +0000 (16:19 +0100)
commitfaf53c197cabeb1eb0fd1f66cd001d1469ebac09
tree4effe8ab7101135e6420d09111bcb3aa38c719f3
parenta668a94238dc67b19ae187b52a161e027d79ee5d
pcm_dshare: Do not discard slave reported delay in status result.

snd_pcm_dshare_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 dshare
plugin).

Note: snd_pcm_dshare_delay() is not updated.

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