forked from thesofproject/sof-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsof_insert.sh
More file actions
executable file
·84 lines (68 loc) · 2.4 KB
/
sof_insert.sh
File metadata and controls
executable file
·84 lines (68 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash -e
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Intel Corporation. All rights reserved.
insert_module() {
local MODULE="$1"; shift
if modinfo "$MODULE" &> /dev/null ; then
printf 'MODPROBE\t%s\t\t' "$MODULE"
printf '%s ' "$@"
printf '\n'
# If sudo is slow, it's probably because the 'account' service
# of the pam_unix.so module. Its version 1.5.1-7.fc34 tries to
# close() all file descriptors from 65535 to 0.
sudo modprobe "$MODULE" "$@"
else
printf 'SKIP \t%s \t(not in tree)\n' "$MODULE"
fi
}
# Test sudo first, not after dozens of SKIP
sudo true
# This is not required unless you want to change the default flags.
# For the list of flags search: git -C linux grep SOF_DBG_
# Warning: the DMA trace can be forced ON in Kconfig and
# the SOF_DBG_ENABLE_TRACE bit ignored here.
# insert_module snd_sof sof_debug=1
# Insert codec drivers first, they are required to register ASoC components
insert_module snd_soc_da7213
insert_module snd_soc_da7219
insert_module snd_soc_rt274
insert_module snd_soc_rt286
insert_module snd_soc_rt298
insert_module snd_soc_rt5640
insert_module snd_soc_rt5645
insert_module snd_soc_rt5651
insert_module snd_soc_rt5660
insert_module snd_soc_rt5670
insert_module snd_soc_rt5677
insert_module snd_soc_rt5677_spi
insert_module snd_soc_rt5682_i2c
insert_module snd_soc_rt5682_sdw
insert_module snd_soc_pcm512x_i2c
insert_module snd_soc_wm8804_i2c
insert_module snd_soc_max98357a
insert_module snd_soc_max98090
insert_module snd_soc_max98373
insert_module snd_soc_max98373_i2c
insert_module snd_soc_max98373_sdw
insert_module snd_soc_rt700
insert_module snd_soc_rt711
insert_module snd_soc_rt1308
insert_module snd_soc_rt1308_sdw
insert_module snd_soc_rt715
insert_module snd_soc_rt1011
# insert top-level ACPI/PCI SOF drivers. They will register SOF components and
# load machine drivers as needed. Do not insert any other sort of audio module,
# code dependencies will be used to load the relevant modules.
insert_module snd_sof_acpi_intel_byt
insert_module snd_sof_acpi_intel_bdw
insert_module snd_sof_pci_intel_tng
insert_module snd_sof_pci_intel_apl
insert_module snd_sof_pci_intel_cnl
insert_module snd_sof_pci_intel_icl
insert_module snd_sof_pci_intel_tgl
insert_module snd_sof_acpi
insert_module snd_sof_pci
# USB
insert_module snd_usb_audio
# without the status check force quit
builtin exit 0