snd_hdac_reg...t_amp_stereo(9)
π snd_hdac_regmap_get_amp_stereo(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a lil kernel function from ./include/sound and honestly it's giving "small but mighty". let's get into it π
β¨ NAME β¨
snd_hdac_regmap_get_amp_stereo β Read stereo AMP values πΈ
π¦ SYNOPSIS π¦
int snd_hdac_regmap_get_amp_stereo (struct hdac_device *codec ,
hda_nid_t nid , int dir , int idx );
like, that's the whole signature. four args. no drama. periodt π
π ARGUMENTS π
codecβ the HD-audio codec π§ (yes, that codec, the one you're poking at)nidβ the NID you wanna read the AMP value from πdirβ either#HDA_INPUTor#HDA_OUTPUT, pick your fighter π₯idxβ the index value (heads up: only for input direction, iykyk) π
π DESCRIPTION π
Reads stereo AMP values. that's the whole vibe.
and here's the cute lil bit β the lower byte is left, the upper byte is right. so when you get your value back, left lives downstairs and right lives upstairs, no cap πβ¨
π₯ RETURN π₯
the value π₯ or a negative error π (if it's negative, something went sideways, go check your stuff)
π SEE ALSO π
Kernel file ./include/sound/hda_regmap.h plus this whole friend group right here:
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_update_amp(9)snd_hdac_regmap_update_amp_stereo(9)snd_hdac_regmap_sync_node(9)
ngl bestie, read the stereo bytes right and you're golden π«Ά
and that's the page!! brought to you by the lovely humans over in ./include/sound, dated October 2026 β go read some regmap, ily, bye ππ§ββοΈ
π¦ 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