snd_hdac_bu...stream_pages(9)
β¨ NAME β¨
snd_hdac_bus_alloc_stream_pages β bestie, this is the one that allocates your BDL and all the other buffers π
(it's from the Kernel API Manual, iykyk π)
β¨ SYNOPSIS β¨
int snd_hdac_bus_alloc_stream_pages (struct hdac_bus *bus );
β¨ ARGUMENTS β¨
busβ your HD-audio core bus π that's the whole vibe, she's the main character here
πΈ DESCRIPTION πΈ
Okay so listen π β call this after you've assigned the all streams. Yeah, all of them. Don't come at her before that, she's not ready π«Ά.
What does she give you back? zero for success β¨, or a negative error code if things went π. That's it, that's the whole contract, no cap.
fr fr, the ordering matters: assign the streams first, then call this. Not the other way around π.
π¦ SEE ALSO π¦
Kernel file ./sound/hda/core/controller.c β go read the source, it's giving iconic:
snd_hdac_bus_init_cmd_io(9)snd_hdac_bus_stop_cmd_io(9)snd_hdac_bus_send_cmd_pio(9)snd_hdac_bus_get_response_pio(9)snd_hdac_bus_send_cmd_corb(9)snd_hdac_bus_update_rirb(9)snd_hdac_bus_get_response_rirb(9)snd_hdac_bus_send_cmd(9)snd_hdac_bus_get_response(9)snd_hdac_bus_parse_capabilities(9)snd_hdac_bus_enter_link_reset(9)snd_hdac_bus_exit_link_reset(9)snd_hdac_bus_init_chip(9)snd_hdac_bus_stop_chip(9)snd_hdac_bus_handle_stream_irq(9)snd_hdac_bus_free_stream_pages(9)snd_hdac_bus_link_power(9)
and that's the whole page, bestie π go forth and allocate responsibly π
sign-off szn π β this lil masterpiece lives in ./sound/hda/core, dated October 2026, straight out of the Kernel API Manual. mwah π
π¦ 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