[PATCH 00/43] Audio clean-ups

marcandre.lureau@redhat.com posted 43 patches 1 week, 1 day ago
Failed in applying to current master (apply log)
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Christian Schoenebeck <qemu_oss@crudebyte.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>, Thomas Huth <huth@tuxfamily.org>, Alexandre Ratchov <alex@caoua.org>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Peter Maydell <peter.maydell@linaro.org>, Jan Kiszka <jan.kiszka@web.de>, Alistair Francis <alistair@alistair23.me>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Laurent Vivier <laurent@vivier.eu>, "Michael S. Tsirkin" <mst@redhat.com>, Manos Pitsidianakis <manos.pitsidianakis@linaro.org>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>, "Hervé Poussineau" <hpoussin@reactos.org>, BALATON Zoltan <balaton@eik.bme.hu>, Jiaxun Yang <jiaxun.yang@flygoat.com>, "Alex Bennée" <alex.bennee@linaro.org>
There is a newer version of this series
docs/qdev-device-use.txt                      |   6 +-
audio/audio_int.h                             |  64 ++--
audio/audio_template.h                        |  30 +-
audio/mixeng.h                                |   1 -
hw/audio/lm4549.h                             |   4 +-
include/hw/audio/asc.h                        |   4 +-
include/hw/audio/model.h                      |  13 +
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/hw/timer/i8254.h                      |   4 +-
include/monitor/qdev.h                        |   3 +
include/qemu/audio-capture.h                  |  43 +++
{audio => include/qemu}/audio.h               | 125 +++-----
include/system/replay.h                       |   3 +-
ui/vnc.h                                      |   4 +-
audio/alsaaudio.c                             |   5 +-
audio/audio-hmp-cmds.c                        |   4 +-
audio/audio.c                                 | 303 +++++++++---------
audio/audio_win_int.c                         |   2 +-
audio/dbusaudio.c                             |  17 +-
audio/dsoundaudio.c                           | 213 ++++++------
audio/jackaudio.c                             |   3 +-
audio/mixeng.c                                |  12 +-
audio/noaudio.c                               |   5 +-
audio/ossaudio.c                              |   7 +-
audio/paaudio.c                               |  16 +-
audio/pwaudio.c                               |   3 +-
audio/sdlaudio.c                              |   3 +-
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                               | 137 ++++----
hw/audio/adlib.c                              |  34 +-
hw/audio/asc.c                                |  12 +-
hw/audio/cs4231a.c                            |  52 ++-
hw/audio/es1370.c                             |  37 ++-
hw/audio/gus.c                                |  35 +-
hw/audio/hda-codec.c                          |  12 +-
hw/audio/intel-hda.c                          |  20 +-
hw/audio/lm4549.c                             |   6 +-
hw/audio/marvell_88w8618.c                    |   2 +-
hw/audio/model.c                              | 121 +++++++
hw/audio/pcspk.c                              |  27 +-
hw/audio/sb16.c                               | 104 +++---
hw/audio/soundhw.c                            | 143 ---------
hw/audio/via-ac97.c                           |   6 +-
hw/audio/virtio-snd-pci.c                     |  18 +-
hw/audio/virtio-snd.c                         |   8 +-
hw/audio/wm8750.c                             |  20 +-
hw/core/machine.c                             |   4 +-
hw/core/qdev-properties-system.c              |  14 +-
hw/display/xlnx_dp.c                          |   4 +-
hw/ppc/prep.c                                 |   2 +-
hw/timer/i8254_common.c                       |   6 +-
hw/usb/dev-audio.c                            |  12 +-
qom/object.c                                  |   1 +
replay/replay-audio.c                         |   4 +-
replay/stubs-system.c                         |   2 +-
system/qdev-monitor.c                         |  21 +-
system/runstate.c                             |   2 +-
system/vl.c                                   |  16 +-
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 +-
77 files changed, 903 insertions(+), 970 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%)
create mode 100644 hw/audio/model.c
delete mode 100644 hw/audio/soundhw.c
[PATCH 00/43] Audio clean-ups
Posted by marcandre.lureau@redhat.com 1 week, 1 day ago
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 pipeline)

thanks

Marc-André Lureau (43):
  hw/audio: improve error reports
  hw/audio: rename model list function
  hw/audio: remove global pcspk
  hw/pcspk: use explicitly the required PIT types
  hw/pcspk: make 'pit' a class property
  hw/pcspk: check the "pit" is set
  docs: update -soundhw -> -device list
  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: clean-up vmstate change handler on finalize
  audio: unregister vmstate description
  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()
  hw/audio: replace AUD_log() usage
  audio/replay: fix type punning
  audio: move internal APIs to audio_int.h
  audio: rename AudioState -> AudioBE
  audio: rename QEMUSoundCard -> AudioFE
  audio: rename audio_get_id()
  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: drop needless list of FE
  audio: move capture API to own header
  audio: drop needless audio_driver "descr" field

 docs/qdev-device-use.txt                      |   6 +-
 audio/audio_int.h                             |  64 ++--
 audio/audio_template.h                        |  30 +-
 audio/mixeng.h                                |   1 -
 hw/audio/lm4549.h                             |   4 +-
 include/hw/audio/asc.h                        |   4 +-
 include/hw/audio/model.h                      |  13 +
 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/hw/timer/i8254.h                      |   4 +-
 include/monitor/qdev.h                        |   3 +
 include/qemu/audio-capture.h                  |  43 +++
 {audio => include/qemu}/audio.h               | 125 +++-----
 include/system/replay.h                       |   3 +-
 ui/vnc.h                                      |   4 +-
 audio/alsaaudio.c                             |   5 +-
 audio/audio-hmp-cmds.c                        |   4 +-
 audio/audio.c                                 | 303 +++++++++---------
 audio/audio_win_int.c                         |   2 +-
 audio/dbusaudio.c                             |  17 +-
 audio/dsoundaudio.c                           | 213 ++++++------
 audio/jackaudio.c                             |   3 +-
 audio/mixeng.c                                |  12 +-
 audio/noaudio.c                               |   5 +-
 audio/ossaudio.c                              |   7 +-
 audio/paaudio.c                               |  16 +-
 audio/pwaudio.c                               |   3 +-
 audio/sdlaudio.c                              |   3 +-
 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                               | 137 ++++----
 hw/audio/adlib.c                              |  34 +-
 hw/audio/asc.c                                |  12 +-
 hw/audio/cs4231a.c                            |  52 ++-
 hw/audio/es1370.c                             |  37 ++-
 hw/audio/gus.c                                |  35 +-
 hw/audio/hda-codec.c                          |  12 +-
 hw/audio/intel-hda.c                          |  20 +-
 hw/audio/lm4549.c                             |   6 +-
 hw/audio/marvell_88w8618.c                    |   2 +-
 hw/audio/model.c                              | 121 +++++++
 hw/audio/pcspk.c                              |  27 +-
 hw/audio/sb16.c                               | 104 +++---
 hw/audio/soundhw.c                            | 143 ---------
 hw/audio/via-ac97.c                           |   6 +-
 hw/audio/virtio-snd-pci.c                     |  18 +-
 hw/audio/virtio-snd.c                         |   8 +-
 hw/audio/wm8750.c                             |  20 +-
 hw/core/machine.c                             |   4 +-
 hw/core/qdev-properties-system.c              |  14 +-
 hw/display/xlnx_dp.c                          |   4 +-
 hw/ppc/prep.c                                 |   2 +-
 hw/timer/i8254_common.c                       |   6 +-
 hw/usb/dev-audio.c                            |  12 +-
 qom/object.c                                  |   1 +
 replay/replay-audio.c                         |   4 +-
 replay/stubs-system.c                         |   2 +-
 system/qdev-monitor.c                         |  21 +-
 system/runstate.c                             |   2 +-
 system/vl.c                                   |  16 +-
 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 +-
 77 files changed, 903 insertions(+), 970 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%)
 create mode 100644 hw/audio/model.c
 delete mode 100644 hw/audio/soundhw.c

-- 
2.51.0