virtsnd_pcm_dev_set_params(9)
π virtsnd_pcm_dev_set_params(9) β like, the Kernel API Manual page, bestie β¨
okay so picture this: it's a Kernel API Manual page, and the star of the show is virtsnd_pcm_dev_set_params β the function that sets the parameters of a PCM substream, but on the device side. yes, that side. the cool side. π
πΈ NAME πΈ
virtsnd_pcm_dev_set_params β set the parameters of the PCM substream on the device side π
β¨ SYNOPSIS β¨
int virtsnd_pcm_dev_set_params (struct virtio_pcm_substream *vss ,
unsigned int buffer_bytes , unsigned int period_bytes , unsigned int
channels , snd_pcm_format_t format , unsigned int rate );
that's the whole vibe check right there, no cap π
π¦ ARGUMENTS π¦
vssβ the VirtIO PCM substream itself, the main character π«Άbuffer_bytesβ size of the hardware buffer, like how much room the hardware gets to work with π«period_bytesβ size of the hardware period πchannelsβ the selected number of channels, pick your fighter πformatβ the selected sample format (SNDRV_PCM_FORMAT_XXX), literal format icon behaviour πrateβ the selected frame rate, the tempo of the whole operation π₯
π CONTEXT π
any context that permits to sleep π΄ β yes bestie, you're allowed to sleep here, that's genuinely the requirement, not a metaphor.
β RETURN β
0on success β slay, immaculate, ate π-errnoon failure β not slay, but that's the deal π
πΈ SEE ALSO πΈ
kernel file ./sound/virtio/virtio_pcm_ops.c plus the whole friend group π:
virtsnd_pcm_open(9)virtsnd_pcm_close(9)virtsnd_pcm_hw_params(9)virtsnd_pcm_hw_free(9)virtsnd_pcm_prepare(9)virtsnd_pcm_trigger(9)virtsnd_pcm_sync_stop(9)virtsnd_pcm_pb_pointer(9)virtsnd_pcm_cp_pointer(9)
and that's the page, bestie π§ β brought to you from ./sound/virtio, dated October 2026, and yes, virtsnd_pcm_dev_set_params(9) is literally right there in the title the whole time π 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