sdca_asoc_hw_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sdca_asoc_hw_params(9) β€” Kernel API Manual, but make it make sense

okay bestie, say hi to sdca_asoc_hw_params from the kernel API manual ✨ this one's short and sweet and honestly? it's giving "small but crucial" energy. let's get into it πŸŽ€


🌸 NAME 🌸

sdca_asoc_hw_params β€” sets the SDCA channels, the sample rate, and the bit depth 🎢 like it literally does the audio glow-up for your stream


✨ SYNOPSIS ✨

int sdca_asoc_hw_params (struct device *dev , struct regmap *regmap ,
struct sdca_function_data *function , struct snd_pcm_substream
*substream , struct snd_pcm_hw_params *params , struct snd_soc_dai *dai
);

six pointers in, one int out, that's the whole vibe fr fr 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” pointer to the device πŸ’» this one's the designated snitch, it gets used for error messages so when something goes wrong it can be like "bestie, it's dev's fault"
  • regmap β€” pointer to the Function register map πŸ“‹ the lookup table of register goodness
  • function β€” pointer to the Function information 🧚 all the deets about what this Function even is
  • substream β€” pointer to the PCM substream 🌊 the actual audio stream we're doing this for
  • params β€” pointer to the hardware parameters βš™οΈ the channels / sample rate / bit depth situation
  • dai β€” pointer to the ASoC DAI πŸŽ›οΈ the digital audio interface in question, iconic

πŸ’– DESCRIPTION πŸ’–

typically called from hw_params πŸ’… that's it. that's the description. no cap, it's a one-liner and we respect the brevity ✨

lowkey obsessed with how the whole DESCRIPTION section is just one sentence. main character energy without even trying πŸŽ€

πŸ”₯ RETURN πŸ”₯

returns zero on success πŸŽ‰ and a negative error code on failure 😭 so like, check it, please. don't just ignore the return value, that's not the vibe πŸ’€


🌈 SEE ALSO 🌈

that's a whole friend group right there 🫢 go read them too, iykyk πŸ‘‘


and that's the page!! πŸ§šβ€β™€οΈ this one lives in ./sound/soc/sdca and the version on the tin says October 2026 β€” so like, mark your calendar bestie, she's from the future β­πŸ’œ bye!! πŸ’…

πŸ“¦ where this page comes from