Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7712060 authored by Soumya Managoli's avatar Soumya Managoli Committed by Surapusetty Naresh Babu
Browse files

ALSA: compress: Allow pause and resume during draining



With a stream with low bitrate, user can't pause or resume the stream
near the end of the stream because current ALSA doesn't allow it.
If the stream has very low bitrate enough to store whole stream into
the buffer, user can't do anything except stop the stream and then
restart it from the first because most of applications call draining
after sending last frame to the kernel.
If pause, resume are allowed during draining, user experience can be
enhanced.
To prevent malfunction in HW drivers which don't support pause
during draining, pause during draining will only work if HW driver
enable this feature explicitly by calling
snd_compr_use_pause_in_draining().

Signed-off-by: default avatarGyeongtaek Lee <gt82.lee@samsung.com>
Acked-by: default avatarVinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/000101d6c3f0$89b312b0$9d193810$@samsung.com


Change-Id: I480caca000544c4033cdf2d445598e31754d8e5e
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Git-commit: 9be9f2d3d073ef42127475f4fb6a392ab133f629
Git-repo: https://android.googlesource.com/kernel/common/


[quic_c_smanag@quicinc.com: resolve trivial merge conflicts]
Signed-off-by: default avatarSoumya Managoli <quic_c_smanag@quicinc.com>
parent e2a430df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment