Skip to content
Snippets Groups Projects
Commit 88f59f07 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

monitor-alsa: receive script configuration from config.lua

parent c00a7069
Branches apertis/v2022dev2
Tags apertis/3.7.1-1apertis1
No related merge requests found
......@@ -30,8 +30,8 @@ function load_script(s, a)
end
end
function load_monitor(s)
load_script("monitors/monitor-" .. s .. ".lua")
function load_monitor(s, a)
load_script("monitors/monitor-" .. s .. ".lua", a)
end
-- Session item factories, building blocks for the session management graph
......@@ -80,7 +80,12 @@ function enable_audio()
load_module("reserve-device")
-- ALSA device management via udev
load_monitor("alsa")
load_monitor("alsa", {
use_acp = true,
use_device_reservation = true,
enable_midi = true,
enable_jack_client = false,
})
end
function enable_bluetooth()
......
......@@ -5,12 +5,8 @@
--
-- SPDX-License-Identifier: MIT
Config = {
use_acp = true,
use_device_reservation = true,
enable_midi = true,
enable_jack_client = false,
}
-- Receive script arguments from config.lua
local Config = ...
if Config.enable_midi then
midi_bridge = Node("spa-node-factory", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment