snd_hdac_regmap_get_amp(9)
π snd_hdac_regmap_get_amp(9) π
okay bestie, welcome to the Kernel API Manual β this one is literally called snd_hdac_regmap_get_amp(9) and it's gonna be so chill. we're reading AMP values off an HD-audio codec. that's it. that's the whole vibe. let's go β¨
πΈ NAME πΈ
snd_hdac_regmap_get_amp β Read AMP value π
bestie it reads the AMP value. it's giving "one job, does it well." we love a focused icon. π
β¨ SYNOPSIS β¨
int snd_hdac_regmap_get_amp (struct hdac_device *codec , hda_nid_t nid ,
int ch , int dir , int idx );
five arguments, one int coming back at ya. no cap, that's the whole signature. screenshot it. πΈ
π¦ ARGUMENTS π¦
codecβ HD-audio codec π this is the codec we're poking at, main character energy fr.nidβ NID to read the AMP value π the node id we want the AMP from, iykyk.chβ channel (left=0 or right=1) π left is0, right is1. pick a side bestie, there's only two.dirβ#HDA_INPUTor#HDA_OUTPUTπ₯ literally which direction, input or output. that's the whole choice.idxβ the index value (only for input direction) π heads up: this one only matters when you're going the input direction. input-only behavior, no cap.
π DESCRIPTION π
Read AMP value. that's the assignment and it ate. π«Ά
so when you get that value back, here's the tea: the volume is between 0 to 0x7f, and 0x80 = mute bit. so like, 0 through 0x7f is your actual volume range, and 0x80 is the special "shhh, muted" flag. not me thinking that's kinda iconic π
π RETURN π
it returns the value... or a negative error. π so like, check your return value bestie, don't just assume it slayed. negative = something went sideways, periodt.
fr fr always check the return, a negative error is not a vibe check you wanna fail π
β SEE ALSO β
the whole friend group π«Ά:
- 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_update(9)snd_hdac_regmap_read(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)
like the stereo version of this one is right there?? snd_hdac_regmap_get_amp_stereo(9) said "let me do it for both channels" π
go read it next, i'll wait.
β¨ mwah, that's a wrap β¨ this little gem lives in ./include/sound, dated October 2026, and the page itself is snd_hdac_regmap_get_amp(9) out of the Kernel API Manual. go forth and read those AMP values, bestie β you're gonna do amazing πππ¦πΈπ
π¦ 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