mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
audio: add audiodev properties to frontends
Finally add audiodev= options to audio frontends so users can specify which backend to use when multiple backends exist. Not specifying an audiodev= option currently causes the first audiodev to be used, this is fixed in the next commit. Example usage: -audiodev pa,id=foo -device AC97,audiodev=foo Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: d64db52dda2d0e9d97bc5ab1dd9adf724280fea1.1566168923.git.DirtY.iCE.hu@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
f0b9f36d71
commit
88e47b9a45
15 changed files with 91 additions and 1 deletions
|
@ -887,6 +887,11 @@ static int es1370_init (PCIBus *bus)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static Property es1370_properties[] = {
|
||||
DEFINE_AUDIO_PROPERTIES(ES1370State, card),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void es1370_class_init (ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS (klass);
|
||||
|
@ -903,6 +908,7 @@ static void es1370_class_init (ObjectClass *klass, void *data)
|
|||
dc->desc = "ENSONIQ AudioPCI ES1370";
|
||||
dc->vmsd = &vmstate_es1370;
|
||||
dc->reset = es1370_on_reset;
|
||||
dc->props = es1370_properties;
|
||||
}
|
||||
|
||||
static const TypeInfo es1370_info = {
|
||||
|
@ -923,4 +929,3 @@ static void es1370_register_types (void)
|
|||
}
|
||||
|
||||
type_init (es1370_register_types)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue