mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
pipewire-aes67: move the PTP driver to AES67 process
This commit is contained in:
parent
f257c3407d
commit
4659bca609
2 changed files with 26 additions and 15 deletions
|
|
@ -18,6 +18,29 @@ context.properties = {
|
|||
#default.clock.quantum-limit = 8192
|
||||
}
|
||||
|
||||
context.spa-libs = {
|
||||
support.* = support/libspa-support
|
||||
}
|
||||
|
||||
context.objects = [
|
||||
# An example clock reading from /dev/ptp0. Another option is to sync the
|
||||
# ptp clock to CLOCK_TAI and then set clock.id = tai.
|
||||
# If both device and ID are given and available, device takes precedence
|
||||
{ factory = spa-node-factory
|
||||
args = {
|
||||
factory.name = support.node.driver
|
||||
node.name = PTP0-Driver
|
||||
node.group = pipewire.ptp0
|
||||
# This driver should only be used for network nodes marked with group
|
||||
priority.driver = 0
|
||||
clock.name = "clock.system.ptp0"
|
||||
clock.device = "/dev/ptp0"
|
||||
clock.id = tai
|
||||
object.export = true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
context.modules = [
|
||||
{ name = libpipewire-module-rt
|
||||
args = {
|
||||
|
|
@ -30,6 +53,7 @@ context.modules = [
|
|||
}
|
||||
{ name = libpipewire-module-protocol-native }
|
||||
{ name = libpipewire-module-client-node }
|
||||
{ name = libpipewire-module-spa-node-factory }
|
||||
{ name = libpipewire-module-adapter }
|
||||
{ name = libpipewire-module-rtp-sap
|
||||
args = {
|
||||
|
|
@ -52,6 +76,7 @@ context.modules = [
|
|||
media.class = "Audio/Source"
|
||||
device.api = aes67
|
||||
sess.latency.msec = 10
|
||||
node.group = pipewire.ptp0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -97,6 +122,7 @@ context.modules = [
|
|||
device.api = aes67
|
||||
sess.sap.announce = true
|
||||
node.always-process = true
|
||||
node.group = pipewire.ptp0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -221,21 +221,6 @@ context.objects = [
|
|||
node.freewheel = true
|
||||
}
|
||||
}
|
||||
# An example clock reading from /dev/ptp0. Another option is to sync the
|
||||
# ptp clock to CLOCK_TAI and then set clock.id = tai.
|
||||
# If both device and ID are given and available, device takes precedence
|
||||
{ factory = spa-node-factory
|
||||
args = {
|
||||
factory.name = support.node.driver
|
||||
node.name = PTP0-Driver
|
||||
node.group = pipewire.ptp0
|
||||
# This driver should only be used for network nodes marked with group
|
||||
priority.driver = 0
|
||||
clock.name = "clock.system.ptp0"
|
||||
clock.device = "/dev/ptp0"
|
||||
clock.id = tai
|
||||
}
|
||||
}
|
||||
|
||||
# This creates a new Source node. It will have input ports
|
||||
# that you can link, to provide audio for this source.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue