From c6d47dc1d85dc54373aaac641d276055c5e228ee Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 21 Nov 2025 16:17:17 +1000 Subject: Turn on all devices and set volume to max. --- aataaj.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'aataaj.lua') 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 -- io.flush() end end + + local iec = '' + for k, m in ipairs(__("amixer -c " .. Cards[n].card - 1 .. " scontrols | grep 'IEC958' | cut -d ',' -f 2"):noErr():Do().lines) do + iec = iec .. 'IEC958,' .. m .. ' ' + end + if '' ~= iec then print('\t\t\t\t' .. iec) end + iec = '' + for k, m in ipairs(__("amixer -c " .. Cards[n].card - 1 .. " controls | grep ' Playback Volume' | cut -d ',' -f 1"):noErr():Do().lines) do + iec = iec .. 'PCM Playback Volume,' .. m .. ' ' + end + if '' ~= iec then print('\t\t\t\t' .. iec) end + end end end @@ -243,7 +255,7 @@ print(' being turned on and volume maxed - ') end -- Turn the volume to maximum for everything. for l, m in ipairs(__("amixer -c " .. k .. " controls | grep ' Playback Volume' | cut -d ',' -f 1"):noErr():Do().lines) do - __("amixer -c " .. k .. " cset iface=MIXER,name='PCM Playback Volume'," .. m .. " 100% "):Do() + __("amixer -c " .. k .. " cset iface=MIXER,name='PCM Playback Volume," .. m .. "' 100% "):Do() end end -- cgit v1.1