]> git.proxmox.com Git - mirror_qemu.git/commit
audio: propagate Error * out of audio_init
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 2 Oct 2023 14:27:57 +0000 (16:27 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Oct 2023 08:29:40 +0000 (10:29 +0200)
commitcb94ff5f80c537e43c04fa4f071f1df784255310
tree18907d34d44c8e344ea2174c5bd80e6fa8dc5169
parent9dcb64c96073e9898105cdbef6553cfef0fadcdb
audio: propagate Error * out of audio_init

Starting from audio_driver_init, propagate errors via Error ** so that
audio_init_audiodevs can simply pass &error_fatal, and AUD_register_card
can signal faiure.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
[Reworked the audio/audio.c parts, while keeping Martin's hw/ changes. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
18 files changed:
audio/audio.c
audio/audio.h
hw/arm/omap2.c
hw/audio/ac97.c
hw/audio/adlib.c
hw/audio/cs4231a.c
hw/audio/es1370.c
hw/audio/gus.c
hw/audio/hda-codec.c
hw/audio/lm4549.c
hw/audio/pcspk.c
hw/audio/sb16.c
hw/audio/via-ac97.c
hw/audio/wm8750.c
hw/display/xlnx_dp.c
hw/input/tsc210x.c
hw/usb/dev-audio.c
softmmu/vl.c