STRUCT SND_COMPR_PARAMS(9)
π 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_modeis 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms