linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ALSA: compress: Document stream states and fix gaplless SM
@ 2020-06-19  4:54 Vinod Koul
  2020-06-19  4:54 ` [PATCH 1/3] ALSA: compress: document the compress audio state machine Vinod Koul
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Vinod Koul @ 2020-06-19  4:54 UTC (permalink / raw)
  To: Takashi Iwai, Jaroslav Kysela
  Cc: Vinod Koul, Pierre-Louis Bossart, Charles Keepax, alsa-devel,
	linux-kernel

Srini found issue with gapless implementation which prompted to look deeper
into SM for compressed stream.

So documenting SM was first step, so first two patches add that. Last patch
fixes the issue by keeping track on partial_drain and then moving state to
'running' in snd_compr_drain_notify() for partial_drain case on success.
While at it, noticed snd_compr_drain_notify() is lockless state change, so
fixed that as well.

I have tested this on Dragon board RB3, compressed audio works out of the
box on that platform and Srini will send driver and fcplay patches for
gapless soon.

Vinod Koul (3):
  ALSA: compress: document the compress audio state machine
  ALSA: compress: document the compress gapless audio state machine
  ALSA: compress: fix partial_drain completion state

 .../sound/designs/compress-offload.rst        | 84 +++++++++++++++++++
 include/sound/compress_driver.h               | 12 ++-
 sound/core/compress_offload.c                 |  4 +
 3 files changed, 99 insertions(+), 1 deletion(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-06-22 13:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-19  4:54 [PATCH 0/3] ALSA: compress: Document stream states and fix gaplless SM Vinod Koul
2020-06-19  4:54 ` [PATCH 1/3] ALSA: compress: document the compress audio state machine Vinod Koul
2020-06-19  9:29   ` Srinivas Kandagatla
2020-06-19 14:22   ` Pierre-Louis Bossart
2020-06-22  5:33     ` Vinod Koul
2020-06-19  4:54 ` [PATCH 2/3] ALSA: compress: document the compress gapless " Vinod Koul
2020-06-19 14:27   ` Pierre-Louis Bossart
2020-06-22  5:34     ` Vinod Koul
2020-06-22 13:22       ` Pierre-Louis Bossart
2020-06-19  4:54 ` [PATCH 3/3] ALSA: compress: fix partial_drain completion state Vinod Koul
2020-06-19  9:13   ` Srinivas Kandagatla
2020-06-22  5:35     ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).