Skip to content
Snippets Groups Projects
  • Daniel P. Berrangé's avatar
    7a92a857
    qapi, audio: Make introspection reflect build configuration more closely · 7a92a857
    Daniel P. Berrangé authored
    
    Currently the -audiodev accepts any audiodev type regardless of what is
    built in to QEMU. An error only occurs later at runtime when a sound
    device tries to use the audio backend.
    
    With this change QEMU will immediately reject -audiodev args that are
    not compiled into the binary. The QMP schema will also be introspectable
    to identify what is compiled in.
    
    This also helps to avoid compiling code that is not required in the
    binary. Note: When building the audiodevs as modules, the patch only
    compiles out code for modules that we don't build at all.
    
    Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
    [thuth: Rebase, take sndio and dbus devices into account]
    Message-Id: <20230123083957.20349-3-thuth@redhat.com>
    Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
    7a92a857
    History
    qapi, audio: Make introspection reflect build configuration more closely
    Daniel P. Berrangé authored
    
    Currently the -audiodev accepts any audiodev type regardless of what is
    built in to QEMU. An error only occurs later at runtime when a sound
    device tries to use the audio backend.
    
    With this change QEMU will immediately reject -audiodev args that are
    not compiled into the binary. The QMP schema will also be introspectable
    to identify what is compiled in.
    
    This also helps to avoid compiling code that is not required in the
    binary. Note: When building the audiodevs as modules, the patch only
    compiles out code for modules that we don't build at all.
    
    Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
    [thuth: Rebase, take sndio and dbus devices into account]
    Message-Id: <20230123083957.20349-3-thuth@redhat.com>
    Signed-off-by: default avatarThomas Huth <thuth@redhat.com>