qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 00/35] Audio clean-ups
@ 2025-10-27 15:10 marcandre.lureau
  2025-10-27 15:10 ` [PATCH v3 01/35] qdev: add qdev_find_default_bus() marcandre.lureau
                   ` (35 more replies)
  0 siblings, 36 replies; 69+ messages in thread
From: marcandre.lureau @ 2025-10-27 15:10 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alexandre Ratchov, Marc-André Lureau, Alex Bennée,
	Jan Kiszka, Michael S. Tsirkin, Marcel Apfelbaum, Yanan Wang,
	Thomas Huth, Philippe Mathieu-Daudé, Gerd Hoffmann,
	Peter Maydell, Daniel P. Berrangé, Eduardo Habkost,
	Manos Pitsidianakis, qemu-ppc, Jiaxun Yang, Akihiko Odaki,
	Hervé Poussineau, qemu-arm, Alistair Francis, Zhao Liu,
	Volker Rümelin, Christian Schoenebeck, Paolo Bonzini,
	Edgar E. Iglesias, BALATON Zoltan, Laurent Vivier

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Hi,

This is part of continuous and overdue clean up / modernization effort for the
audio subsystem. (there is more in the pipe)

v3:
- rebased and dropped applied patches
- fix some checkpatch formatting errors
- tweak commit message
- added r-b tags

v2:
- renamed AudioBE AudioBackend
- "qdev: add qdev_find_default_bus()" report different error for full bus
- added "remove QEMUSoundCard" & drop AudioFE renaming patch
- added "docs: Update mentions of removed '-soundhw' command line option" patch from philmd
- added r-b tags

thanks

Marc-André Lureau (33):
  qdev: add qdev_find_default_bus()
  hw/audio: look up the default bus from the device class
  audio: rename audio_define->audio_add_audiodev()
  hw/audio: use better naming for -audio model handling code
  hw/audio/virtio-snd-pci: remove custom model callback
  hw/audio: simplify 'hda' audio init code
  hw/audio: generalize audio_model.init()
  hw/audio: drop audio_model.isa
  audio: start making AudioState a QOM Object
  audio: register backends in /audiodevs container
  audio: use /audiodevs QOM container
  audio/paaudio: remove needless return value
  audio/dsound: simplify init()
  audio/dsound: report init error via **errp
  audio: simplify audio_driver_init()
  audio: move period tick initialization
  audio: drop needless error message
  audio: keep vmstate handle with AudioState
  audio: register and unregister vmstate with AudioState
  audio: initialize card_head during object init
  audio: remove some needless headers
  audio: remove AUDIO_HOST_ENDIANNESS
  audio: introduce AUD_set_volume_{in,out}_lr()
  audio/replay: fix type punning
  audio: move internal APIs to audio_int.h
  audio: rename AudioState -> AudioBackend
  audio: remove QEMUSoundCard
  audio/dbus: use a helper function to set the backend dbus server
  audio: move audio.h under include/qemu/
  audio: remove dependency on spice header
  audio: cleanup, use bool for booleans
  audio: move capture API to own header
  audio: drop needless audio_driver "descr" field

Philippe Mathieu-Daudé (2):
  audio: Remove pointless local variables
  audio: Rename @endianness argument as @big_endian for clarity

 MAINTAINERS                                   |   1 +
 audio/audio_int.h                             |  67 ++--
 audio/audio_template.h                        |  44 ++-
 audio/mixeng.h                                |   1 -
 hw/audio/lm4549.h                             |   4 +-
 include/hw/audio/asc.h                        |   4 +-
 include/hw/audio/model.h                      |  14 +
 include/hw/audio/soundhw.h                    |  13 -
 include/hw/audio/virtio-snd.h                 |   4 +-
 include/hw/display/xlnx_dp.h                  |   4 +-
 include/hw/isa/vt82c686.h                     |   4 +-
 include/hw/qdev-properties-system.h           |   2 +-
 include/monitor/qdev.h                        |   3 +
 include/qemu/audio-capture.h                  |  43 +++
 {audio => include/qemu}/audio.h               | 137 +++-----
 include/system/replay.h                       |   3 +-
 ui/vnc.h                                      |   4 +-
 audio/alsaaudio.c                             |  37 +--
 audio/audio-hmp-cmds.c                        |   4 +-
 audio/audio.c                                 | 313 +++++++++---------
 audio/audio_win_int.c                         |   2 +-
 audio/dbusaudio.c                             |  20 +-
 audio/dsoundaudio.c                           | 213 +++++-------
 audio/jackaudio.c                             |   3 +-
 audio/mixeng.c                                |  12 +-
 audio/noaudio.c                               |   5 +-
 audio/ossaudio.c                              |  33 +-
 audio/paaudio.c                               |  24 +-
 audio/pwaudio.c                               |  15 +-
 audio/sdlaudio.c                              |  15 +-
 audio/sndioaudio.c                            |   3 +-
 audio/spiceaudio.c                            |   7 +-
 audio/wavaudio.c                              |   6 +-
 audio/wavcapture.c                            |   5 +-
 hw/arm/integratorcp.c                         |   2 +-
 hw/arm/musicpal.c                             |   2 +-
 hw/arm/realview.c                             |   2 +-
 hw/arm/versatilepb.c                          |   2 +-
 hw/arm/vexpress.c                             |   2 +-
 hw/arm/xlnx-zcu102.c                          |   2 +-
 hw/audio/ac97.c                               |  36 +-
 hw/audio/adlib.c                              |  17 +-
 hw/audio/asc.c                                |  15 +-
 hw/audio/cs4231a.c                            |  16 +-
 hw/audio/es1370.c                             |  30 +-
 hw/audio/gus.c                                |  17 +-
 hw/audio/hda-codec.c                          |  21 +-
 hw/audio/intel-hda.c                          |  22 +-
 hw/audio/lm4549.c                             |  12 +-
 hw/audio/marvell_88w8618.c                    |   2 +-
 hw/audio/{soundhw.c => model.c}               |  86 ++---
 hw/audio/pcspk.c                              |  13 +-
 hw/audio/pl041.c                              |   2 +-
 hw/audio/sb16.c                               |  23 +-
 hw/audio/via-ac97.c                           |  11 +-
 hw/audio/virtio-snd-pci.c                     |  18 +-
 hw/audio/virtio-snd.c                         |  17 +-
 hw/audio/wm8750.c                             |  37 +--
 hw/core/machine.c                             |   4 +-
 hw/core/qdev-properties-system.c              |  17 +-
 hw/display/xlnx_dp.c                          |   8 +-
 hw/ppc/prep.c                                 |   2 +-
 hw/usb/dev-audio.c                            |  17 +-
 qom/object.c                                  |   1 +
 replay/replay-audio.c                         |   4 +-
 replay/stubs-system.c                         |   2 +-
 system/qdev-monitor.c                         |  25 +-
 system/runstate.c                             |   2 +-
 system/vl.c                                   |  14 +-
 ui/dbus.c                                     |  13 +-
 ui/vnc.c                                      |  10 +-
 audio/coreaudio.m                             |   3 +-
 audio/meson.build                             |   2 +-
 hw/audio/meson.build                          |   2 +-
 .../codeconverter/test_regexps.py             |   4 +-
 75 files changed, 758 insertions(+), 848 deletions(-)
 create mode 100644 include/hw/audio/model.h
 delete mode 100644 include/hw/audio/soundhw.h
 create mode 100644 include/qemu/audio-capture.h
 rename {audio => include/qemu}/audio.h (50%)
 rename hw/audio/{soundhw.c => model.c} (54%)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 69+ messages in thread

end of thread, other threads:[~2025-10-30 16:44 UTC | newest]

Thread overview: 69+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 15:10 [PATCH v3 00/35] Audio clean-ups marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 01/35] qdev: add qdev_find_default_bus() marcandre.lureau
2025-10-29 13:58   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 02/35] hw/audio: look up the default bus from the device class marcandre.lureau
2025-10-29 14:01   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 03/35] audio: rename audio_define->audio_add_audiodev() marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 04/35] hw/audio: use better naming for -audio model handling code marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 05/35] hw/audio/virtio-snd-pci: remove custom model callback marcandre.lureau
2025-10-29 21:44   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 06/35] hw/audio: simplify 'hda' audio init code marcandre.lureau
2025-10-29 21:46   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 07/35] hw/audio: generalize audio_model.init() marcandre.lureau
2025-10-29 21:47   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 08/35] hw/audio: drop audio_model.isa marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 09/35] audio: start making AudioState a QOM Object marcandre.lureau
2025-10-27 16:26   ` BALATON Zoltan
2025-10-28 12:34     ` Marc-André Lureau
2025-10-29 13:38       ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 10/35] audio: register backends in /audiodevs container marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 11/35] audio: use /audiodevs QOM container marcandre.lureau
2025-10-29 21:47   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 12/35] audio/paaudio: remove needless return value marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 13/35] audio/dsound: simplify init() marcandre.lureau
2025-10-29 13:42   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 14/35] audio/dsound: report init error via **errp marcandre.lureau
2025-10-29 13:43   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 15/35] audio: simplify audio_driver_init() marcandre.lureau
2025-10-29 21:50   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 16/35] audio: move period tick initialization marcandre.lureau
2025-10-29 13:44   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 17/35] audio: drop needless error message marcandre.lureau
2025-10-29 13:40   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 18/35] audio: keep vmstate handle with AudioState marcandre.lureau
2025-10-29 13:46   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 19/35] audio: register and unregister vmstate " marcandre.lureau
2025-10-29 13:48   ` Philippe Mathieu-Daudé
2025-10-29 19:00     ` Marc-André Lureau
2025-10-29 21:42       ` Philippe Mathieu-Daudé
2025-10-30 16:30         ` Philippe Mathieu-Daudé
2025-10-30 16:31         ` Philippe Mathieu-Daudé
2025-10-30 16:37         ` Peter Xu
2025-10-27 15:10 ` [PATCH v3 20/35] audio: initialize card_head during object init marcandre.lureau
2025-10-29 13:48   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 21/35] audio: remove some needless headers marcandre.lureau
2025-10-29 13:48   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 22/35] audio: remove AUDIO_HOST_ENDIANNESS marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 23/35] audio: introduce AUD_set_volume_{in,out}_lr() marcandre.lureau
2025-10-29 21:53   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 24/35] audio/replay: fix type punning marcandre.lureau
2025-10-29 21:51   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 25/35] audio: move internal APIs to audio_int.h marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 26/35] audio: rename AudioState -> AudioBackend marcandre.lureau
2025-10-29 13:49   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 27/35] audio: remove QEMUSoundCard marcandre.lureau
2025-10-30 16:43   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 28/35] audio/dbus: use a helper function to set the backend dbus server marcandre.lureau
2025-10-30 16:38   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 29/35] audio: move audio.h under include/qemu/ marcandre.lureau
2025-10-30 16:39   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 30/35] audio: remove dependency on spice header marcandre.lureau
2025-10-29 13:51   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 31/35] audio: cleanup, use bool for booleans marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 32/35] audio: move capture API to own header marcandre.lureau
2025-10-30 16:40   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 33/35] audio: drop needless audio_driver "descr" field marcandre.lureau
2025-10-29 13:51   ` Philippe Mathieu-Daudé
2025-10-27 15:10 ` [PATCH v3 34/35] audio: Remove pointless local variables marcandre.lureau
2025-10-27 15:10 ` [PATCH v3 35/35] audio: Rename @endianness argument as @big_endian for clarity marcandre.lureau
2025-10-30 13:43 ` [PATCH v3 00/35] Audio clean-ups Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).