Make amixer get information only from the selected channel

This commit is contained in:
aajjbb 2017-01-24 17:44:27 -02:00
parent 8ba5f4a7ef
commit 57da210b43
1 changed files with 1 additions and 1 deletions

View File

@ -23,8 +23,8 @@ local function worker(args)
local timeout = args.timeout or 5 local timeout = args.timeout or 5
local settings = args.settings or function() end local settings = args.settings or function() end
alsa.cmd = args.cmd or "amixer"
alsa.channel = args.channel or "Master" alsa.channel = args.channel or "Master"
alsa.cmd = args.cmd or "amixer sget " .. alsa.channel
alsa.togglechannel = args.togglechannel alsa.togglechannel = args.togglechannel
if alsa.togglechannel then if alsa.togglechannel then