uaudio_endpoint_setup(9)
π NAME π
okay so this is uaudio_endpoint_setup β and no cap, its whole thing is fetch and populate endpoint params β¨. Think of it as the function that goes and grabs the endpoint info and fills it in, bestie. Also hiiii, you're reading the Kernel API Manual page for uaudio_endpoint_setup(9) β welcome to the group chat π«Ά.
β¨ SYNOPSIS β¨
phys_addr_t uaudio_endpoint_setup (struct snd_usb_substream *subs ,
struct snd_usb_endpoint *endpoint , int card_num , struct mem_info_v01
*mem_info , struct usb_endpoint_descriptor_v01 *ep_desc );
πΈ ARGUMENTS πΈ
subsβ the usb substream. literally the stream context being handed in πendpointβ the usb endpoint to add. yes bestie, this is the one getting added β¨card_numβ the uadev index. it's giving "which card are we talking about" energy πmem_infoβ QMI response info. the QMI response details live here π¦ep_descβ QMI ep desc response field. this is the endpoint-descriptor field from the QMI response π
π₯ DESCRIPTION π₯
okay so uaudio_endpoint_setup initializes the USB endpoint that's being used for a particular USB stream. that's the main character move π«Ά. It will request XHCI sec intr to reserve the EP for offloading, and it also populates the QMI response with the transfer ring parameters. both of those things? yes bestie, same function, iconic behavior π.
π SEE ALSO π
the kernel file in question is ./sound/usb/qcom/qc_audio_offload.c β go read it, iykyk π. and these iconic cross-references are all here:
uaudio_iommu_unmap(9)uaudio_iommu_map_pa(9)uaudio_dev_intf_cleanup(9)uaudio_event_ring_cleanup_free(9)disable_audio_stream(9)uaudio_sideband_notifier(9)qmi_bye_cb(9)qmi_svc_disconnect_cb(9)enable_audio_stream(9)uaudio_transfer_buffer_setup(9)uaudio_event_ring_setup(9)uaudio_populate_uac_desc(9)prepare_qmi_response(9)handle_uaudio_stream_req(9)qc_usb_audio_offload_init_qmi_dev(9)qc_usb_audio_offload_probe(9)qc_usb_audio_cleanup_qmi_dev(9)qc_usb_audio_offload_disconnect(9)qc_usb_audio_offload_suspend(9)
and that's the whole page, bestie π. this Kernel API Manual entry for uaudio_endpoint_setup(9) comes from ./sound/usb/qcom, dated October 2026 β slay, bye π
β¨
π¦ 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