STRUCT SND_COMPR_CAPS(9)
π STRUCT SND_COMPR_CAPS(9) π
okay bestie so you're looking at the Kernel API Manual and today's main character is struct snd_compr_caps β literally the caps descriptor, no cap π§’β¨
πΈ NAME πΈ
struct snd_compr_caps β the caps descriptor. that's it, that's the vibe π
β¨ SYNOPSIS β¨
struct snd_compr_caps {
__u32 num_codecs;
__u32 direction;
__u32 min_fragment_size;
__u32 max_fragment_size;
__u32 min_fragments;
__u32 max_fragments;
__u32 codecs[MAX_NUM_CODECS];
__u32 reserved[11];
};
copy it exactly pls, we do NOT freestyle struct definitions in this house π
π MEMBERS π
num_codecsβ how many codecs are supported, like the actual headcount πdirectionβ which direction is supported. it's of typesnd_compr_direction, iykyk π¦min_fragment_sizeβ the minimum fragment supported by the DSP, the little guy πmax_fragment_sizeβ the maximum fragment supported by the DSP, the big guy π₯min_fragmentsβ min fragments supported by the DSP, lowkey the floor βmax_fragmentsβ max fragments supported by the DSP, highkey the ceiling πcodecsβ pointer to an array of codecs. she's pointing at the lineup πreservedβ reserved field. leave her alone, she's reserved for a reason π
π«Ά SEE ALSO π«Ά
kernel file ./include/uapi/sound/compress_offload.h, plus the whole friend group β go say hi to all of them:
struct snd_compressed_buffer(9)struct snd_compr_params(9)struct snd_compr_tstamp(9)struct snd_compr_tstamp64(9)struct snd_compr_avail(9)struct snd_compr_avail64(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)
ngl this page lives at ./include/uapi/sound and it's dated October 2026 β future icon behaviour fr fr πβ¨
and that's the whole page bestie, mwah π go read the source, periodt π π
π¦ 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