From 1e7f15c0152364e6bd65080a60c11a10b49b6021 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Tue, 30 Mar 2021 13:12:17 +0200
Subject: [PATCH] Tuning the sound architecture to be more Real Time aware.
---
buildroot-external/rootfs-overlay/etc/security/limits.conf | 3 +++
buildroot-external/rootfs-overlay/etc/sysctl.conf | 1 +
2 files changed, 4 insertions(+)
create mode 100644 buildroot-external/rootfs-overlay/etc/security/limits.conf
diff --git a/buildroot-external/rootfs-overlay/etc/security/limits.conf b/buildroot-external/rootfs-overlay/etc/security/limits.conf
new file mode 100644
index 00000000..9ff23f91
--- /dev/null
+++ b/buildroot-external/rootfs-overlay/etc/security/limits.conf
@@ -0,0 +1,3 @@
+@audio nice -15
+@audio - rtprio 90 # maximum realtime priority
+@audio - memlock unlimited # maximum locked-in-memory address space (KB)
diff --git a/buildroot-external/rootfs-overlay/etc/sysctl.conf b/buildroot-external/rootfs-overlay/etc/sysctl.conf
index 65bd0c31..ce5a44e5 100644
--- a/buildroot-external/rootfs-overlay/etc/sysctl.conf
+++ b/buildroot-external/rootfs-overlay/etc/sysctl.conf
@@ -1,2 +1,3 @@
vm.swappiness = 30
kernel.panic = 20
+fs.inotify.max_user_watches = 524288