[PATCH v3 1/1] ALSA: compress: allow pause and resume during draining
Vinod Koul
vkoul at kernel.org
Fri Nov 27 04:59:26 CET 2020
On 26-11-20, 21:34, Gyeongtaek Lee wrote:
> 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().
I cant think of a better solution so:
Acked-By: Vinod Koul <vkoul at kernel.org>
--
~Vinod
More information about the Alsa-devel
mailing list