Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ashok Sidipotu
wireplumber
Commits
058c0719
Commit
058c0719
authored
Sep 16, 2021
by
Ashok Sidipotu
Browse files
alsa-monitor: add check for nill monitor
parent
f0e587ef
Pipeline
#403666
passed with stages
in 1 minute and 19 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/scripts/monitors/alsa.lua
View file @
058c0719
...
@@ -306,7 +306,14 @@ function prepareDevice(parent, id, type, factory, properties)
...
@@ -306,7 +306,14 @@ function prepareDevice(parent, id, type, factory, properties)
end
end
monitor
=
SpaDevice
(
"api.alsa.enum.udev"
,
config
.
properties
)
monitor
=
SpaDevice
(
"api.alsa.enum.udev"
,
config
.
properties
)
monitor
:
connect
(
"create-object"
,
prepareDevice
)
if
monitor
then
monitor
:
connect
(
"create-object"
,
prepareDevice
)
else
Log
.
message
(
"PipeWire's SPA ALSA udev plugin(\"
api
.
alsa
.
enum
.
udev
\
") missing or broken. Sound Cards Cannot be enumerated."
)
return
false
end
-- create the JACK device (for PipeWire to act as client to a JACK server)
-- create the JACK device (for PipeWire to act as client to a JACK server)
if
config
.
properties
[
"alsa.jack-device"
]
then
if
config
.
properties
[
"alsa.jack-device"
]
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment