modules: Rename module-rtkit to module-rt

I don't think PipeWire currently has a way to temporarily alias
module-rtkit to module-rt though, so right now this would break realtime
scheduling for people with modified configs that use module-rtkit.
This commit is contained in:
Robbert van der Helm 2022-01-15 20:54:15 +01:00
parent 6fc966f385
commit 2b73c86af5
15 changed files with 24 additions and 25 deletions

View file

@ -73,7 +73,7 @@ List of known modules:
- \subpage page_module_raop_discover
- \subpage page_module_roc_sink
- \subpage page_module_roc_source
- \subpage page_module_rtkit
- \subpage page_module_rt
- \subpage page_module_session_manager
- \subpage page_module_zeroconf_discover

View file

@ -323,7 +323,7 @@ rt_lib = cc.find_library('rt', required : false) # clock_gettime
dl_lib = cc.find_library('dl', required : false)
pthread_lib = dependency('threads')
dbus_dep = dependency('dbus-1', required : get_option('dbus'))
summary({'dbus (Bluetooth, rtkit, portal, pw-reserve)': dbus_dep.found()}, bool_yn: true, section: 'Misc dependencies')
summary({'dbus (Bluetooth, rt, portal, pw-reserve)': dbus_dep.found()}, bool_yn: true, section: 'Misc dependencies')
if dbus_dep.found()
cdata.set('HAVE_DBUS', 1)
endif

View file

@ -34,8 +34,8 @@ context.modules = [
# If ifexists is given, the module is ignored when it is not found.
# If nofail is given, module initialization failures are ignored.
#
# Uses RTKit to boost the data thread priority.
{ name = libpipewire-module-rtkit
# Uses realtime scheduling to boost the audio thread priorities
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -19,8 +19,8 @@ context.spa-libs = {
}
context.modules = [
# Uses RTKit to boost the data thread priority.
{ name = libpipewire-module-rtkit
# Uses realtime scheduling to boost the audio thread priorities
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -12,7 +12,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -12,7 +12,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -13,7 +13,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -12,7 +12,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -12,7 +12,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -12,7 +12,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -35,7 +35,7 @@ context.modules = [
#
#
# Boost the data thread priority.
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -19,7 +19,7 @@ context.spa-libs = {
}
context.modules = [
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -68,10 +68,10 @@ context.modules = [
# If nofail is given, module initialization failures are ignored.
#
# Use realtime scheduling to boost the audio thread priorities. This uses
# Uses realtime scheduling to boost the audio thread priorities. This uses
# RTKit if the user doesn't have permission to use regular realtime
# scheduling.
{ name = libpipewire-module-rtkit
{ name = libpipewire-module-rt
args = {
#nice.level = -11
#rt.prio = 88

View file

@ -20,7 +20,7 @@ module_sources = [
'module-protocol-pulse.c',
'module-protocol-simple.c',
'module-pulse-tunnel.c',
'module-rtkit.c',
'module-rt.c',
'module-raop-discover.c',
'module-session-manager.c',
'module-zeroconf-discover.c',
@ -136,9 +136,9 @@ pipewire_module_profiler = shared_library('pipewire-module-profiler',
dependencies : [spa_dep, mathlib, dl_lib, pipewire_dep],
)
build_module_rtkit = dbus_dep.found()
if build_module_rtkit
pipewire_module_rtkit = shared_library('pipewire-module-rtkit', [ 'module-rtkit.c' ],
build_module_rt = dbus_dep.found()
if build_module_rt
pipewire_module_rt = shared_library('pipewire-module-rt', [ 'module-rt.c' ],
include_directories : [configinc],
install : true,
install_dir : modules_install_dir,
@ -146,7 +146,7 @@ pipewire_module_rtkit = shared_library('pipewire-module-rtkit', [ 'module-rtkit.
dependencies : [dbus_dep, mathlib, dl_lib, pipewire_dep],
)
endif
summary({'rtkit': build_module_rtkit}, bool_yn: true, section: 'Optional Modules')
summary({'rt': build_module_rt}, bool_yn: true, section: 'Optional Modules')
build_module_portal = dbus_dep.found()
if build_module_portal

View file

@ -45,9 +45,9 @@
#include <pipewire/impl.h>
#include <pipewire/thread.h>
/** \page page_module_rtkit PipeWire Module: RTKit
/** \page page_module_rt PipeWire Module: RT
*
* The `rtkit` module uses the operating system's scheduler to enable realtime
* The `rt` module uses the operating system's scheduler to enable realtime
* scheduling for certain threads to assist with low latency audio processing.
* This requires `RLIMIT_RTPRIO` to be set to a value that's equal to this
* module's `rt.prio` parameter or higher. Most distros will come with some
@ -55,8 +55,7 @@
* up and DBus is available, then this module will fall back to using RTKit.
*/
// TODO: Rename from rtkit/RTKit to rt/RT
#define NAME "rtkit"
#define NAME "rt"
PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
#define PW_LOG_TOPIC_DEFAULT mod_topic