Merge pull request #286 from aajjbb/fix-alsa-channel

Make amixer get information only from the selected channel
This commit is contained in:
Luke Bonham 2017-01-24 20:57:00 +01:00 committed by GitHub
commit fc5974a9c2
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