loopback: Fix sink latency calculation if source is alsa source with fixed latency 68/262768/3 accepted/tizen/unified/20210903.083034 submit/tizen/20210902.050429
authorGeorg Chini <georg@chini.tk>
Mon, 4 Jan 2021 20:08:05 +0000 (21:08 +0100)
committerjungsup lee <jungsup4.lee@samsung.com>
Thu, 19 Aug 2021 09:05:38 +0000 (18:05 +0900)
commitb5f939e2b3ba5c903d364b5f5bd4c75f4f6f4f8e
tree517992b95661f4bf271b0c6fba98d8f0040d1b42
parentbedd4c9c0c50984dcd07c82bcd9ca71b77815d0b
loopback: Fix sink latency calculation if source is alsa source with fixed latency

When an alsa source with fixed latency is used, the actual latency of the source
will only be one fragment size. This is not taken into account when the required
sink latency is calculated.

This patch fixes the issue.

[jungsup4.lee: backport mainline commit 0efae0]

[Version] 13.0-33
[Issue Type] Bug fix

Change-Id: If8b7aa3735c1a2456fa50f55b267180fa2efd1a1
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/451>
packaging/pulseaudio.spec
src/modules/module-loopback.c