enable_audio_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 on
  • pcm_format β€” the pcm format you're requesting (yes, exactly that one)
  • channels β€” how many channels, count 'em
  • cur_rate β€” the sample rate
  • datainterval β€” 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

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