Skip to content

Commit

Permalink
Set lowlatency=1 for RPi5 (#126)
Browse files Browse the repository at this point in the history
* variance of lowlatency=0 for Pi 5

* 3.7.1-1
  • Loading branch information
jxmx authored Feb 4, 2025
1 parent dcf016b commit 84e27a3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
SRCNAME = ASL3
PKGNAME = asl3
RELVER = 3.7.0
DEBVER = 10
RELVER = 3.7.1
DEBVER = 1
RELPLAT ?= deb$(shell lsb_release -rs 2> /dev/null)

BUILDABLES = \
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
asl3 (3.7.1-1) stable; urgency=medium

* Set lowlatency=1 for RPi5

-- Jason McCormick <[email protected]> Mon, 03 Feb 2025 19:24:52 -0500

asl3 (3.7.0-1) stable; urgency=medium

* Remove kernel manager script introduced in #119
Expand Down
9 changes: 9 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,17 @@

set -e

function do_configure() {
IS_PI5=$(egrep -E '^Model' /proc/cpuinfo | grep "Pi 5" | wc -l)
if [ "${IS_PI5}" == "1" ]; then
echo "options snd_usb_audio lowlatency=1" > \
/etc/modprobe.d/asl3-snd-usb-audio.conf
fi
}

case "$1" in
configure)
do_configure
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
Expand Down

0 comments on commit 84e27a3

Please sign in to comment.