]> git.proxmox.com Git - mirror_qemu.git/commit - audio/audio.c
audio: exit(1) if audio backend failed to be found or initialized
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 22 Aug 2022 13:10:21 +0000 (17:10 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 2 Sep 2022 11:54:47 +0000 (15:54 +0400)
commit0f957c53c84d655f2e99677d407cf2bbe1832de4
tree644d6e9bd8e40a4a2a345245ff1bdc17c0e3681e
parent0370f239ad14aeacc496775e241b9ef041df4374
audio: exit(1) if audio backend failed to be found or initialized

If you specify a known backend but it isn't compiled in, or failed to
initialize, you get a simple warning and the "none" backend as a
fallback, and QEMU runs happily:

$ qemu-system-x86_64 -audiodev id=audio,driver=dsound
audio: Unknown audio driver `dsound'
audio: warning: Using timer based audio emulation
...

Instead, QEMU should fail to start:
$ qemu-system-x86_64 -audiodev id=audio,driver=dsound
audio: Unknown audio driver `dsound'
$

Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=1983493

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20220822131021.975656-1-marcandre.lureau@redhat.com>
audio/audio.c
audio/audio.h
softmmu/vl.c