~martijnbraam/almobootstrap

d68d5fcf20f7e48fe64b6a9b23d5406aa0756f55 — Luca Weiss 8 months ago 1d0eb27
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
1 files changed, 1 insertions(+), 2 deletions(-)

M pmb/qemu/run.py
M pmb/qemu/run.py => pmb/qemu/run.py +1 -2
@@ 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)