-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bluetooth audio and cleanup audiovm configuration
Signed-off-by: Yuri Nesterov <[email protected]>
- Loading branch information
1 parent
4273001
commit 6ce095f
Showing
6 changed files
with
54 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{ prev, ... }: | ||
prev.pulseaudio.overrideAttrs (_prevAttrs: { | ||
# This patch enables the live switching of pulse tunnels to different sinks | ||
patches = _prevAttrs.patches ++ [ ./pulseaudio-remove-dont-move.patch ]; | ||
}) |
26 changes: 26 additions & 0 deletions
26
overlays/custom-packages/pulseaudio/pulseaudio-remove-dont-move.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/src/modules/module-tunnel-sink-new.c b/src/modules/module-tunnel-sink-new.c | ||
index 0b91ce266..ea41c50e2 100644 | ||
--- a/src/modules/module-tunnel-sink-new.c | ||
+++ b/src/modules/module-tunnel-sink-new.c | ||
@@ -417,7 +417,7 @@ static void on_sink_created(struct userdata *u) { | ||
if (pa_stream_connect_playback(u->stream, | ||
u->remote_sink_name, | ||
&bufferattr, | ||
- PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_DONT_MOVE | PA_STREAM_START_CORKED | PA_STREAM_AUTO_TIMING_UPDATE | PA_STREAM_ADJUST_LATENCY, | ||
+ PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_START_CORKED | PA_STREAM_AUTO_TIMING_UPDATE | PA_STREAM_ADJUST_LATENCY, | ||
NULL, | ||
NULL) < 0) { | ||
pa_log_error("Could not connect stream."); | ||
diff --git a/src/modules/module-tunnel-source-new.c b/src/modules/module-tunnel-source-new.c | ||
index d75fe9e6b..510d0c1aa 100644 | ||
--- a/src/modules/module-tunnel-source-new.c | ||
+++ b/src/modules/module-tunnel-source-new.c | ||
@@ -397,7 +397,7 @@ static void on_source_created(struct userdata *u) { | ||
if (pa_stream_connect_record(u->stream, | ||
u->remote_source_name, | ||
&bufferattr, | ||
- PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_DONT_MOVE|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_START_CORKED|PA_STREAM_ADJUST_LATENCY) < 0) { | ||
+ PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE|PA_STREAM_START_CORKED|PA_STREAM_ADJUST_LATENCY) < 0) { | ||
pa_log_debug("Could not create stream: %s", pa_strerror(pa_context_errno(u->context))); | ||
u->thread_mainloop_api->quit(u->thread_mainloop_api, TUNNEL_THREAD_FAILED_MAINLOOP); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters