snd_hdac_regmap_update_amp(9)
π snd_hdac_regmap_update_amp β update the AMP value π
okay so bestie, this is a page straight out of the Kernel API Manual, and it's all about snd_hdac_regmap_update_amp β¨ like the title literally says: it updates the AMP value. that's the whole vibe. let's get into it π«Ά
β¨ SYNOPSIS β¨
int snd_hdac_regmap_update_amp (struct hdac_device *codec , hda_nid_t
nid , int ch , int dir , int idx , int mask , int val );
that's the signature, copy it exactly, no cap π₯
π ARGUMENTS π
codecβ the HD-audio codec π like, the whole device you're working onnidβ the NID you read the AMP value fromchβ the channel:left=0orright=1(pick ur fighter π¦)dirβ either#HDA_INPUTor#HDA_OUTPUT, your direction bestieidxβ the index value (heads up: this one's only for input direction π)maskβ the bit mask to setvalβ the bits value to set
πΈ DESCRIPTION πΈ
so what does it actually do?? it updates the AMP value with a bit mask β¨ that's it, that's the tea. mask in, value updated, slay π
β RETURN β
0if the value is unchanged (iconic, nothing happened)1if changed (we moved!! π₯)- or a negative error (π that's the sad path, handle it)
π¦ SEE ALSO π¦
kernel file ./include/sound/hda_regmap.h β go read it, iykyk π
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_update(9)snd_hdac_regmap_read(9)snd_hdac_regmap_get_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 π
ok that's the page!! sourced from./include/soundin the kernel tree, dated October 2026, and it's thesnd_hdac_regmap_update_amp(9)page π mwah, go update those AMP values 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