snd_hda_cod..._init_stereo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_hda_cod..._init_stereo(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for snd_hda_codec_amp_init_stereo ✨ (yes the title is truncated with ... in the header, that's just how the page rolls, no cap β€” the real name is in NAME, keep scrolling)


🌸 NAME 🌸

snd_hda_codec_amp_init_stereo β€” literally initializes the stereo AMP value πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_hda_codec_amp_init_stereo (struct hda_codec *codec , hda_nid_t
nid , int dir , int idx , int mask , int val );

it's giving "one function, six arguments, zero chill" πŸ’…


✨ ARGUMENTS ✨

  • codec β€” the HDA codec, the main character of this whole operation πŸ‘‘
  • nid β€” the NID to read the AMP value from, iykyk 🎯
  • dir β€” either #HDA_INPUT or #HDA_OUTPUT, pick your fighter 🌈
  • idx β€” the index value, and heads up: it only matters for the input direction πŸ™ˆ
  • mask β€” the bit mask to set, aka which bits we're touching πŸŽ€
  • val β€” the bits value to set, aka what we're putting there ⭐

πŸ’œ DESCRIPTION πŸ’œ

fr fr, all this does is call snd_hda_codec_amp_init for both stereo channels πŸ’– two channels, one init, iconic behaviour.


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./sound/hda/common/codec.c β€” and then the entire extended friend group of HDA functions, all here, all accounted for, no one left behind 🫢


that's the whole page bestie, nothing skipped, nothing invented, we ate and left no crumbs πŸ“

sign-off szn: this lil masterpiece lives in ./sound/hda/common, dated October 2026, and it's filed under that same truncated snd_hda_cod..._init_stereo(9) name πŸ’€ stay hydrated, read your kernel docs, mwah πŸ’œπŸ§š

πŸ“¦ where this page comes from