squeezelite: handle option to unmute ALSA control
authorKel Modderman <kelvmod@gmail.com>
Sat, 17 Aug 2024 11:43:20 +0000 (21:43 +1000)
committerRosen Penev <rosenp@gmail.com>
Sun, 18 Aug 2024 03:27:31 +0000 (20:27 -0700)
Add logic in squeezelite.init to handle -U <control> cmdline option and
squeezelite.options.unmute=<control> uci option.

Signed-off-by: Kel Modderman <kelvmod@gmail.com>
sound/squeezelite/Makefile
sound/squeezelite/files/squeezelite.init

index 8608a38eb77592e2358be66f01da3b3b20fb8cf6..b1013915d58d9bf07a75d9def38f0c96a5a90cd4 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=squeezelite
 PKG_VERSION:=1.9.9-1432
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/ralph-irving/squeezelite
index e5dc8068d4503e4e822efe7aac73aff467bb31fa..f2080cfb35cca65124d152f237c1df08d6aafcc6 100644 (file)
@@ -102,6 +102,10 @@ make_cmdline() {
        local dop
        config_get dop options dsd_over_pcm 0
        [ "$dop" -eq 1 ] && cmdline="$cmdline -D"
+
+       local unmute
+       config_get unmute options unmute ""
+       [ -n "$unmute" ] && cmdline="$cmdline -U $unmute"
 }
 
 start_service() {