snd_hda_gen_shutup_speakers(9)
π snd_hda_gen_shutup_speakers(9) β like, the whole glow-up
okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is snd_hda_gen_shutup_speakers(9). yes that's a whole mouthful, no we're not shortening it, it's iconic. π
β¨ NAME β¨
snd_hda_gen_shutup_speakers β forcibly mute the speaker outputs. like, forcibly. not a suggestion, not a vibe check, an actual forced mute. π
πΈ SYNOPSIS πΈ
bool snd_hda_gen_shutup_speakers (struct hda_codec *codec );
that's it. that's the whole call. returns a bool, takes one thing, slays. π
π¦ ARGUMENTS π¦
codecβ the HDA codec. that's the one (1) thing you hand it. the codec. that's the whole argument, bestie. π«Ά
β DESCRIPTION β
okay so here's the tea: this function forcibly mutes the speaker outputs, and you're supposed to call it at suspend or shutdown. think of it as telling the speakers "girl, go to sleep" β except it's not asking. π₯
the way that it works is lowkey important: the mute state done by this function isn't cached, which means the original state will be restored at resume. so it's not a permanent personality change, it's just a little nap. your speakers wake up exactly how they were. no cap. π
it returns true if the mute state has been changed. so like, if nothing needed muting, you get false. if it actually did the thing β true. that's the whole return situation. π
π§ SEE ALSO π§
the kernel file in question is ./sound/hda/codecs/generic.c, and honestly the whole friend group shows up here, so let's do the roll call π:
snd_hda_gen_spec_init(9)snd_hda_gen_add_kctl(9)snd_hda_get_path_idx(9)snd_hda_get_path_from_idx(9)snd_hda_add_new_path(9)snd_hda_activate_path(9)snd_hda_gen_add_mute_led_cdev(9)snd_hda_gen_add_micmute_led_cdev(9)snd_hda_gen_fix_pin_power(9)snd_hda_gen_update_outputs(9)snd_hda_gen_hp_automute(9)snd_hda_gen_line_automute(9)snd_hda_gen_mic_autoswitch(9)snd_hda_gen_path_power_filter(9)snd_hda_gen_stream_pm(9)snd_hda_gen_parse_auto_config(9)snd_hda_gen_build_controls(9)snd_hda_gen_build_pcms(9)snd_hda_gen_init(9)snd_hda_gen_remove(9)snd_hda_gen_check_power_status(9)
every single one of them, no skips, we don't do that here. π
quick reminder bestie: this thing forcibly mutes, and the state isn't cached β the original comes back at resume. memorize it, it's on the test. π
and that's the page! brought to you by the fine folks over at ./sound/hda/codecs, dated October 2026, page snd_hda_gen_shutup_speakers(9) β mwah, bye bestie, go mute some speakers πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms