snd_hdac_set_codec_wakeup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… snd_hdac_set_codec_wakeup(9) β€” Kernel API Manual, section 9, bestie

okay so real talk, this is a page from the Kernel API Manual, section 9 β€” aka the big-girl kernel dev section, not your cute little userland commands. sit down, hydrate, and let's get into it 🫢


✨ NAME ✨

snd_hdac_set_codec_wakeup β€” turn the HDMI/DP codec wakeup on or off, that's the whole gig πŸ’…


🌸 SYNOPSIS 🌸

int snd_hdac_set_codec_wakeup (struct hdac_bus *bus , bool enable );

πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” the HDA core bus. yeah. that one. the bus bestie 🚌
  • enable β€” literally just says whether you're enabling or disabling the wakeup. on or off. no in-between, no vibes-based middle ground πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function has a very specific lane, okay? it's supposed to be used only by a HD-audio controller driver that needs to interact with the graphics driver. like, it's not for everybody. it's giving exclusive. it's giving invite-only 🧚

and when do you call it? during the chip reset β€” which, fun fact, also gets called at resume for updating the STATESTS register read πŸ”₯ so yeah, reset energy and resume energy both.

returns zero for success, or a negative error code if it went sideways 😭 (classic kernel move).


πŸ’œ SEE ALSO πŸ’œ

all of these are the friend group, go say hi πŸ‘‘


ngl if you're here it's because you're writing an HD-audio controller driver and you need to talk to the graphics driver. main character energy. good luck bestie πŸ’–

⭐ and that's the page!! brought to you by ./sound/hda/core, dated October 2026 β€” mwah, ily, go reset a chip responsibly πŸŽ€πŸ’œ

πŸ“¦ where this page comes from