aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12025-11-21 16:17:17 +1000
committerdvs12025-11-21 16:17:17 +1000
commitc6d47dc1d85dc54373aaac641d276055c5e228ee (patch)
tree69ed0bc6b6f0ba149167b8fe0bbbcdb820b4daa9
parentSpeak at a rate that all devices should support. (diff)
downloadJackOnAllDevices-c6d47dc1d85dc54373aaac641d276055c5e228ee.zip
JackOnAllDevices-c6d47dc1d85dc54373aaac641d276055c5e228ee.tar.gz
JackOnAllDevices-c6d47dc1d85dc54373aaac641d276055c5e228ee.tar.bz2
JackOnAllDevices-c6d47dc1d85dc54373aaac641d276055c5e228ee.tar.xz
Turn on all devices and set volume to max.
Diffstat (limited to '')
-rwxr-xr-xaataaj.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/aataaj.lua b/aataaj.lua
index c00fcc4..b2ea50c 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -197,6 +197,18 @@ for i,l in ipairs(cards.lines) do
197-- io.flush() 197-- io.flush()
198 end 198 end
199 end 199 end
200
201 local iec = ''
202 for k, m in ipairs(__("amixer -c " .. Cards[n].card - 1 .. " scontrols | grep 'IEC958' | cut -d ',' -f 2"):noErr():Do().lines) do
203 iec = iec .. 'IEC958,' .. m .. ' '
204 end
205 if '' ~= iec then print('\t\t\t\t' .. iec) end
206 iec = ''
207 for k, m in ipairs(__("amixer -c " .. Cards[n].card - 1 .. " controls | grep ' Playback Volume' | cut -d ',' -f 1"):noErr():Do().lines) do
208 iec = iec .. 'PCM Playback Volume,' .. m .. ' '
209 end
210 if '' ~= iec then print('\t\t\t\t' .. iec) end
211
200 end 212 end
201 end 213 end
202 end 214 end
@@ -243,7 +255,7 @@ print(' being turned on and volume maxed - ')
243 end 255 end
244 -- Turn the volume to maximum for everything. 256 -- Turn the volume to maximum for everything.
245 for l, m in ipairs(__("amixer -c " .. k .. " controls | grep ' Playback Volume' | cut -d ',' -f 1"):noErr():Do().lines) do 257 for l, m in ipairs(__("amixer -c " .. k .. " controls | grep ' Playback Volume' | cut -d ',' -f 1"):noErr():Do().lines) do
246 __("amixer -c " .. k .. " cset iface=MIXER,name='PCM Playback Volume'," .. m .. " 100% "):Do() 258 __("amixer -c " .. k .. " cset iface=MIXER,name='PCM Playback Volume," .. m .. "' 100% "):Do()
247 end 259 end
248 end 260 end
249 261