RFC Virtio Sound card Implementation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest25 patches 7 repliesIn review
- v1 RFC27 patches 12 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | virtio-snd: Add virtio sound header fileinclude/ | +97 | 1 reply | |
| 2/25 | virtio-snd: Add jack control structuresinclude/ | +40 | 0 replies | |
| 3/25 | virtio-snd: Add PCM control structuresinclude/ | +123 | 0 replies | |
| 4/25 | virtio-snd: Add chmap control structuresinclude/ | +57 | 0 replies | |
| 5/25 | virtio-snd: Add device implementation structuresinclude/ | +66 | 0 replies | |
| 6/25 | virtio-snd: Add PCI wrapper code for VirtIOSoundhw/ hw/ | +73 | 0 replies | |
| 7/25 | virtio-snd: Add properties for class inithw/ hw/ hw/ | +132 | 0 replies | |
| 8/25 | virtio-snd: Add code for get config functionhw/ | +9 | 0 replies | |
| 9/25 | virtio-snd: Add code for the realize functionhw/ | +35 | 0 replies | |
| 10/25 | virtio-snd: Add macros for logginghw/ | +8 | 0 replies | |
| 11/25 | virtio-snd: Add control virtqueue handlerhw/ | +73 | 0 replies | |
| 12/25 | virtio-snd: Add VIRTIO_SND_R_JACK_INFO handlerhw/ | +79 | 1 reply | |
| 13/25 | virtio-snd: Add stub for VIRTIO_SND_R_JACK_REMAP handlerhw/ | +23 | 0 replies | |
| 14/25 | virtio-snd: Add VIRTIO_SND_R_PCM_INFO handlerhw/ | +87 | 1 reply | |
| 15/25 | virtio-snd: Add VIRITO_SND_R_PCM_SET_PARAMS handlehw/ | +115 | 0 replies | |
| 16/25 | virtio-snd: Add VIRTIO_SND_R_PCM_PREPARE handlerhw/ | +202 | 0 replies | |
| 17/25 | virtio-snd: Add default configs to realize fnhw/ | +40 | 0 replies | |
| 18/25 | virtio-snd: Add callback for SWVoiceOuthw/ | +248 | 0 replies | |
| 19/25 | virtio-snd: Add start/stop handlerhw/ | +33 | 0 replies | |
| 20/25 | virtio-snd: Add VIRTIO_SND_R_PCM_RELEASE handlerhw/ | +81 | 0 replies | |
| 21/25 | virtio-snd: Replaced goto with if elsehw/ | +8 | 0 replies | |
| 22/25 | virtio-snd: Add code to device unrealize functionhw/ | +30 | 0 replies | |
| 23/25 | virtio-snd: Add xfer handlerhw/ | +70 | 0 replies | |
| 24/25 | virtio-snd: Add event vq and a handler stubhw/ | +14 | 0 replies | |
| 25/25 | virtio-snd: Replaced AUD_log with tracepointshw/ hw/ | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 00/25] Virtio Sound card Implementation
The second RFC for implementing the VirtIO Sound card as described in the virtio specs. Sorry for the absence of activity on this.
The output from the sound card works.
What remains to be done:
- Features defined in PCM features. (Eg message polling)
- Channel maps
- Jack remaps
- Input
I will work on the input after I have implemented the output along with all the features since at that point it should just be a matter of reversing a few things in the code that writes the audio.
I can work on this patchset mostly on weekends now but I will try to be more regular with this.
Reviews are welcome :)
Shreyansh Chouhan (25):
virtio-snd: Add virtio sound header file
virtio-snd: Add jack control structures
virtio-snd: Add PCM control structures
virtio-snd: Add chmap control structures
virtio-snd: Add device implementation structures
virtio-snd: Add PCI wrapper code for VirtIOSound
virtio-snd: Add properties for class init
virtio-snd: Add code for get config function
virtio-snd: Add code for the realize function
virtio-snd: Add macros for logging
virtio-snd: Add control virtqueue handler
virtio-snd: Add VIRTIO_SND_R_JACK_INFO handler
virtio-snd: Add stub for VIRTIO_SND_R_JACK_REMAP handler
virtio-snd: Add VIRTIO_SND_R_PCM_INFO handler
virtio-snd: Add VIRITO_SND_R_PCM_SET_PARAMS handle
virtio-snd: Add VIRTIO_SND_R_PCM_PREPARE handler
virtio-snd: Add default configs to realize fn
virtio-snd: Add callback for SWVoiceOut
virtio-snd: Add start/stop handler
virtio-snd: Add VIRTIO_SND_R_PCM_RELEASE handler
virtio-snd: Replaced goto with if else
virtio-snd: Add code to device unrealize function
virtio-snd: Add xfer handler
virtio-snd: Add event vq and a handler stub
virtio-snd: Replaced AUD_log with tracepoints
hw/audio/Kconfig | 5 + hw/audio/meson.build | 1 + hw/audio/trace-events | 14 + hw/audio/virtio-snd.c | 1241 ++++++++++++++++++++++++++++++++ hw/virtio/meson.build | 1 + hw/virtio/virtio-snd-pci.c | 72 ++ include/hw/virtio/virtio-snd.h | 383 ++++++++++ 7 files changed, 1717 insertions(+) create mode 100644 hw/audio/virtio-snd.c create mode 100644 hw/virtio/virtio-snd-pci.c create mode 100644 include/hw/virtio/virtio-snd.h
Signature · 1 line
2.31.1