[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [virtio-dev] [PATCH v2] snd: Add virtio sound device specification
On 11.11.2019 16:28, Liam Girdwood wrote:
On Wed, 2019-11-06 at 10:28 +0100, Mikhail Golubev wrote:Fixes: https://github.com/oasis-tcs/virtio-spec/issues/54
snip
+\subsection{Device Operation}\label{sec:Device Types / Sound Device / Device Operation} + +All control messages are placed into the controlq virtqueue and use the following +layout structure and definitions: + +\begin{lstlisting} +enum { + /* PCM control request types */ + VIRTIO_SND_R_PCM_CHMAP_INFO = 0, + VIRTIO_SND_R_PCM_SET_FORMAT, + VIRTIO_SND_R_PCM_PREPARE, + VIRTIO_SND_R_PCM_START, + VIRTIO_SND_R_PCM_STOP, + VIRTIO_SND_R_PCM_PAUSE, + VIRTIO_SND_R_PCM_UNPAUSE,Where do I tear down the PCM when I'm finished with it ? i.e. to free resources.
Current workflow: - a PCM stream is preparing with the set_format/prepare/start requests - if necessary, resources are freed/released with the stop request If needed, the stream can be temporary paused (the pause/unpause requests). snip -- Anton Yakovlev Senior Software Engineer OpenSynergy GmbH Rotherstr. 20, 10245 Berlin Phone: +49 30 60 98 54 0 E-Mail: anton.yakovlev@opensynergy.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]