snd_ac97_pcm...e_rate_rules(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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