mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 14:07:42 +00:00
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 <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
4d8ca9c54a
commit
f46d8a9669
@ -178,7 +178,7 @@ def audio_pt(uos_type, sel, vmid, config):
|
|||||||
slot_codec, bus_codec, dev_codec, fun_codec), file=config)
|
slot_codec, bus_codec, dev_codec, fun_codec), file=config)
|
||||||
else:
|
else:
|
||||||
# only select audio device to pass through to vm
|
# 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)
|
slot_audio, bus, dev, fun), file=config)
|
||||||
|
|
||||||
print("else", 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
|
# only selected audio codec, then set error message
|
||||||
key = "audio/audio codec error:"
|
key = "audio/audio codec error:"
|
||||||
launch_cfg_lib.ERR_LIST[key] = "Audio codec device should be pass through together with Audio devcie"
|
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):
|
def media_pt(uos_type, sel, vmid, config):
|
||||||
|
Loading…
Reference in New Issue
Block a user