snd_hdac_re...e_amp_stereo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_hdac_regmap_update_amp_stereo β€” the stereo AMP glow-up πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one lives in section 9, and it's literally called snd_hdac_regmap_update_amp_stereo. yes the title gets truncated to snd_hdac_re...e_amp_stereo(9) on the header line because man pages are dramatic like that πŸ™ˆ but the real, full, government name is the one up there. let's get into it 🫢


🌸 NAME 🌸

snd_hdac_regmap_update_amp_stereo β€” update the stereo AMP value πŸ’…

like, that's the whole job. she updates. she's stereo. she's an AMP value. iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

int snd_hdac_regmap_update_amp_stereo (struct hdac_device *codec ,
hda_nid_t nid , int dir , int idx , int mask , int val );

that's six whole arguments bestie, she is NOT low maintenance 😭 but every single one of them is doing something, so let's go through them one by one, no cap 🧚


πŸŽ€ ARGUMENTS πŸŽ€

  • codec β€” the HD-audio codec πŸ’– like, the whole device vibe, the main character of this function call
  • nid β€” the NID to read the AMP value πŸ” (yes, to read it β€” that's what the man page says, don't come for me)
  • dir β€” either #HDA_INPUT or #HDA_OUTPUT πŸ¦‹ pick your direction, bestie, you can't have both
  • idx β€” the index value πŸ‘‘ and listen, this one's only for the input direction, so if you're outputting, she's not invited to the party
  • mask β€” bit mask to set 🎯 the bits you're allowed to touch
  • val β€” the bits value to set ✨ the bits you're actually setting them to

πŸ”₯ DESCRIPTION πŸ”₯

so the way this works is: update the stereo AMP value with a bit mask 🎚️ that's it, that's the plot.

and here's the little detail you cannot forget, iykyk:

the lower byte is left, the upper byte is right πŸ’…

lower = left, upper = right. write it on your hand. put it in your notes app. tattoo it. because if you mix those up it's giving chaos and nobody wants that πŸ™ˆ


🌈 RETURN 🌈

  • 0 β€” the value is unchanged, nothing happened, she's unbothered, she's chilling πŸ’€
  • 1 β€” the value changed, something moved, we love growth ⭐
  • negative β€” an error 😭 and yeah, negative means it went wrong, that's the whole mood

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./include/sound/hda_regmap.h πŸ“ and honestly? the whole friend group is in there:

go read them, they're all slay in their own way 🫢✨


okay and for the cute little sign-off moment: this whole page is living under ./include/sound in the kernel tree, stamped October 2026 🌸 and she goes by snd_hdac_re...e_amp_stereo(9) when she's being shy about her full name. mwah, go update some stereo AMP values bestie πŸ’‹πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from