aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf')
-rw-r--r--meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf b/meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf
new file mode 100644
index 00000000..130de3d8
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/acp-rt286-load/files/modprobe.d/snd-soc-acp-rt286-mach.conf
@@ -0,0 +1,2 @@
+#install AMD ASoC ACP-12S driver only on non-embedded hardware by checking 6th bit of iGPU rev ID
+install snd-soc-acp-rt286-mach if [ $(( 2#$(echo "ibase=16; obase=2; $(lspci | awk '/VGA.*AMD.*ATI.*rev [0-9A-Fa-f]+/ {print toupper(substr($NF,1,length($NF)-1)); exit}')" | bc) & 2#00100000 )) -ne 0 ]; then /sbin/modprobe --ignore-install snd-soc-acp-rt286-mach; fi