ALSA: compress: Document stream states and fix gapless SM
Status from this message: Applied to for-next branch now. Thanks.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest3 patches 5 repliesApplied
- v43 patches 4 repliesSuperseded
- v33 patches 3 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 3 patches | 4 replies | Superseded | |
| v1 | 3 patches | 8 replies | Superseded |
Changes in v5 from the cover letter
- Update SM diagram as suggested by Amadeusz
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ALSA: compress: document the compress audio state machineDocumentation/ | +51 | 1 reply | |
| 2/3 | ALSA: compress: document the compress gapless audio state machineDocumentation/ | +32 | 1 reply | |
| 3/3 | ALSA: compress: fix partial_drain completion stateinclude/ sound/ | +13 | 3 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Srinivas Kandagatla | Charles Keepax |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | ||
| 3/3 | R-b T-b | T-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/3] ALSA: compress: Document stream states and fix gapless SM
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.
Changes in v5:
- Update SM diagram as suggested by Amadeusz
Changes in v4:
- Add review tag by Charles
- fix the lock deadlock pointed by Charles
Changes in v3:
- Add pause->stop->free transition
- Add setup->free transition
- remove running->free as that goes thru stop
Changes in v2:
- Added tested tag by Srini
- Update compress SM with Free state and compr_stop() transitions
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 | 83 +++++++++++++++++++ include/sound/compress_driver.h | 10 ++- sound/core/compress_offload.c | 4 + 3 files changed, 96 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.2