snd_pcm_hw_rule_noresample(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_pcm_hw_rule_noresample(9) β€” the Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual glow-up for snd_pcm_hw_rule_noresample(9). if you've ever been like "hmm, can the hardware just… not resample at this rate?" β€” this is literally the function for you. periodt. πŸŽ€


🌸 NAME 🌸

snd_pcm_hw_rule_noresample β€” it adds a rule so you can disable hw resampling. yep, that's the whole vibe. no cap. πŸ’–


✨ SYNOPSIS ✨

int snd_pcm_hw_rule_noresample (struct snd_pcm_runtime *runtime ,
       unsigned int base_rate );

it's giving "pass in the runtime, pass in the base rate, get an int back." iconic behavior, honestly. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • runtime β€” the PCM runtime instance, aka the main character of this whole operation πŸ‘‘
  • base_rate β€” the rate at which the hardware does not resample, fr fr. that's the number you're telling everyone to respect πŸ’…

πŸ’– RETURN πŸ’–

Zero if successful, or a negative error code on failure. that's it, that's the deal. zero = slay, negative = something went off and you should check it. 😭


🌈 SEE ALSO 🌈

like, there are so many related icons in this orbit, bestie. all of these, exactly:

bestie the reference list is long but we do NOT skip a single one. that's the rule. 🫢

🧚 sign-off 🧚

this little page lives under ./sound/core and it's dated October 2026 β€” remember that for the vibe check, iykyk. stay hydrated, read your intervals, and may all your resampling be exactly as disabled as you intended. πŸ’œπŸ”₯

πŸ“¦ where this page comes from