Skip to content

Commit

Permalink
squeezelite: handle option to unmute ALSA control
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kel-mo authored and neheb committed Aug 18, 2024
1 parent 9590832 commit cbedce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sound/squeezelite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions sound/squeezelite/files/squeezelite.init
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cbedce3

Please sign in to comment.