ALSA: virtio: handling control and I/O messages for the PCM device
The driver implements a message-based transport for I/O substream operations. Before the start of the substream, the hardware buffer is sliced into I/O messages, the number of which is equal to the current number of periods. The size of each message is equal to the current size of one period. I/O messages are organized in an ordered queue. The completion of the I/O message indicates an elapsed period (the only exception is the end of the stream for the capture substream). Upon completion, the message is automatically re-added to the end of the queue. Signed-off-by:Anton Yakovlev <anton.yakovlev@opensynergy.com> Link: https://lore.kernel.org/r/20210302164709.3142702-6-anton.yakovlev@opensynergy.com Signed-off-by:
Takashi Iwai <tiwai@suse.de>
Showing
- sound/virtio/Makefile 2 additions, 1 deletionsound/virtio/Makefile
- sound/virtio/virtio_card.c 18 additions, 4 deletionssound/virtio/virtio_card.c
- sound/virtio/virtio_card.h 9 additions, 0 deletionssound/virtio/virtio_card.h
- sound/virtio/virtio_pcm.c 32 additions, 0 deletionssound/virtio/virtio_pcm.c
- sound/virtio/virtio_pcm.h 40 additions, 0 deletionssound/virtio/virtio_pcm.h
- sound/virtio/virtio_pcm_msg.c 414 additions, 0 deletionssound/virtio/virtio_pcm_msg.c
Loading
Please register or sign in to comment