Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
88f59f07
Commit
88f59f07
authored
4 years ago
by
George Kiagiadakis
Browse files
Options
Downloads
Patches
Plain Diff
monitor-alsa: receive script configuration from config.lua
parent
c00a7069
Branches
apertis/v2022dev2
Branches containing commit
Tags
apertis/3.7.1-1apertis1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/config/config.lua
+8
-3
8 additions, 3 deletions
src/config/config.lua
src/scripts/monitors/monitor-alsa.lua
+2
-6
2 additions, 6 deletions
src/scripts/monitors/monitor-alsa.lua
with
10 additions
and
9 deletions
src/config/config.lua
+
8
−
3
View file @
88f59f07
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
src/scripts/monitors/monitor-alsa.lua
+
2
−
6
View file @
88f59f07
...
...
@@ -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"
,
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment