snd_hdac_regmap_update(9)
π snd_hdac_regmap_update(9) β like, the Kernel API Manual edition π
okay bestie, buckle up, we're reading a manpage and honestly? it's a short one but it eats. this is snd_hdac_regmap_update from the Kernel API Manual, and it's giving "tiny function, big purpose" energy β¨
πΈ NAME πΈ
snd_hdac_regmap_update β update a verb value, but make it cached π
like, you're updating the verb and the regmap is keeping track, no cap.
β¨ SYNOPSIS β¨
int snd_hdac_regmap_update (struct hdac_device *codec , hda_nid_t nid ,
unsigned int verb , unsigned int mask , unsigned int val );
so she takes five things and returns an int, periodt. π₯
π«Ά ARGUMENTS π«Ά
codecβ the HD-audio codec, aka the main character of this whole situation πnidβ the codec NID (yes, literally that, that's the whole description, we love a concise queen)verbβ the verb that's getting updated π¦maskβ the bit mask for the update, so we only touch the bits we're supposed to πvalβ the value you're updating it to, slay
π DESCRIPTION π
okay so real talk: this is for updating a verb value with caching, that's the whole vibe check π«
and here's the one thing you gotta remember, bestie, highlighted in dramatic font because the manpage said it, not me:
for updating an amp value, usesnd_hdac_regmap_update_ampinstead!! π like don't come for this function for amp stuff, it's not her job,snd_hdac_regmap_update_ampis the one you want.
β RETURN β
0if it worked out β success, we love to see it π- a negative error code if it didn't β not the vibe, but at least you know π
π SEE ALSO π
- Kernel file
./include/sound/hda_regmap.h snd_hdac_regmap_encode_verb(9)snd_hdac_regmap_encode_amp(9)snd_hdac_regmap_encode_amp_stereo(9)snd_hdac_regmap_write(9)snd_hdac_regmap_read(9)snd_hdac_regmap_get_amp(9)snd_hdac_regmap_update_amp(9)snd_hdac_regmap_get_amp_stereo(9)snd_hdac_regmap_update_amp_stereo(9)snd_hdac_regmap_sync_node(9)
the whole friend group fr fr π§π go read their pages too, iykyk
π cute lil sign-off: this page lives in ./include/sound and the version is dated October 2026 β so like, from the future, iconic. mwah, study safe bestie π
π
π¦ 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