From 2e7e0398996c5fb39e566e9d6d72df2975ac9f39 Mon Sep 17 00:00:00 2001
From: Pascal Vizeli <pvizeli@syshack.ch>
Date: Tue, 10 Mar 2020 10:28:45 +0100
Subject: [PATCH] Optimize SND kernel module handling (#606)

* Optimize SND kernel module handling

* Update alsa-base.conf

* Update alsa-base.conf
---
 .../usr/modprobe.d/alsa-base.conf             | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 buildroot-external/rootfs-overlay/usr/modprobe.d/alsa-base.conf

diff --git a/buildroot-external/rootfs-overlay/usr/modprobe.d/alsa-base.conf b/buildroot-external/rootfs-overlay/usr/modprobe.d/alsa-base.conf
new file mode 100644
index 00000000000..136f4575f82
--- /dev/null
+++ b/buildroot-external/rootfs-overlay/usr/modprobe.d/alsa-base.conf
@@ -0,0 +1,19 @@
+#############################
+# ALSA drivers load options
+# Based from LibreELEC
+#############################
+
+# Prevent abnormal drivers from grabbing index 0
+options snd-bt87x index=-2
+options cx88-alsa index=-2
+options saa7134-alsa index=-2
+options snd-atiixp-modem index=-2
+options snd-intel8x0m index=-2
+options snd-via82xx-modem index=-2
+options snd-usb-audio index=-2
+options snd-usb-usx2y index=-2
+options snd-usb-caiaq index=-2
+options snd-cmipci mpu_port=0x330 fm_port=0x388
+
+# HDA intel
+options snd-hda-intel model=auto