snd_hdac_bus_send_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_hdac_bus_send_cmd(9) ✨

Okay so bestie, welcome to the snd_hdac_bus_send_cmd page β€” it's part of the Kernel API Manual, and honestly it's giving "tiny function, big responsibilities." πŸ’…


🌸 NAME 🌸

snd_hdac_bus_send_cmd β€” literally just: send a command verb via CORB or PIO. That's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_hdac_bus_send_cmd (struct hdac_bus *bus , unsigned int val );

Like, that's it. Two args, one int coming back at you. Iconic minimalism. ✨


πŸ’– ARGUMENTS πŸ’–

  • bus β€” the HD-audio core bus, aka the main character of this whole operation πŸ‘‘
  • val β€” the encoded verb value you're sending out into the world πŸš€

πŸ”₯ DESCRIPTION πŸ”₯

So what does it actually do? It sends your command verb via CORB or PIO, and then it tells you how it went:

  • returns zero for success πŸŽ‰
  • returns a negative error code when things did NOT slay 😭

No cap, that's the entire description. Simple, clean, no notes. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./sound/hda/core/controller.c and its whole friend group β€” go say hi:


πŸ’« and that's the page, bestie πŸ’«

Cute little sign-off before you go: this whole thing lives in ./sound/hda/core, it's dated October 2026, and the manual is snd_hdac_bus_send_cmd(9). Go forth and send those verbs. πŸ§šπŸ’œ

πŸ“¦ where this page comes from