enable_audio_stream(9)
β¨ enable_audio_stream(9) β¨
okay bestie, so this one is from the Kernel API Manual β section 9, kernel-flavored, very much main character energy for the USB audio girlies π
π NAME π
enable_audio_stream β turn on those usb snd endpoints, periodt
πΈ SYNOPSIS πΈ
int enable_audio_stream (struct snd_usb_substream *subs ,
snd_pcm_format_t pcm_format , unsigned int channels , unsigned int
cur_rate , int datainterval );
like literally that's the whole call signature, no cap π«Ά
π¦ ARGUMENTS π¦
subsβ the usb substream, aka the little guy we're working onpcm_formatβ the pcm format you're requesting (yes, exactly that one)channelsβ how many channels, count 'emcur_rateβ the sample ratedataintervalβ the interval
π DESCRIPTION π
So what it does: it opens all the USB SND endpoints used for the data interface. slay.
It also increments the USB SND endpoint's opened count β tracking who's holding it open, very responsible of it β¨
It requests that the interface be kept resumed until the audio stream is stopped. like it's holding the door open for you the entire time, obsessed π
And it will issue the USB set interface control message to enable the data interface. that's the actual enabling part, iykyk π₯
π SEE ALSO π
Kernel file: ./sound/usb/qcom/qc_audio_offload.c
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)uaudio_transfer_buffer_setup(9)uaudio_endpoint_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)
ngl the disable_audio_stream(9) one is right there in the list β the breakup anthem to this page's love song π
mwah π that's a wrap β this page lives in ./sound/usb/qcom, stamped October 2026, and it's from the enable_audio_stream(9) era of the Kernel API Manual. go enable something, bestie πβ
π¦ 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