aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoronefang2026-05-13 08:56:59 +1000
committeronefang2026-05-13 08:56:59 +1000
commit60dda03110b335c5afa0412f28a82f82d5ac2643 (patch)
treea0f136889c202ad0f0de0eb8500e171e0ac6b66b
parentMoving the output text to before the output speech seems to help at boot time. (diff)
downloadJackOnAllDevices-60dda03110b335c5afa0412f28a82f82d5ac2643.zip
JackOnAllDevices-60dda03110b335c5afa0412f28a82f82d5ac2643.tar.gz
JackOnAllDevices-60dda03110b335c5afa0412f28a82f82d5ac2643.tar.bz2
JackOnAllDevices-60dda03110b335c5afa0412f28a82f82d5ac2643.tar.xz
Option to skip some devices, defulting to HDMI.
-rwxr-xr-xaataaj.lua21
1 files changed, 15 insertions, 6 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 48d52a2..f982c00 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -68,6 +68,7 @@ local options =
68 asoundrcPath = {help = 'Path to our config files and stuff.', value = '/var/lib/aataaj', }, 68 asoundrcPath = {help = 'Path to our config files and stuff.', value = '/var/lib/aataaj', },
69 asoundrc = {help = 'Name of asoundrc file.', value = 'asoundrc', }, 69 asoundrc = {help = 'Name of asoundrc file.', value = 'asoundrc', },
70 aliases = {help = 'Aliases for audio devices.', value = {}, }, 70 aliases = {help = 'Aliases for audio devices.', value = {}, },
71 skip = {help = 'Devices to skip.', value = {'HDMI'}},
71 install = 72 install =
72 { 73 {
73 help = 'Command to install aataaj.lua', 74 help = 'Command to install aataaj.lua',
@@ -531,18 +532,26 @@ elseif 'JACK' == cmd then
531 532
532 print('Rest of ALSA sound devices converted to JACK.') 533 print('Rest of ALSA sound devices converted to JACK.')
533 for k,C in pairs(Cards) do 534 for k,C in pairs(Cards) do
535 local doit = true
536 for j0, c0 in ipairs(options.skip.value) do
537 if c0 == C['name'] then doit = nil ; print('Skipping device ' .. C['name']) end
538 end
534 for j,c in ipairs(C['playbackDevs']) do 539 for j,c in ipairs(C['playbackDevs']) do
535 print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['playbackDevs'][j]) 540 if doit then
536 __(AOUT .. ' -j ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in -d ' .. C['name'] .. C['playbackDevs'][j]):fork() 541 print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['playbackDevs'][j])
542 __(AOUT .. ' -j ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in -d ' .. C['name'] .. C['playbackDevs'][j]):noOut():noErr():fork()
543 end
537 -- __'sleep 1':Do() 544 -- __'sleep 1':Do()
538 -- __('jack_connect cloop:capture_1 ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in' .. ':playback_1'):Do() 545 -- __('jack_connect cloop:capture_1 ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in' .. ':playback_1'):Do()
539 -- __('jack_connect cloop:capture_2 ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in' .. ':playback_2'):Do() 546 -- __('jack_connect cloop:capture_2 ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in' .. ':playback_2'):Do()
540 end 547 end
541 for j,c in ipairs(C['captureDevs']) do 548 for j,c in ipairs(C['captureDevs']) do
542 print('HW capture: ' .. C['name'] .. '\tDEVICE: ' .. C['captureDevs'][j]) 549 if doit then
543 -- TODO - This looks like the source of the "Detected excessive timing errors, waiting 10 seconds." spam. Shut it up for now, investigate later. 550 print('HW capture: ' .. C['name'] .. '\tDEVICE: ' .. C['captureDevs'][j])
544 -- https://discourse.ardour.org/t/hdmi-speakers-are-silent-with-intermittent-noise/108563 last post might help. 551 -- TODO - This looks like the source of the "Detected excessive timing errors, waiting 10 seconds." spam. Shut it up for now, investigate later.
545 __(AIN .. ' -j ' .. C['name'] .. '_' .. C['captureDevs'][j] .. '-out -d ' .. C['name'] .. C['captureDevs'][j]):noOut():fork() 552 -- https://discourse.ardour.org/t/hdmi-speakers-are-silent-with-intermittent-noise/108563 last post might help.
553 __(AIN .. ' -j ' .. C['name'] .. '_' .. C['captureDevs'][j] .. '-out -d ' .. C['name'] .. C['captureDevs'][j]):noOut():noErr():fork()
554 end
546 end 555 end
547 end 556 end
548 print('') 557 print('')