virtsnd_pcm_trigger(9)
π NAME π
virtsnd_pcm_trigger β okay so this is the function that processes the command for the PCM substream, periodt. This is the virtsnd_pcm_trigger(9) page straight from the Kernel API Manual, and yes bestie, we're getting into it. β¨
π SYNOPSIS π
int virtsnd_pcm_trigger (struct snd_pcm_substream *substream , int
command );
No cap, that's the whole signature. π
πΈ ARGUMENTS πΈ
substreamβ the Kernel ALSA substream, aka the main character here. π§commandβ the substream command, with values from theSNDRV_PCM_TRIGGER_XXXfamily. π¦
β¨ CONTEXT β¨
Any context, bestie β no specific context restriction. It takes and releases the VirtIO substream spinlock, and it may also take and release the tx/rx queue spinlock. π₯
π RETURN π
0 on success, and -errno on failure. Slay when it's zero, cry when it's -errno. π
π SEE ALSO π
Kernel file ./sound/virtio/virtio_pcm_ops.c β that's the spot. π
virtsnd_pcm_open(9)virtsnd_pcm_close(9)virtsnd_pcm_dev_set_params(9)virtsnd_pcm_hw_params(9)virtsnd_pcm_hw_free(9)virtsnd_pcm_prepare(9)virtsnd_pcm_sync_stop(9)virtsnd_pcm_pb_pointer(9)virtsnd_pcm_cp_pointer(9)
okay bye bestie β source/version ./sound/virtio, date October 2026 π
β¨π«Ά
π¦ 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