mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
acrn-config: add 'boot_audio_option' while auido/audio_codec set
Fixed the issue that parameter of 'boot_audio_option' is lost when audio/auido codec device is configured. Tracked-On: #3853 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
1326eec4eb
commit
96b4a6dbff
@ -367,14 +367,9 @@ def set_dm_pt(names, sel, vmid, config):
|
||||
print(' -s {},passthru,{}/{}/{} \\'.format(sel.slot["usb_xdci"][vmid], sel.bdf["usb_xdci"][vmid][0:2],\
|
||||
sel.bdf["usb_xdci"][vmid][3:5], sel.bdf["usb_xdci"][vmid][6:7]), file=config)
|
||||
|
||||
if uos_type in ("ANDROID", "ALIOS"):
|
||||
# pass through audio/audio_codec
|
||||
if sel.bdf['audio'][vmid]:
|
||||
print(" $boot_audio_option \\", file=config)
|
||||
if uos_type == "WINDOWS":
|
||||
if sel.bdf['audio'][vmid] and sel.slot['audio'][vmid]:
|
||||
print(" -s {},passthru,{}/{}/{} \\".format(
|
||||
launch_cfg_lib.virtual_dev_slot("win_audio"),
|
||||
sel.bdf['audio'][vmid][0:2], sel.bdf['audio'][vmid][3:5],
|
||||
sel.bdf['audio'][vmid][6:7]), file=config)
|
||||
|
||||
if sel.bdf['cse'][vmid] and sel.slot['cse'][vmid]:
|
||||
print(" $boot_cse_option \\", file=config)
|
||||
|
Loading…
Reference in New Issue
Block a user