I think -global
is the way to do this.
I wanted to set an option for the pegasos2 machine sound card via-ac97. When running without doing so I get this warning:
$ qemu-system-ppc -machine pegasos2 -kernel boot.img -audiodev id=audio1,driver=pa
audio: Device via-ac97: audiodev default parameter is deprecated, please specify audiodev=audio1
Using -device
yields a similar result to what you saw
$ qemu-system-ppc -machine pegasos2 -kernel boot.img -audiodev id=audio1,driver=pa -device via-ac97,audiodev=audio1
audio: Device via-ac97: audiodev default parameter is deprecated, please specify audiodev=audio1
qemu-system-ppc: -device via-ac97,audiodev=audio1: Parameter 'driver' expects a pluggable device type
But with -global
no issue. The command below runs without the deprecation warning or error.
$ qemu-system-ppc -machine pegasos2 -kernel boot.img -audiodev id=audio1,driver=pa -global via-ac97.audiodev=audio1