public inbox for linux-sound@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ALSA: compress: clean up pointer errno handling and fix avail errors
@ 2026-04-14 16:47 Cássio Gabriel
  2026-04-14 16:47 ` [PATCH 1/2] ALSA: compress: Use EOPNOTSUPP for missing pointer callbacks Cássio Gabriel
  2026-04-14 16:47 ` [PATCH 2/2] ALSA: compress: Propagate real pointer errors in avail paths Cássio Gabriel
  0 siblings, 2 replies; 7+ messages in thread
From: Cássio Gabriel @ 2026-04-14 16:47 UTC (permalink / raw)
  To: Takashi Iwai, Vinod Koul, Mark Brown, Jaroslav Kysela
  Cc: linux-sound, linux-kernel, Cássio Gabriel

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.

Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
---
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,
--  
Cássio Gabriel <cassiogabrielcontato@gmail.com>


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

end of thread, other threads:[~2026-04-15 19:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 16:47 [PATCH 0/2] ALSA: compress: clean up pointer errno handling and fix avail errors Cássio Gabriel
2026-04-14 16:47 ` [PATCH 1/2] ALSA: compress: Use EOPNOTSUPP for missing pointer callbacks Cássio Gabriel
2026-04-14 16:47 ` [PATCH 2/2] ALSA: compress: Propagate real pointer errors in avail paths Cássio Gabriel
2026-04-14 16:53   ` Mark Brown
2026-04-14 17:45     ` Cássio Gabriel Monteiro Pires
2026-04-15 14:20       ` Takashi Iwai
2026-04-15 19:29         ` Cássio Gabriel Monteiro Pires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox