snd_pcm_hw_rule_noresample(9)
π 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:
- Kernel file
./sound/core/pcm_lib.c snd_pcm_set_ops(9)snd_pcm_set_sync_per_card(9)snd_interval_refine(9)snd_interval_div(9)snd_interval_muldivk(9)snd_interval_mulkdiv(9)snd_interval_ratnum(9)snd_interval_ratden(9)snd_interval_list(9)snd_interval_ranges(9)snd_pcm_hw_rule_add(9)snd_pcm_hw_constraint_mask(9)snd_pcm_hw_constraint_mask64(9)snd_pcm_hw_constraint_integer(9)snd_pcm_hw_constraint_minmax(9)snd_pcm_hw_constraint_list(9)snd_pcm_hw_constraint_ranges(9)snd_pcm_hw_constraint_ratnums(9)snd_pcm_hw_constraint_ratdens(9)snd_pcm_hw_constraint_msbits(9)snd_pcm_hw_constraint_step(9)snd_pcm_hw_constraint_pow2(9)snd_pcm_hw_param_value(9)snd_pcm_hw_param_first(9)snd_pcm_hw_param_last(9)snd_pcm_hw_params_bits(9)snd_pcm_lib_ioctl(9)snd_pcm_period_elapsed_under_stream_lock(9)snd_pcm_period_elapsed(9)snd_pcm_add_chmap_ctls(9)
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
- 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