Skip to content

Commit 2024938

Browse files
committed
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 <wenling.zhang@intel.com>
1 parent 95d1e40 commit 2024938

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

devicemodel/samples/apl-mrb/launch_uos.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ if [ -e "/dev/acrn_hsm" ]; then
77
offline_path="/sys/class/acrn/acrn_hsm"
88
fi
99

10-
kernel_version=$(uname -r | awk -F. '{ printf("%d.%d", $1,$2) }')
11-
10+
kernel_version=$(uname -r)
11+
audio_module="/usr/lib/modules/$kernel_version/kernel/sound/soc/intel/boards/snd-soc-sst_bxt_sos_tdf8532.ko"
1212
ipu_passthrough=0
1313

1414
# Check the device file of /dev/vbs_ipu to determine the IPU mode
@@ -17,9 +17,16 @@ ipu_passthrough=1
1717
fi
1818

1919
# use the modprobe to force loading snd-soc-skl/sst_bxt_bdf8532
20+
if [ ! -e $(audio_module)]; then
2021
modprobe -q snd-soc-skl
2122
modprobe -q snd-soc-sst_bxt_tdf8532
23+
else
2224

25+
modprobe -q snd_soc_skl
26+
modprobe -q snd_soc_tdf8532
27+
modprobe -q snd_soc_sst_bxt_sos_tdf8532
28+
modprobe -q snd_soc_skl_virtio_be
29+
fi
2330
audio_passthrough=0
2431

2532
# Check the device file of /dev/vbs_k_audio to determine the audio mode

0 commit comments

Comments
 (0)