snd_hdac_reg...t_amp_stereo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_INPUT or #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:


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