Skip to content

Commit 96b4a6d

Browse files
Wei Liuwenlingz
authored andcommitted
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>
1 parent 1326eec commit 96b4a6d

File tree

1 file changed

+2
-7
lines changed
  • misc/acrn-config/launch_config

1 file changed

+2
-7
lines changed

misc/acrn-config/launch_config/com.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,9 @@ def set_dm_pt(names, sel, vmid, config):
367367
print(' -s {},passthru,{}/{}/{} \\'.format(sel.slot["usb_xdci"][vmid], sel.bdf["usb_xdci"][vmid][0:2],\
368368
sel.bdf["usb_xdci"][vmid][3:5], sel.bdf["usb_xdci"][vmid][6:7]), file=config)
369369

370-
if uos_type in ("ANDROID", "ALIOS"):
370+
# pass through audio/audio_codec
371+
if sel.bdf['audio'][vmid]:
371372
print(" $boot_audio_option \\", file=config)
372-
if uos_type == "WINDOWS":
373-
if sel.bdf['audio'][vmid] and sel.slot['audio'][vmid]:
374-
print(" -s {},passthru,{}/{}/{} \\".format(
375-
launch_cfg_lib.virtual_dev_slot("win_audio"),
376-
sel.bdf['audio'][vmid][0:2], sel.bdf['audio'][vmid][3:5],
377-
sel.bdf['audio'][vmid][6:7]), file=config)
378373

379374
if sel.bdf['cse'][vmid] and sel.slot['cse'][vmid]:
380375
print(" $boot_cse_option \\", file=config)

0 commit comments

Comments
 (0)