snd_ac97_pcm...e_rate_rules(9)
π snd_ac97_pcm_double_rate_rules(9) π
okay bestie, welcome to the Kernel API Manual β yes, the actual kernel API manual, we're in the deep end now and honestly? you're gonna slay it π«Ά
This one's snd_ac97_pcm_double_rate_rules β the function that sets up the double rate constraints. Say that five times fast, iykyk π
β¨ NAME β¨
snd_ac97_pcm_double_rate_rules β set double rate constraints π
πΈ SYNOPSIS πΈ
int snd_ac97_pcm_double_rate_rules (struct snd_pcm_runtime *runtime );
literally the whole signature, no cap. it takes one pointer and hands you back an int π
π¦ ARGUMENTS π¦
runtimeβ the runtime of the ac97 front playback pcm β¨ (that's the one you're passing in, bestie β the runtime struct for the AC97 front playback PCM)
π DESCRIPTION π
so here's the vibe check: this function installs the hardware constraint rules π
and what are those rules for?? they exist to prevent using double rates and more than two channels at the same time. that's it, that's the whole job. the constraint rules go in, and the hardware politely refuses to do the chaotic combo π
it's giving bouncer at the club door, honestly β double rates? cool. more than two channels? cool. both at once?? not today π
β RETURN β
- Zero if successful π
- or a negative error code on failure π
that's the classic kernel one-two, you already knew that π
π SEE ALSO π
- Kernel file
./sound/pci/ac97/ac97_pcm.c snd_ac97_set_rate(9)snd_ac97_pcm_assign(9)snd_ac97_pcm_open(9)snd_ac97_pcm_close(9)
go read those next, bestie, they're all in the same little AC97 friend group π§ββοΈ
and that's a wrap!! mwah π this page lives in ./sound/pci/ac97, dropped October 2026, straight from the Kernel API Manual β see you in the next one, love u, 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