pmb.qemu.run: replace removed -soundhw option

In the QEMU 7.1 release the deprecated -soundhw option was removed.
Replace it with -audio so we can have audio working again in QEMU.

See also https://www.qemu.org/docs/master/about/removed-features.html

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605102320.739043-1-luca@z3ntu.xyz%3E
This commit is contained in:
Luca Weiss 2023-06-05 12:23:20 +02:00 committed by Oliver Smith
parent 1d0eb2792f
commit d68d5fcf20
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 2 deletions

View File

@ -229,8 +229,7 @@ def command_qemu(args, arch, img_path, img_path_2nd=None):
# Audio support
if args.qemu_audio:
command += ["-audiodev", args.qemu_audio + ",id=audio"]
command += ["-soundhw", "hda"]
command += ["-audio", f"{args.qemu_audio},model=hda"]
return (command, env)