snd_compr_stop_error(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_compr_stop_error(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this little page is all about snd_compr_stop_error β€” the function you call when a stream has fully Given Up and you need to break the news to it 🫢


🌸 NAME 🌸

snd_compr_stop_error β€” report a fatal error on a stream πŸ˜­πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_compr_stop_error (struct snd_compr_stream *stream ,
snd_pcm_state_t state );

πŸŽ€ ARGUMENTS πŸŽ€

  • stream β€” pointer to the stream, bestie. that's the stream we're about to ✨handle✨
  • state β€” the state we want to transition the stream into. yes, you get to pick where it lands πŸ‘‘

🌈 DESCRIPTION 🌈

So what it does is: it stops the stream and sets its state. that's the whole vibe. iconic, lowkey, does exactly what it says on the tin πŸ’…

⚠️ fr fr important: this should be called with the compressed device lock held. no cap, don't skip that part πŸ™ˆ

⭐ RETURN ⭐

Returns zero if it slayed (successful ✨), or a negative error code if it did not πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./sound/core/compress_offload.c, plus these besties:


and that's the whole page!! mwah πŸ’œ this little gem lives in ./sound/core and the version we're looking at is dated October 2026, filed under snd_compr_stop_error(9). go forth and stop those error-y streams, bestie πŸ§šπŸŽ€

πŸ“¦ where this page comes from