afe_port_send_usb_dev_param(9)
β¨ afe_port_send_usb_dev_param β¨
okay so this is a page from the Kernel API Manual, section 9 β yes bestie, the kernel has lore and we're gonna read it π
π NAME π
afe_port_send_usb_dev_param β sends the USB dev token, that's literally the whole job π«Ά
πΈ SYNOPSIS πΈ
int afe_port_send_usb_dev_param (struct q6afe_port *port , int cardidx ,
int pcmidx );
like, it takes a port and two lil index numbers and hands back an int, periodt β¨
π¦ ARGUMENTS π¦
portβ the instance of the afe port you're working with, your main character fr πcardidxβ the USB SND card index you wanna reference πpcmidxβ the USB SND PCM device index you wanna reference π
π DESCRIPTION π
okay so the USB dev token is carrying the tea π β it holds the info about which USB SND card instance and which PCM device the offload should execute on.
and then that info gets carried all the way through to the stream enable QMI request, which is handled by the offload class driver. iykyk π
then the information is parsed so the system can figure out which USB device to go query for the required resources it needs. iconic behaviour, no cap π₯
β SEE ALSO β
- kernel file
./sound/soc/qcom/qdsp6/q6afe.c - struct
afe_param_id_usb_audio_dev_params(9) - struct
afe_param_id_usb_audio_dev_lpcm_fmt(9) - struct
afe_param_id_usb_audio_svc_interval(9) q6afe_get_port_id(9)q6afe_port_stop(9)q6afe_slim_port_prepare(9)q6afe_tdm_port_prepare(9)q6afe_usb_port_prepare(9)q6afe_hdmi_port_prepare(9)q6afe_i2s_port_prepare(9)q6afe_cdc_dma_port_prepare(9)q6afe_port_start(9)q6afe_port_get_from_id(9)q6afe_port_put(9)
like... the whole friend group showed up for this one π go read them too bestie, they're all right there π
aaaand that's the page!! mwah π this one lives in ./sound/soc/qcom/qdsp6 and it's dated October 2026 β so like, future vibes only π§β¨ bye bestie, slay your offload π
π¦ 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