From 79fb22de02f6e3b8f90553db94e6d5a586f24e2a Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 25 Oct 2019 11:56:03 +0800 Subject: [PATCH] acrn-config: add the '"' character for launch script 1. Add the character of quotation marks for launch vm script. 2. Audio codec should put together with audio devcie and pass to vm , otherwise report an error message to webUI. Tracked-On: #3937 Signed-off-by: Wei Liu Acked-by: Victor Sun --- misc/acrn-config/launch_config/pt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misc/acrn-config/launch_config/pt.py b/misc/acrn-config/launch_config/pt.py index 4c59c299f..446a78dae 100644 --- a/misc/acrn-config/launch_config/pt.py +++ b/misc/acrn-config/launch_config/pt.py @@ -178,7 +178,7 @@ def audio_pt(uos_type, sel, vmid, config): slot_codec, bus_codec, dev_codec, fun_codec), file=config) else: # only select audio device to pass through to vm - print(' boot_audio_option="-s {},passthru,{}/{}/{},keep_gsi'.format( + print(' boot_audio_option="-s {},passthru,{}/{}/{},keep_gsi"'.format( slot_audio, bus, dev, fun), file=config) print("else", file=config) @@ -188,8 +188,6 @@ def audio_pt(uos_type, sel, vmid, config): # only selected audio codec, then set error message key = "audio/audio codec error:" launch_cfg_lib.ERR_LIST[key] = "Audio codec device should be pass through together with Audio devcie" - print(' boot_audio_option=-s {},passthru,{}/{}/{}"'.format( - slot_codec, bus_codec, dev_codec, fun_codec), file=config) def media_pt(uos_type, sel, vmid, config):