sdca_asoc_hw_params(9)
π 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'sdev's fault"regmapβ pointer to the Function register map π the lookup table of register goodnessfunctionβ pointer to the Function information π§ all the deets about what this Function even issubstreamβ pointer to the PCM substream π the actual audio stream we're doing this forparamsβ pointer to the hardware parameters βοΈ the channels / sample rate / bit depth situationdaiβ 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 π
- Kernel file
./sound/soc/sdca/sdca_asoc.cπ sdca_asoc_count_component(9)sdca_asoc_pde_poll_actual_ps(9)sdca_asoc_populate_dapm(9)sdca_asoc_populate_controls(9)sdca_asoc_populate_dais(9)sdca_asoc_populate_component(9)sdca_asoc_set_constraints(9)sdca_asoc_free_constraints(9)sdca_asoc_get_port(9)
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
- 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