q6afe_get_port_id(9)
β¨ q6afe_get_port_id(9) β¨
Okay bestie, so this one's a kernel API manual page β section 9, the driver/API section, iykyk β and it's literally called q6afe_get_port_id. The whole vibe is "give me a port index and I'll hand you back the port id." Cute, right? π
πΈ NAME πΈ
q6afe_get_port_id β get the port id from a given port index π
π¦ SYNOPSIS π¦
int q6afe_get_port_id (int index );
β ARGUMENTS β
indexβ the port index, that's it, that's the whole argument π«Ά
π RETURN π
Heads up: you'll get a negative value back on error, or a valid port_id on success. So like, if the number looks sad and minus-y, something went wrong β no cap. On success you get the actual port id and you can go off. β¨
π₯ 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_port_stop(9)q6afe_slim_port_prepare(9)q6afe_tdm_port_prepare(9)afe_port_send_usb_dev_param(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 audacity of this list honestly β it's giving "whole q6afe friend group" and I'm obsessed. Go read them all, bestie, they're all in the same kernel neck of the woods. π
Real talk though: this page is in the Kernel API Manual, section9, so it's documentation for kernel devs, not a command you type in your shell. Don't come for me ifq6afe_get_port_idisn't in your$PATHπ
Sign-off time, babes π§: this iconic little page lives under ./sound/soc/qcom/qdsp6, and the version/date stamped on it is October 2026. 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