Skip to content

ALSA: add virtio sound driver

Anton Yakovlev alsa-devel lkml virtio-dev virtualization 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest9 patches 1 replyIn review
  2. v69 patches 22 repliesSuperseded
  3. v59 patches 18 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v49 patches0 repliesSuperseded
v39 patches0 repliesSuperseded
v29 patches20 repliesSuperseded
v17 patches12 repliesSuperseded

Changes in v7 from the cover letter

- Moved the snd_pcm_period_elapsed() call from the interrupt handler to the kernel worker for being consistent with the non-atomic mode of the PCM device.
- Removed SNDRV_PCM_INFO_RESUME flag. Now ops->prepare() sets the parameters for the substream if it was previously suspended.
- Some additional code readability improvements/comments.

[1] https://lists.oasis-open.org/archives/virtio-dev/202003/msg00185.html

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9uapi: virtio_ids: add a sound device type ID from OASIS specinclude/uapi/linux/virtio_ids.h+1 -00 replies
2/9ALSA: virtio: add virtio sound driverMAINTAINERS include/uapi/linux/virtio_snd.h sound/Kconfig +5 more+753 -10 replies
3/9ALSA: virtio: handling control messagessound/virtio/Makefile sound/virtio/virtio_card.c sound/virtio/virtio_card.h +2 more+410 -10 replies
4/9ALSA: virtio: build PCM devices and substream hardware descriptorssound/virtio/Makefile sound/virtio/virtio_card.c sound/virtio/virtio_card.h +2 more+581 -10 replies
5/9ALSA: virtio: handling control and I/O messages for the PCM devicesound/virtio/Makefile sound/virtio/virtio_card.c sound/virtio/virtio_card.h +3 more+515 -50 replies
6/9ALSA: virtio: PCM substream operatorssound/virtio/Makefile sound/virtio/virtio_pcm.c sound/virtio/virtio_pcm.h +1 more+454 -10 replies
7/9ALSA: virtio: introduce jack supportsound/virtio/Makefile sound/virtio/virtio_card.c sound/virtio/virtio_card.h +1 more+260 -00 replies
8/9ALSA: virtio: introduce PCM channel map supportsound/virtio/Makefile sound/virtio/virtio_card.c sound/virtio/virtio_card.h +2 more+242 -00 replies
9/9ALSA: virtio: introduce device suspend/resume supportsound/virtio/virtio_card.c sound/virtio/virtio_pcm.h sound/virtio/virtio_pcm_ops.c+85 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/9] ALSA: add virtio sound driver

This series implements a driver part of the virtio sound device specification v8 [1].

The driver supports PCM playback and capture substreams, jack and channel map controls. A message-based transport is used to write/read PCM frames to/from a device.

As a device part was used OpenSynergy proprietary implementation.

v7 changes:
- Moved the snd_pcm_period_elapsed() call from the interrupt handler to the kernel worker for being consistent with the non-atomic mode of the PCM device.
- Removed SNDRV_PCM_INFO_RESUME flag. Now ops->prepare() sets the parameters for the substream if it was previously suspended.
- Some additional code readability improvements/comments.

[1] https://lists.oasis-open.org/archives/virtio-dev/202003/msg00185.html

Anton Yakovlev (9):
uapi: virtio_ids: add a sound device type ID from OASIS spec
ALSA: virtio: add virtio sound driver
ALSA: virtio: handling control messages
ALSA: virtio: build PCM devices and substream hardware descriptors
ALSA: virtio: handling control and I/O messages for the PCM device
ALSA: virtio: PCM substream operators
ALSA: virtio: introduce jack support
ALSA: virtio: introduce PCM channel map support
ALSA: virtio: introduce device suspend/resume support

 MAINTAINERS                     |   9 +
 include/uapi/linux/virtio_ids.h |   1 +
 include/uapi/linux/virtio_snd.h | 334 +++++++++++++++++++++
 sound/Kconfig                   |   2 +
 sound/Makefile                  |   3 +-
 sound/virtio/Kconfig            |  10 +
 sound/virtio/Makefile           |  13 +
 sound/virtio/virtio_card.c      | 449 ++++++++++++++++++++++++++++
 sound/virtio/virtio_card.h      | 111 +++++++
 sound/virtio/virtio_chmap.c     | 219 ++++++++++++++
 sound/virtio/virtio_ctl_msg.c   | 310 +++++++++++++++++++
 sound/virtio/virtio_ctl_msg.h   |  78 +++++
 sound/virtio/virtio_jack.c      | 233 +++++++++++++++
 sound/virtio/virtio_pcm.c       | 513 ++++++++++++++++++++++++++++++++
 sound/virtio/virtio_pcm.h       | 124 ++++++++
 sound/virtio/virtio_pcm_msg.c   | 414 ++++++++++++++++++++++++++
 sound/virtio/virtio_pcm_ops.c   | 464 +++++++++++++++++++++++++++++
 17 files changed, 3286 insertions(+), 1 deletion(-)
 create mode 100644 include/uapi/linux/virtio_snd.h
 create mode 100644 sound/virtio/Kconfig
 create mode 100644 sound/virtio/Makefile
 create mode 100644 sound/virtio/virtio_card.c
 create mode 100644 sound/virtio/virtio_card.h
 create mode 100644 sound/virtio/virtio_chmap.c
 create mode 100644 sound/virtio/virtio_ctl_msg.c
 create mode 100644 sound/virtio/virtio_ctl_msg.h
 create mode 100644 sound/virtio/virtio_jack.c
 create mode 100644 sound/virtio/virtio_pcm.c
 create mode 100644 sound/virtio/virtio_pcm.h
 create mode 100644 sound/virtio/virtio_pcm_msg.c
 create mode 100644 sound/virtio/virtio_pcm_ops.c
Signature · 7 lines
2.30.1



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]