snd_hda_codec_setup_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_hda_codec_setup_stream β€” like, the kernel API manual edition ✨

okay so bestie, quick vibe check: this page lives in the Kernel API Manual, and it's all about one little function that gets your HD-audio codec ready to actually stream. no cap, it's a small one, but it's doing real work πŸ’–


🌸 NAME 🌸

snd_hda_codec_setup_stream β€” set up the codec for streaming 🎧✨


πŸŽ€ SYNOPSIS πŸŽ€

void snd_hda_codec_setup_stream (struct hda_codec *codec , hda_nid_t nid
, u32 stream_tag , int channel_id , int format );

like yes, that's the whole signature, she's lowkey serving "short and sweet" πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • codec β€” the CODEC to set up. this is your main character, the thing you're configuring 🫢
  • nid β€” the NID to set up. the specific node we're pointing at, iykyk ✨
  • stream_tag β€” the stream tag to pass, and fr fr it's between 0x1 and 0xf. respect the range or don't come to the party πŸ™ˆ
  • channel_id β€” the channel id to pass, and it's zero based (so like, counting from 0, not from 1 β€” we love a consistent index) πŸ’œ
  • format β€” the stream format. literally just the format of the stream, that's the whole thing πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the part where the friend group gets big. every one of these is invited to the group chat, and not me listing all of them 😭 but a promise is a promise, so here's the full roster:

and yeah β€” all of these live in the kernel file ./sound/hda/common/codec.c, so that's where you go when you wanna read the source yourself πŸ’–

real talk: that's the entire page. no hidden options, no return value section, no bugs section β€” just the function, the five arguments, and the extended family. sometimes a manpage is just a manpage πŸŽ€

✨ that's the whole thing, bestie β€” go set up a stream and slay ✨

this little cutie is filed under ./sound/hda/common and dated October 2026, so like… mark your calendars πŸ’…πŸ«ΆπŸŒΈ

πŸ“¦ where this page comes from