mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 06:19:24 +00:00
acrn-config: check pass-thruogh device for audio/audio_codec
Add this check while validating audio/audio_codec for pass-through device setting. Tracked-On: #4249 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -141,6 +141,9 @@ class PthruSelected():
|
||||
launch_cfg_lib.pt_devs_check(self.bdf["wifi"], self.vpid["wifi"], "wifi")
|
||||
launch_cfg_lib.pt_devs_check(self.bdf["bluetooth"], self.vpid["bluetooth"], "bluetooth")
|
||||
|
||||
# check connections between several pass-through devices
|
||||
launch_cfg_lib.pt_devs_check_audio(self.bdf['audio'], self.bdf['audio_codec'])
|
||||
|
||||
|
||||
class VirtioDeviceSelect():
|
||||
|
||||
|
@@ -192,10 +192,6 @@ def audio_pt(uos_type, sel, vmid, config):
|
||||
print("else", file=config)
|
||||
print(' boot_audio_option="-s {},virtio-audio"'.format(slot_audio), file=config)
|
||||
print("fi", file=config)
|
||||
elif bdf_codec:
|
||||
# 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"
|
||||
|
||||
|
||||
def media_pt(uos_type, sel, vmid, config):
|
||||
|
Reference in New Issue
Block a user