Skip to content

ALSA: compress: clean up pointer errno handling and fix avail errors

Cássio Gabriel linux-sound lkml 1 version In review

Get series with b4
b4 am 20260414-alsa-compress-pointer-avail-errors-v1-0-f5a1a8b1dfba@gmail.com change-id 20260414-alsa-compress-pointer-avail-errors-d0b195cbac2d

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ALSA: compress: Use EOPNOTSUPP for missing pointer callbackssound/core/compress_offload.c+1 -10 replies
2/2ALSA: compress: Propagate real pointer errors in avail pathssound/core/compress_offload.c+37 -164 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ALSA: compress: clean up pointer errno handling and fix avail errors

This series tightens compressed-offload pointer error handling in two small steps.

Patch 1 switches the internal "pointer callback not implemented" case from ENOTSUPP to EOPNOTSUPP so the code uses the standard unsupported operation errno.

Patch 2 then propagates real pointer-refresh failures through the avail paths while keeping the unsupported-pointer fallback non-fatal. This prevents SNDRV_COMPRESS_AVAIL, read(), write(), and poll() from continuing with stale availability data after real pointer errors.

---
Cássio Gabriel (2):
ALSA: compress: Use EOPNOTSUPP for missing pointer callbacks
ALSA: compress: Propagate real pointer errors in avail paths

 sound/core/compress_offload.c | 55 ++++++++++++++++++++++++++++++-------------
 1 file changed, 38 insertions(+), 17 deletions(-)

---
base-commit: 05b02f0ccc12a85c6b65cf9cc543151b160c7f49
change-id: 20260414-alsa-compress-pointer-avail-errors-d0b195cbac2d

Best regards,

Signature · 1 line
Cássio Gabriel <[email protected]>