[PATCH v3 1/1] ALSA: compress: allow pause and resume during draining

Takashi Iwai tiwai at suse.de
Fri Nov 27 19:47:17 CET 2020


On Thu, 26 Nov 2020 13:34:52 +0100,
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().
> 
> Signed-off-by: Gyeongtaek Lee <gt82.lee at samsung.com>
> Cc: stable at vger.kernel.org

Now applied with Vinod's ack.
But I dropped Cc-to-stable because this is no real "fix", per se.
It's rather a feature extension.


thanks,

Takashi


More information about the Alsa-devel mailing list