qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let's remove some deprecated stuff


From: Gerd Hoffmann
Subject: Re: Let's remove some deprecated stuff
Date: Thu, 29 Apr 2021 15:46:12 +0200

  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]