From 66943be353f32a4b132fb142441519aa1c899e21 Mon Sep 17 00:00:00 2001 From: Yuan Liu Date: Thu, 13 Jun 2019 14:36:04 +0800 Subject: [PATCH] dm: enable audio passthrough device. Enable audio device by default on WaaG Tracked-On: #3257 Signed-off-by: Yuan Liu Acked-by: Yu Wang --- devicemodel/samples/nuc/launch_win.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devicemodel/samples/nuc/launch_win.sh b/devicemodel/samples/nuc/launch_win.sh index eb00c3529..b7d6c0df5 100755 --- a/devicemodel/samples/nuc/launch_win.sh +++ b/devicemodel/samples/nuc/launch_win.sh @@ -12,6 +12,10 @@ if [[ "$result" != "" ]]; then exit fi +#add audio passthrough device +echo "8086:9d71" > /sys/bus/pci/drivers/pci-stub/new_id +echo "0000:00:1f.3" > /sys/bus/pci/drivers/pci-stub/bind + #for memsize setting mem_size=2048M @@ -19,6 +23,7 @@ acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \ -s 2,pci-gvt -G "$3" \ -s 3,virtio-blk,./win10-ltsc.img \ -s 4,virtio-net,tap0 \ + -s 5,passthru,00/1f/3 \ --ovmf ./OVMF.fd \ $vm_name }