STRUCT SND_COMPR_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct snd_compr_params β€” compressed stream params πŸ’–

okay bestie, so this is struct snd_compr_params(9), straight out of the Kernel API Manual, and it's literally the little bundle that holds everything you need to describe a compressed stream. it's giving "one struct to rule them all" energy. πŸŽ€


✨ SYNOPSIS ✨

struct snd_compr_params {
    struct snd_compressed_buffer buffer;
    struct snd_codec codec;
    __u8 no_wake_mode;
 };

that's it, that's the whole vibe. three fields, no cap. πŸ‘‘


🌸 Members 🌸

  • buffer β€” the buffer description, aka the whole "where's my data at" situation 🫢
  • codec β€” the codec parameters, the actual personality of the stream πŸ’…
  • no_wake_mode β€” literally "dont wake on fragment elapsed" β€” set this and the system stays sleeping when a fragment elapses, periodt 😴
side note bestie: no_wake_mode is a __u8, so keep your values tidy, okay? πŸ’–

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/uapi/sound/compress_offload.h and the whole friend group, lowkey iconic:

  • struct snd_compressed_buffer(9)
  • struct snd_compr_tstamp(9)
  • struct snd_compr_tstamp64(9)
  • struct snd_compr_avail(9)
  • struct snd_compr_avail64(9)
  • struct snd_compr_caps(9)
  • struct snd_compr_codec_caps(9)
  • enum sndrv_compress_encoder(9)
  • struct snd_compr_metadata(9)
  • struct snd_compr_task(9)
  • enum snd_compr_state(9)
  • struct snd_compr_task_status(9)

and that's the page, bestie πŸ’œ it lives at ./include/uapi/sound and it's dated October 2026, so go forth and compress responsibly πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from