Hi,
> Another option might be that you just nest things:
>
> { 'struct': 'AudioConfig',
> 'data': {
> 'model': 'AudioDevice',
> 'backend': 'Audiodev' } }
>
> Possibly instead of 'model' on the top level, you'll actually want to
> nest there, too, and accept device properties.
Hmm. Not so easy I suspect. While most sound cards map to a single
device there are exceptions. pcspk is build-in and hda is two devices.
Where do we stand in terms of QAPI support for -device btw?
> If or when I finally get QAPI aliases merged, we can make this look nice
> on the command line again by simply mapping everything to the top level
> so that you don't necessarily need to use dotted keys like you would
> initially, e.g. -audio backend.driver=sdl,model=hda could be optionally
> reduced to -audio driver=sdl,model=hda.
Yes, with aliasing available this would be a reasonable option.
take care,
Gerd