From 20249380d3948496e5cd2bc07d4b4608112b2d8c Mon Sep 17 00:00:00 2001 From: wenlingz Date: Wed, 13 Mar 2019 09:38:59 +0800 Subject: [PATCH] audio-mediator: load updated audio kernel modules Audio kernel has updated name and add two new kernel modules from SOS 28100 Tracked-On: #2744 Signed-off-by: wenlingz --- devicemodel/samples/apl-mrb/launch_uos.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devicemodel/samples/apl-mrb/launch_uos.sh b/devicemodel/samples/apl-mrb/launch_uos.sh index 22e0da5a2..e1bf0f0fe 100755 --- a/devicemodel/samples/apl-mrb/launch_uos.sh +++ b/devicemodel/samples/apl-mrb/launch_uos.sh @@ -7,8 +7,8 @@ if [ -e "/dev/acrn_hsm" ]; then offline_path="/sys/class/acrn/acrn_hsm" fi -kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }') - +kernel_version=$(uname -r) +audio_module="/usr/lib/modules/$kernel_version/kernel/sound/soc/intel/boards/snd-soc-sst_bxt_sos_tdf8532.ko" ipu_passthrough=0 # Check the device file of /dev/vbs_ipu to determine the IPU mode @@ -17,9 +17,16 @@ ipu_passthrough=1 fi # use the modprobe to force loading snd-soc-skl/sst_bxt_bdf8532 +if [ ! -e $(audio_module)]; then modprobe -q snd-soc-skl modprobe -q snd-soc-sst_bxt_tdf8532 +else +modprobe -q snd_soc_skl +modprobe -q snd_soc_tdf8532 +modprobe -q snd_soc_sst_bxt_sos_tdf8532 +modprobe -q snd_soc_skl_virtio_be +fi audio_passthrough=0 # Check the device file of /dev/vbs_k_audio to determine the audio mode