File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
devicemodel/samples/apl-mrb Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ if [ -e "/dev/acrn_hsm" ]; then
7
7
offline_path=" /sys/class/acrn/acrn_hsm"
8
8
fi
9
9
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 "
12
12
ipu_passthrough=0
13
13
14
14
# Check the device file of /dev/vbs_ipu to determine the IPU mode
@@ -17,9 +17,16 @@ ipu_passthrough=1
17
17
fi
18
18
19
19
# use the modprobe to force loading snd-soc-skl/sst_bxt_bdf8532
20
+ if [ ! -e $( audio_module) ]; then
20
21
modprobe -q snd-soc-skl
21
22
modprobe -q snd-soc-sst_bxt_tdf8532
23
+ else
22
24
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
23
30
audio_passthrough=0
24
31
25
32
# Check the device file of /dev/vbs_k_audio to determine the audio mode
You can’t perform that action at this time.
0 commit comments