squeezelite: handle option to unmute ALSA control

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>
pull/22297/merge
Kel Modderman 2024-08-17 21:43:20 +10:00 committed by Rosen Penev
parent 95908326b5
commit cbedce3ee2
2 changed files with 5 additions and 1 deletions

View 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

View 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() {