snd_hda_gen_build_pcms(9)
π snd_hda_gen_build_pcms(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is snd_hda_gen_build_pcms(9), like, the manual page entry, and it's genuinely such a little icon. No cap, it's short, but it does things. Let's get into it π
β¨ NAME β¨
snd_hda_gen_build_pcms β builds PCM streams based on the parsed results π
Like, it takes all that parsing you already did and actually turns it into real, breathing PCM streams. it's giving "the payoff moment". iykyk.
πΈ SYNOPSIS πΈ
int snd_hda_gen_build_pcms (struct hda_codec *codec );
that's the whole signature, bestie. returns an int, takes one struct hda_codec *. clean. minimal. main character energy fr fr π¦
π ARGUMENTS π
codecβ the HDA codec π like, the actual codec you're working on. that's it. that's the argument.
π DESCRIPTION π
Pass this to build_pcms hda_codec_ops. π«Ά
that's literally the whole description and honestly? obsessed. it's one sentence and it ate. so when you're filling in your hda_codec_ops, build_pcms wants this function β the one that builds the PCM streams from the parsed results. hand it over and let it cook π₯
π SEE ALSO π
okay this list is lowkey long but every single one of these is a baddie in their own right, so let's give them all their moment π
- Kernel file
./sound/hda/codecs/generic.c 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_shutup_speakers(9)snd_hda_gen_parse_auto_config(9)snd_hda_gen_build_controls(9)snd_hda_gen_init(9)snd_hda_gen_remove(9)snd_hda_gen_check_power_status(9)
like, go read them. they're all in the group chat, they're all valid, and they all slay in their own specific way πΈ
π reminder bestie: everything above is literally it. no hidden flags, no secret env vars, no exit status drama β this page is short and sweet and we respect that.
k bye bestie!! this page came straight out of the Kernel API Manual, lives in ./sound/hda/codecs, and got dated October 2026 β stay hydrated, keep your hda_codec_ops tidy, and remember: build_pcms = this function. periodt π
π
π¦ 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