[pulseaudio-discuss] [PATCH] core: Don't let moving filter sources/sinks become the default source/sink

2017-05-08 Thread Georg Chini
When a virtual sink is loaded and there is only one sound card, then during a profile switch, all sinks and sources can become temporarily unavailable. In that situation, the virtual sink will become the default sink, although it is not connected to a master sink due to the move operation initiated

[pulseaudio-discuss] [PATCH] virtual sources and sinks: Don't double attach a sink input or source output on filter load

2017-05-08 Thread Georg Chini
When a filter is loaded and module-switch-on-connect is present, switch-on-connect will make the filter the default sink or source and move streams from the old default to the filter. This is done from the sink/source put hook, therefore streams are moved to the filter before the module init func

Re: [pulseaudio-discuss] [PATCH v5 5/7] bluetooth: Auto recover if profile is 'off'

2017-05-08 Thread Georg Chini
On 08.05.2017 12:09, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, May 8, 2017 at 11:53 AM, Tanu Kaskinen wrote: On Mon, 2017-05-08 at 11:26 +0300, Luiz Augusto von Dentz wrote: Hi Tanu, On Sat, May 6, 2017 at 7:20 PM, Tanu Kaskinen wrote: On Fri, 2017-05-05 at 16:41 +0300, Luiz Augusto v

Re: [pulseaudio-discuss] [PATCH v2] bluetooth: ofono: Use Acquire method if available

2017-05-08 Thread Georg Chini
On 08.05.2017 10:37, Luiz Augusto von Dentz wrote: From: Luiz Augusto von Dentz Attempt to use Acquire method if available falling back to Connect in case it fails. --- src/modules/bluetooth/backend-ofono.c | 59 +-- 1 file changed, 43 insertions(+), 16 deleti

[pulseaudio-discuss] [PATCH] virtual sources and sinks: Don't double attach a sink input or source output on filter load

2017-05-09 Thread Georg Chini
When a filter is loaded and module-switch-on-connect is present, switch-on-connect will make the filter the default sink or source and move streams from the old default to the filter. This is done from the sink/source put hook, therefore streams are moved to the filter before the module init func

Re: [pulseaudio-discuss] [PATCH] echo-cancel: Avoid segfaults due to invalid master sink or source

2017-05-09 Thread Georg Chini
On 07.05.2017 13:23, Tanu Kaskinen wrote: On Sun, 2017-05-07 at 12:37 +0200, Georg Chini wrote: On 07.05.2017 11:16, Tanu Kaskinen wrote: On Sat, 2017-05-06 at 22:15 +0200, Georg Chini wrote: On 06.05.2017 22:06, Tanu Kaskinen wrote: I made a strange interpretation, because what you really

[pulseaudio-discuss] [PATCH] sink/source: Don't update default sink/source before calling PA_CORE_HOOK_{SINK, SOURCE}_PUT

2017-05-10 Thread Georg Chini
In sink_put() and source_put(), pa_core_update_default_{sink,source}() was called before the PA_CORE_HOOK_{SINK,SOURCE}_PUT hook. Therefore module-switch-on-connect could not correctly determine the old default sink/source if no user default was set and a sink/source with higher priority than any

Re: [pulseaudio-discuss] [PATCH v2] bluetooth: ofono: Use Acquire method if available

2017-05-10 Thread Georg Chini
On 10.05.2017 15:08, Luiz Augusto von Dentz wrote: Hi Georg, On Mon, May 8, 2017 at 9:28 PM, Georg Chini wrote: On 08.05.2017 10:37, Luiz Augusto von Dentz wrote: From: Luiz Augusto von Dentz Attempt to use Acquire method if available falling back to Connect in case it fails. --- src

Re: [pulseaudio-discuss] [PATCH v5 5/7] bluetooth: Auto recover if profile is 'off'

2017-05-10 Thread Georg Chini
On 10.05.2017 15:17, Luiz Augusto von Dentz wrote: Hi Georg, On Mon, May 8, 2017 at 8:56 PM, Georg Chini wrote: On 08.05.2017 12:09, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, May 8, 2017 at 11:53 AM, Tanu Kaskinen wrote: On Mon, 2017-05-08 at 11:26 +0300, Luiz Augusto von Dentz wrote

Re: [pulseaudio-discuss] [PATCH v2] bluetooth: ofono: Use Acquire method if available

2017-05-10 Thread Georg Chini
On 10.05.2017 15:35, Georg Chini wrote: On 10.05.2017 15:08, Luiz Augusto von Dentz wrote: Hi Georg, On Mon, May 8, 2017 at 9:28 PM, Georg Chini wrote: On 08.05.2017 10:37, Luiz Augusto von Dentz wrote: From: Luiz Augusto von Dentz Attempt to use Acquire method if available falling back

Re: [pulseaudio-discuss] [PATCH v5 5/7] bluetooth: Auto recover if profile is 'off'

2017-05-11 Thread Georg Chini
On 11.05.2017 11:55, Tanu Kaskinen wrote: On Mon, 2017-05-08 at 13:09 +0300, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, May 8, 2017 at 11:53 AM, Tanu Kaskinen wrote: On Mon, 2017-05-08 at 11:26 +0300, Luiz Augusto von Dentz wrote: Hi Tanu, On Sat, May 6, 2017 at 7:20 PM, Tanu Kaskinen

[pulseaudio-discuss] [PATCH] bluez5-device: Set transport state correctly for AG role

2017-05-11 Thread Georg Chini
When connecting a headset via the native backend, the transport state was not updated correctly. This patch sets the state to PLAYING in transport_acquire() if necessary. --- src/modules/bluetooth/module-bluez5-device.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/module

Re: [pulseaudio-discuss] [PATCH] sink, source: update the default sink/source on port switches

2017-05-11 Thread Georg Chini
On 07.05.2017 11:12, Tanu Kaskinen wrote: When sinks are compared during the default sink selection, the active port's availability is inspected. Therefore, the default sink should be updated when the active port changes, because the new port may have different availability status than the old po

[pulseaudio-discuss] [PATCH] protocol-native: Add command to set or get module parameters

2017-05-14 Thread Georg Chini
This patch adds two new commands set_module_parameter and get_module_parameter to the native API. These commands allow for dynamic reconfiguration of a module during run time. A parameter string can be passed by set_module_parameter to a callback function set_parameter_callback() within the module.

[pulseaudio-discuss] [PATCH] virtual sources and sinks: Don't double attach a sink input or source output on filter load

2017-05-16 Thread Georg Chini
When a filter is loaded and module-switch-on-connect is present, switch-on-connect will make the filter the default sink or source and move streams from the old default to the filter. This is done from the sink/source put hook, therefore streams are moved to the filter before the module init func

Re: [pulseaudio-discuss] Detecting when data source disappears?

2017-05-17 Thread Georg Chini
On 17.05.2017 04:28, Steven Wawryk wrote: Hello, I've been reading up and experimenting on both the simple and async APIs. In one experiment, I used a CLI file that sets up a set of module-sine modules with output remapped by module-remap-sink modules to a stream fed to a module-null-sink mo

Re: [pulseaudio-discuss] Detecting when data source disappears?

2017-05-18 Thread Georg Chini
On 19.05.2017 06:02, Steven Wawryk wrote: I've been reading up and experimenting on both the simple and async APIs. In one experiment, I used a CLI file that sets up a set of module-sine modules with output remapped by module-remap-sink modules to a stream fed to a module-null-sink module.

[pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-05-21 Thread Georg Chini
This patch adds two new commands to the native protocol that enable direct communication with modules during run time. SEND_MODULE_COMMAND is used to send a command string to a module if no reply is needed. This can for example be employed to change parameters on the fly. SEND_MODULE_QUERY is simil

[pulseaudio-discuss] [PATCH 2/2] pactl, pacmd, cli-command: Add send-module-command and send-module-query commands

2017-05-21 Thread Georg Chini
This patch adds cli commands to pacmd and pactl to make use of the new SEND_MODULE_{COMMAND,QUERY} commands in protocol-native. Now module parameters can be changed and queried from the command line if the module implements the feature. There is no default syntax for the strings passed to a modu

[pulseaudio-discuss] [PATCH] stream-restore: Ignore sink-inputs/source-outputs that connect a filter to the master

2017-05-25 Thread Georg Chini
module-stream-restore primarily uses the role of a stream for restoring. The sink-inputs and source-outputs of filters all have role "filter", therefore currently all filters are treated equally and are restored to the same device and volume. This patch lets module-stream-restore ignore the stre

Re: [pulseaudio-discuss] Detecting when data source disappears?

2017-05-28 Thread Georg Chini
On 23.05.2017 03:44, Steven Wawryk wrote: Sorry about reposting. I botched up the subject line, messing up the threading. I've been reading up and experimenting on both the simple and async APIs. In one experiment, I used a CLI file that sets up a set of module-sine modules with output remap

Re: [pulseaudio-discuss] [PATCH] stream-restore: Ignore sink-inputs/source-outputs that connect a filter to the master

2017-06-01 Thread Georg Chini
On 31.05.2017 08:22, Arun Raghavan wrote: On Fri, 26 May 2017, at 01:10 AM, Georg Chini wrote: module-stream-restore primarily uses the role of a stream for restoring. The sink-inputs and source-outputs of filters all have role "filter", therefore currently all filters are treated e

Re: [pulseaudio-discuss] [PATCH] Revert "bluetooth: Auto recover if profile is 'off'"

2017-06-13 Thread Georg Chini
On 13.06.2017 18:02, Tanu Kaskinen wrote: This reverts commit 69c212f8c13794f70899d1fe6baec1b6e3c92032. Reasons: The original reason for the patch was to work around some issue regarding the profile not connecting immediately (sorry, I don't really know the details), but that issue was fixed la

Re: [pulseaudio-discuss] lots of [null-sink] memblock.c: Pool full

2017-07-03 Thread Georg Chini
On 27.06.2017 16:47, wellington wallace wrote: >Tanu wrote: > You can check with "pactl list source-outputs" how big the "buffer > latency" of your recording stream is. If it's small, then I don't think > the problem is in your application. Hi, thank you for your answer. Buffer latency and sourc

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-03 Thread Georg Chini
On 03.07.2017 17:51, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, Jul 3, 2017 at 5:05 PM, Tanu Kaskinen wrote: On Mon, 2017-07-03 at 16:09 +0300, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, Jun 19, 2017 at 4:29 PM, Tanu Kaskinen wrote: On Thu, 2017-05-25 at 11:36 +0300, Luiz Augusto v

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-04 Thread Georg Chini
On 04.07.2017 18:15, Tanu Kaskinen wrote: On Sun, 2017-05-21 at 14:56 +0200, Georg Chini wrote: This patch adds two new commands to the native protocol that enable direct communication with modules during run time. SEND_MODULE_COMMAND is used to send a command string to a module if no reply is

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-06 Thread Georg Chini
On 06.07.2017 15:25, Tanu Kaskinen wrote: On Wed, 2017-07-05 at 08:56 +0200, Georg Chini wrote: On 04.07.2017 18:15, Tanu Kaskinen wrote: On Sun, 2017-05-21 at 14:56 +0200, Georg Chini wrote: This patch adds two new commands to the native protocol that enable direct communication with modules

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-08 Thread Georg Chini
On 07.07.2017 16:12, Tanu Kaskinen wrote: On Thu, 2017-07-06 at 21:35 +0200, Georg Chini wrote: On 06.07.2017 15:25, Tanu Kaskinen wrote: On Wed, 2017-07-05 at 08:56 +0200, Georg Chini wrote: On 04.07.2017 18:15, Tanu Kaskinen wrote: On Sun, 2017-05-21 at 14:56 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH 1/2] protocol-native: Add commands for communication with modules

2017-07-10 Thread Georg Chini
On 10.07.2017 17:15, Tanu Kaskinen wrote: On Sat, 2017-07-08 at 22:40 +0200, Georg Chini wrote: On 07.07.2017 16:12, Tanu Kaskinen wrote: On Thu, 2017-07-06 at 21:35 +0200, Georg Chini wrote: Looks good but does not really answer my intended question. Let me ask differently: How should the

[pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-16 Thread Georg Chini
Currently pulseaudio crashes with an assertion in pa_rtpoll_item_new_asyncmsgq_read() if a loopback is applied to a tunnel-new sink/source because tunnel-{sink,source}-new do not set thread_info.rtpoll. Bug was reported on IRC. This patch fixes the problem by initializing thread_info.rtpoll prop

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-16 Thread Georg Chini
On 04.07.2017 15:38, Tanu Kaskinen wrote: On Mon, 2017-07-03 at 21:01 +0300, Luiz Augusto von Dentz wrote: Hi Georg, On Mon, Jul 3, 2017 at 8:32 PM, Georg Chini wrote: On 03.07.2017 17:51, Luiz Augusto von Dentz wrote: Hi Tanu, On Mon, Jul 3, 2017 at 5:05 PM, Tanu Kaskinen wrote: On Mon

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-17 Thread Georg Chini
On 17.07.2017 19:32, Tanu Kaskinen wrote: On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote: Currently pulseaudio crashes with an assertion in pa_rtpoll_item_new_asyncmsgq_read() if a loopback is applied to a tunnel-new sink/source because tunnel-{sink,source}-new do not set

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-18 Thread Georg Chini
On 17.07.2017 19:44, Tanu Kaskinen wrote: On Sun, 2017-07-16 at 14:35 +0200, Georg Chini wrote: On 04.07.2017 15:38, Tanu Kaskinen wrote: On Mon, 2017-07-03 at 21:01 +0300, Luiz Augusto von Dentz wrote: Hi Georg, On Mon, Jul 3, 2017 at 8:32 PM, Georg Chini wrote: On 03.07.2017 17:51, Luiz

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-20 Thread Georg Chini
On 20.07.2017 16:23, Tanu Kaskinen wrote: On Tue, 2017-07-18 at 20:16 +0200, Georg Chini wrote: On 17.07.2017 19:44, Tanu Kaskinen wrote: On Sun, 2017-07-16 at 14:35 +0200, Georg Chini wrote: On 04.07.2017 15:38, Tanu Kaskinen wrote: It looks racy indeed, so some check should be added as you

[pulseaudio-discuss] [PATCH 3/4] pactl, pacmd, cli-command: Add send-message command

2017-07-21 Thread Georg Chini
--- man/pactl.1.xml.in | 6 ++ man/pulse-cli-syntax.5.xml.in| 6 ++ shell-completion/bash/pulseaudio | 5 +++-- shell-completion/zsh/_pulseaudio | 2 ++ src/pulsecore/cli-command.c | 44 src/utils/pacmd.c|

[pulseaudio-discuss] [PATCH 4/4] core: add message handler

2017-07-21 Thread Georg Chini
This patch adds a small message handler to the core which enables clients to list available handlers via the list-handlers message. Command: pacmd send-message /core list-handlers pactl can be used with the same parameters. --- src/pulsecore/core.c | 37 + 1 fil

[pulseaudio-discuss] [PATCH 1/4] core: Add generic message interface

2017-07-21 Thread Georg Chini
This patch adds a new feature to the core which allows to exchange messages between objects. An object can register/unregister a message handler with pa_core_{register, unregister}_message_handler() while any other object can check if a handler is registered for some name with pa_core_find_message_

[pulseaudio-discuss] [PATCH 2/4] protocol-native: add message sending capability

2017-07-21 Thread Georg Chini
This patch adds the PA_COMMAND_SEND_OBJECT_MESSAGE command to protocol-native so that clients can use the messaging feature introduced in the previous patch. Sending messages can in effect replace the extension system for modules. The approach is more flexible than the extension interface because

Re: [pulseaudio-discuss] [PATCH v3 1/3] bluetooth: ofono: Use Acquire method if available

2017-07-21 Thread Georg Chini
On 21.07.2017 20:26, Tanu Kaskinen wrote: On Fri, 2017-07-21 at 20:58 +0300, Tanu Kaskinen wrote: On Thu, 2017-07-20 at 18:50 +0200, Georg Chini wrote: On 20.07.2017 16:23, Tanu Kaskinen wrote: On Tue, 2017-07-18 at 20:16 +0200, Georg Chini wrote: On 17.07.2017 19:44, Tanu Kaskinen wrote

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-22 Thread Georg Chini
On 20.07.2017 15:48, Tanu Kaskinen wrote: On Mon, 2017-07-17 at 19:53 +0200, Georg Chini wrote: On 17.07.2017 19:32, Tanu Kaskinen wrote: On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote: Currently pulseaudio crashes with an assertion in pa_rtpoll_item_new_asyncmsgq_read() if a loopback

[pulseaudio-discuss] [PATCH] bluez5-device: Set transport state correctly for AG role

2017-07-22 Thread Georg Chini
When connecting a headset via the native backend, the transport state was not updated correctly. This patch sets the state to PLAYING in transport_acquire() if necessary. --- src/modules/bluetooth/module-bluez5-device.c | 20 1 file changed, 20 insertions(+) diff --git a/src

Re: [pulseaudio-discuss] User-hostile obfuscation in PulseAudio Volume Control is a real pain.

2017-07-22 Thread Georg Chini
On 22.07.2017 11:37, Erik Christiansen wrote: Hi, Debian 9.0.0 comes with pulseaudio 10.0, so it's not likely that fixes for the problem are in the wild yet, I figure. Even when a Debian 9.0.0 box is connected to a HDMI monitor, PulseAudio Volume Control displays only 3 of its 5 tabs, supressin

Re: [pulseaudio-discuss] User-hostile obfuscation in PulseAudio Volume Control is a real pain.

2017-07-22 Thread Georg Chini
On 22.07.2017 11:59, Georg Chini wrote: On 22.07.2017 11:37, Erik Christiansen wrote: Hi, Debian 9.0.0 comes with pulseaudio 10.0, so it's not likely that fixes for the problem are in the wild yet, I figure. Even when a Debian 9.0.0 box is connected to a HDMI monitor, PulseAudio V

[pulseaudio-discuss] [PATCH 2/2] pactl: Add signal receiver to pactl

2017-07-24 Thread Georg Chini
--- src/utils/pactl.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/utils/pactl.c b/src/utils/pactl.c index e9bf005b..8ec76d53 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -1184,6 +1184,17 @@ static void context_subscribe_callback(pa_context *

[pulseaudio-discuss] [PATCH 1/2] subscription: Add signal receiving capability

2017-07-24 Thread Georg Chini
This patch extends the subscription API, so that signals sent from PulseAudio can be processed. A signal can be emitted using pa_signal_post(). A client can subscribe to signals by specifying PA_SUBSCRIPTION_MASK_SIGNAL as one of the subscription mask flags in pa_context_subscribe(). It then needs

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-07-24 Thread Georg Chini
On 24.07.2017 18:58, Tanu Kaskinen wrote: On Sat, 2017-07-22 at 10:21 +0200, Georg Chini wrote: On 20.07.2017 15:48, Tanu Kaskinen wrote: On Mon, 2017-07-17 at 19:53 +0200, Georg Chini wrote: On 17.07.2017 19:32, Tanu Kaskinen wrote: On Sun, 2017-07-16 at 11:42 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH 1/2] subscription: Add signal receiving capability

2017-07-25 Thread Georg Chini
On 26.07.2017 02:21, Tanu Kaskinen wrote: On Mon, 2017-07-24 at 14:19 +0200, Georg Chini wrote: This patch extends the subscription API, so that signals sent from PulseAudio can be processed. A signal can be emitted using pa_signal_post(). A client can subscribe to signals by specifying

Re: [pulseaudio-discuss] [PATCH 1/2] subscription: Add signal receiving capability

2017-07-26 Thread Georg Chini
On 26.07.2017 20:34, Tanu Kaskinen wrote: On Wed, 2017-07-26 at 08:33 +0200, Georg Chini wrote: On 26.07.2017 02:21, Tanu Kaskinen wrote: On Mon, 2017-07-24 at 14:19 +0200, Georg Chini wrote: This patch extends the subscription API, so that signals sent from PulseAudio can be processed. A

Re: [pulseaudio-discuss] [PATCH 1/4] core: Add generic message interface

2017-07-27 Thread Georg Chini
On 27.07.2017 07:17, Tanu Kaskinen wrote: On Fri, 2017-07-21 at 21:25 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to exchange messages between objects. An object can register/unregister a message handler with pa_core_{register, unregister}_message_handler

[pulseaudio-discuss] [PATCH 3/3] pactl: Add signal receiver

2017-08-04 Thread Georg Chini
--- man/pactl.1.xml.in | 5 + shell-completion/bash/pulseaudio | 3 ++- shell-completion/zsh/_pulseaudio | 1 + src/utils/pactl.c| 25 - 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/man/pactl.1.xml.in b/man/pactl.1.xml

[pulseaudio-discuss] [PATCH 2/3] protocol-native: Add signal receiving capability

2017-08-04 Thread Georg Chini
This patch extends the client subscription API, so that signals sent from PulseAudio can be processed. Within PulseAudio, a signal can be emitted using pa_signal_post(). The interface can be used to notify the client of events that are not covered by the subscription API (for example a button press

[pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-04 Thread Georg Chini
This patch adds a new feature to the core which allows to exchange messages between objects. An object can register/unregister a message handler with pa_core_message_handler_{register, unregister}() while any other object can send a message to the handler using the pa_core_send_message() function.

[pulseaudio-discuss] [PATCH 2/3] pactl, pacmd, cli-command: Add send-message command

2017-08-04 Thread Georg Chini
--- man/pactl.1.xml.in | 6 ++ man/pulse-cli-syntax.5.xml.in| 6 ++ shell-completion/bash/pulseaudio | 4 ++-- shell-completion/zsh/_pulseaudio | 2 ++ src/pulsecore/cli-command.c | 44 src/utils/pacmd.c|

[pulseaudio-discuss] [PATCH 3/3] core: add message handler

2017-08-04 Thread Georg Chini
This patch adds a small message handler to the core which enables clients to list available handlers via the list-handlers message. Command: pacmd send-message /core list-handlers pactl can be used with the same parameters. With list-all-handlers private handlers will also be listed. --- src/pulse

[pulseaudio-discuss] [PATCH 1/3] protocol-native: add message sending capability

2017-08-04 Thread Georg Chini
This patch adds the PA_COMMAND_SEND_OBJECT_MESSAGE command to protocol-native so that clients can use the messaging feature introduced in patch "core: add generic message interface". Sending messages can in effect replace the extension system for modules. The approach is more flexible than the ext

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-05 Thread Georg Chini
On 05.08.2017 13:37, Tanu Kaskinen wrote: On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to exchange messages between objects. An object can register/unregister a message handler with pa_core_message_handler_{register, unregister

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-05 Thread Georg Chini
On 05.08.2017 13:37, Tanu Kaskinen wrote: On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to exchange messages between objects. An object can register/unregister a message handler with pa_core_message_handler_{register, unregister

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-06 Thread Georg Chini
On 06.08.2017 07:26, Tanu Kaskinen wrote: On Sat, 2017-08-05 at 21:32 +0200, Georg Chini wrote: On 05.08.2017 13:37, Tanu Kaskinen wrote: On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to exchange messages between objects. An

Re: [pulseaudio-discuss] [PATCH] device-port, switch-on-port-available: fix automatic profile changing when current profile is off

2017-08-07 Thread Georg Chini
On 31.07.2017 08:42, Tanu Kaskinen wrote: module-switch-on-port-available didn't do anything when a port changes its status if the card didn't have any sinks or sources. This was to avoid bad things during card initialization, but the if condition also prevented any profile switches away from the

Re: [pulseaudio-discuss] [PATCH] device-port, switch-on-port-available: fix automatic profile changing when current profile is off

2017-08-07 Thread Georg Chini
On 31.07.2017 08:42, Tanu Kaskinen wrote: module-switch-on-port-available didn't do anything when a port changes its status if the card didn't have any sinks or sources. This was to avoid bad things during card initialization, but the if condition also prevented any profile switches away from the

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-08 Thread Georg Chini
On 06.08.2017 15:29, Georg Chini wrote: On 06.08.2017 07:26, Tanu Kaskinen wrote: On Sat, 2017-08-05 at 21:32 +0200, Georg Chini wrote: On 05.08.2017 13:37, Tanu Kaskinen wrote: On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to

Re: [pulseaudio-discuss] Switching bluetooth profile internally

2017-08-11 Thread Georg Chini
On 11.08.2017 10:09, Sathish Narasimman wrote: Hi, I want to switch the bluetooth profile using a dbus signal. I was successful to send the dbus signal and process it in pulseaudio. But unable to figure out how to use set_profile within PA. Please help to understand the pulseaudio. I need to

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with module-loopback

2017-08-12 Thread Georg Chini
On 24.07.2017 21:35, Georg Chini wrote: On 24.07.2017 18:58, Tanu Kaskinen wrote: On Sat, 2017-07-22 at 10:21 +0200, Georg Chini wrote: On 20.07.2017 15:48, Tanu Kaskinen wrote: On Mon, 2017-07-17 at 19:53 +0200, Georg Chini wrote: On 17.07.2017 19:32, Tanu Kaskinen wrote: On Sun, 2017-07

[pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with loopback or combine-sink

2017-08-12 Thread Georg Chini
Currently pulseaudio crashes with an assertion in pa_rtpoll_item_new_asyncmsgq_read() or pa_rtpoll_item_new_asyncmsgq_write() if a loopback is applied to a tunnel-new sink or source, because tunnel-{sink,source}-new do not set thread_info.rtpoll. The same applies to module-combine-sink and module-

Re: [pulseaudio-discuss] [PATCH 1/3] core: add generic message interface

2017-08-16 Thread Georg Chini
On 16.08.2017 16:56, Tanu Kaskinen wrote: On Sun, 2017-08-06 at 15:29 +0200, Georg Chini wrote: On 06.08.2017 07:26, Tanu Kaskinen wrote: On Sat, 2017-08-05 at 21:32 +0200, Georg Chini wrote: On 05.08.2017 13:37, Tanu Kaskinen wrote: On Fri, 2017-08-04 at 15:37 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH] tunnel-{sink, source}-new: Fix assertion when used with loopback or combine-sink

2017-08-16 Thread Georg Chini
On 17.08.2017 07:53, Tanu Kaskinen wrote: On Sat, 2017-08-12 at 22:29 +0200, Georg Chini wrote: Currently pulseaudio crashes with an assertion in pa_rtpoll_item_new_asyncmsgq_read() or pa_rtpoll_item_new_asyncmsgq_write() if a loopback is applied to a tunnel-new sink or source, because tunnel

[pulseaudio-discuss] [PATCH 5/6] protocol-native: Add signal receiving capability

2017-08-19 Thread Georg Chini
This patch extends the client subscription API, so that signals sent from PulseAudio can be processed. Within PulseAudio, a signal can be emitted using pa_signal_post(). The interface can be used to notify the client of events that are not covered by the subscription API (for example a button press

[pulseaudio-discuss] [PATCH 2/6] protocol-native: add message sending capability

2017-08-19 Thread Georg Chini
This patch adds the PA_COMMAND_SEND_OBJECT_MESSAGE command to protocol-native so that clients can use the messaging feature introduced in the previous patch. Sending messages can in effect replace the extension system for modules. The approach is more flexible than the extension interface because

[pulseaudio-discuss] [PATCH 3/6] pactl, pacmd, cli-command: Add send-message command

2017-08-19 Thread Georg Chini
--- man/pactl.1.xml.in | 6 + man/pulse-cli-syntax.5.xml.in| 6 + shell-completion/bash/pulseaudio | 5 +++-- shell-completion/zsh/_pulseaudio | 2 ++ src/pulsecore/cli-command.c | 47 src/utils/pacmd.c| 1

[pulseaudio-discuss] [PATCH 6/6] pactl: Add signal receiver

2017-08-19 Thread Georg Chini
--- man/pactl.1.xml.in | 5 + shell-completion/bash/pulseaudio | 2 +- shell-completion/zsh/_pulseaudio | 1 + src/utils/pactl.c| 23 +++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/man/pactl.1.xml.in b/man/pactl.1.xml.in

[pulseaudio-discuss] [PATCH 4/6] core: add message handler

2017-08-19 Thread Georg Chini
This patch adds a small message handler to the core which enables clients to list available handlers via the list-handlers message. Command: pacmd send-message /core list-handlers pactl can be used with the same parameters. --- src/pulsecore/core-messages.c | 21 + src/pulsecor

[pulseaudio-discuss] [PATCH 1/6] core: add simple message interface

2017-08-19 Thread Georg Chini
This patch adds a new feature to the core which allows to send messages to objects. An object can register/unregister a message handler with pa_core_message_handler_{register, unregister}() while a message can be sent to the handler using the pa_core_send_message() function. A message has 4 argumen

Re: [pulseaudio-discuss] [PATCH] core: ignore devices that are not linked when choosing the default sink or source

2017-08-30 Thread Georg Chini
On 30.08.2017 20:51, Tanu Kaskinen wrote: Sources should probably be added to pa_core.sources in pa_source_put(), but currently they're added in pa_source_new(). A lot of stuff can happen between the pa_source_new() and pa_source_put() calls, and it has happened that the default source was update

[pulseaudio-discuss] [PATCH] sink/source: lower priority of phone sinks/sources

2017-09-01 Thread Georg Chini
When a phone is connected via bluetooth and switches to HFP, the sinks and sources will have higher priority than the built-in devices. Therefore they are chosen as default and module-bluetooth-policy will incorrectly insert loopback modules that loop the phone back to itself. This patch fixes the

Re: [pulseaudio-discuss] [PATCH] sink/source: lower priority of phone sinks/sources

2017-09-02 Thread Georg Chini
On 02.09.2017 13:12, Tanu Kaskinen wrote: On Fri, 2017-09-01 at 16:21 +0200, Georg Chini wrote: When a phone is connected via bluetooth and switches to HFP, the sinks and sources will have higher priority than the built-in devices. Therefore they are chosen as default and module-bluetooth

Re: [pulseaudio-discuss] [PATCH] bluetooth: recognize another HSP HS UUID

2017-09-02 Thread Georg Chini
On 02.09.2017 14:44, Tanu Kaskinen wrote: There are actually two HSP HS UUIDs. My theory is that the second one was added, because someone was not happy with the old UUID being used for identifying two different things (the HSP profile as a whole, and the HS role within the HSP profile). Some hea

[pulseaudio-discuss] [PATCH] bluez5-device: lower sink/source priority for Audio gateway or a2dp source

2017-09-02 Thread Georg Chini
When a phone is connected via bluetooth and switches to HFP, the sinks and sources will have higher priority than the built-in devices. Therefore they are chosen as default and module-bluetooth-policy will incorrectly insert loopback modules that loop the phone back to itself. This patch fixes the

Re: [pulseaudio-discuss] Horribly choppy sound during bluetooth a2dp playback

2017-09-04 Thread Georg Chini
On 04.09.2017 00:23, Vladimir Lebedev wrote: Hi All, I'm trying to create bluetooth speaker from my nanopi neo plus 2 SBC (running Ubuntu 16.04.3 LTS with Linux 4.11.2 provided by FriendlyElec). (With some pain) I've managed to make all native linux clients to use pulseaudio server on nanopi

Re: [pulseaudio-discuss] [Patch] RAOP: fix audio synchronisation, take two

2017-09-09 Thread Georg Chini
On 09.09.2017 19:16, Tanu Kaskinen wrote: On Sat, 2017-09-09 at 18:07 +0200, Colin Leroy wrote: On 09 September 2017 at 18h00, Tanu Kaskinen wrote: Hi Tanu, Your mail's empty :) Well I definitely wrote things, but Evolution did act strange while composing the message, and my "sent" folder con

Re: [pulseaudio-discuss] [PATCH] bluez: Don't autodetect MTU by default

2017-09-12 Thread Georg Chini
On 13.09.2017 05:54, Arun Raghavan wrote: This breaks a lot of headsets, so disabling by default. Can be re-enabled in configuration for specific hardware where it is deemed necessary. Also added some debug logging to be able to examine what MTU size is reported by the device. BugLink: https://

Re: [pulseaudio-discuss] [PATCH] bluez: Don't autodetect MTU by default

2017-09-12 Thread Georg Chini
On 13.09.2017 07:01, Arun Raghavan wrote: On Wed, 13 Sep 2017, at 09:56 AM, Georg Chini wrote: On 13.09.2017 05:54, Arun Raghavan wrote: This breaks a lot of headsets, so disabling by default. Can be re-enabled in configuration for specific hardware where it is deemed necessary. Also added

Re: [pulseaudio-discuss] [PATCH] Fix: Distorted audio during Bluetooth SCO HFP/HSP playback

2017-09-15 Thread Georg Chini
On 14.09.2017 18:47, Tanu Kaskinen wrote: On Wed, 2017-09-13 at 09:31 +0530, Arun Raghavan wrote: On Tue, 31 Jan 2017, at 06:48 PM, Tanu Kaskinen wrote: On Mon, 2017-01-30 at 17:28 +0100, Georg Chini wrote: On 27.01.2017 21:40, Georg Chini wrote: On 03.01.2017 18:17, Tanu Kaskinen wrote: On

Re: [pulseaudio-discuss] Bose QC35 HFP/HSP MTU size

2017-09-16 Thread Georg Chini
On 14.09.2017 16:00, Luiz Augusto von Dentz wrote: Hi Sebastian, On Thu, Sep 14, 2017 at 2:44 PM, Sebastian Reichel wrote: Hi, Bose QC35 are affected by the attached upgrade notice from Pulseaudio 11. The workaround fixes the problem. This doesn't make much sense when the problem below refer

Re: [pulseaudio-discuss] [PATCH 1/8] bluetooth: ofono: Fix Coverity warning

2017-09-19 Thread Georg Chini
On 06.09.2017 14:23, Peter Meerwald-Stadler wrote: Dereference before null check Coverity ID: #1454315 Signed-off-by: Peter Meerwald-Stadler --- src/modules/bluetooth/backend-ofono.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/backend-ofono.

Re: [pulseaudio-discuss] [PATCH 0/8] some Coverity and gcc-7 fixes

2017-09-19 Thread Georg Chini
On 06.09.2017 14:23, Peter Meerwald-Stadler wrote: some minor fixes addressing and silencing recent Coverity and gcc-7 warnings Peter Meerwald-Stadler (8): bluetooth: ofono: Fix Coverity warning json-test: Fix Coverity warning bluetooth: bluez5: Fix Coverity warning raop: Fix gcc-7 w

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-20 Thread Georg Chini
On 20.09.2017 01:27, James Bottomley wrote: This is round 4 of the initial bluetooth: separate HSP and HFP patch. It includes the review feedback and a global on/off switch just in case there's a problem headset with dual HFP/HSP but non-working HFP.  This one now includes a proper rfcomm nego

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-20 Thread Georg Chini
On 20.09.2017 20:10, James Bottomley wrote: On Wed, 2017-09-20 at 18:11 +0200, Georg Chini wrote: On 20.09.2017 01:27, James Bottomley wrote: This is round 4 of the initial bluetooth: separate HSP and HFP patch.   It includes the review feedback and a global on/off switch just in case there&#

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-20 Thread Georg Chini
On 20.09.2017 23:12, James Bottomley wrote: On Wed, 2017-09-20 at 20:41 +0200, Georg Chini wrote: On 20.09.2017 20:10, James Bottomley wrote: On Wed, 2017-09-20 at 18:11 +0200, Georg Chini wrote: On 20.09.2017 01:27, James Bottomley wrote: This is round 4 of the initial bluetooth: separate

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-20 Thread Georg Chini
On 21.09.2017 06:45, James Bottomley wrote: On Thu, 2017-09-21 at 06:27 +0200, Georg Chini wrote: On 20.09.2017 23:12, James Bottomley wrote: On Wed, 2017-09-20 at 20:41 +0200, Georg Chini wrote: On 20.09.2017 20:10, James Bottomley wrote: On Wed, 2017-09-20 at 18:11 +0200, Georg Chini wrote

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-21 Thread Georg Chini
On 21.09.2017 16:47, James Bottomley wrote: On Thu, 2017-09-21 at 17:28 +0300, Tanu Kaskinen wrote: On Thu, 2017-09-21 at 08:13 +0200, Georg Chini wrote: On 21.09.2017 06:45, James Bottomley wrote: On Thu, 2017-09-21 at 06:27 +0200, Georg Chini wrote: On 20.09.2017 23:12, James Bottomley

Re: [pulseaudio-discuss] [PATCH v4 0/3] use bluetooth HFP in pulseaudio when available

2017-09-21 Thread Georg Chini
On 21.09.2017 19:08, James Bottomley wrote: On Thu, 2017-09-21 at 19:15 +0300, Tanu Kaskinen wrote: On Thu, 2017-09-21 at 17:47 +0200, Georg Chini wrote: On 21.09.2017 16:47, James Bottomley wrote: On Thu, 2017-09-21 at 17:28 +0300, Tanu Kaskinen wrote: I think we should use the native

Re: [pulseaudio-discuss] [PATCH 1/6] core: add simple message interface

2017-09-23 Thread Georg Chini
On 23.09.2017 13:59, Tanu Kaskinen wrote: On Sat, 2017-08-19 at 17:48 +0200, Georg Chini wrote: This patch adds a new feature to the core which allows to send messages to objects. An object can register/unregister a message handler with pa_core_message_handler_{register, unregister}() while I

[pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-20 Thread Georg Chini
Hello, after upgrading to Pulseaudio 4.0 my bluetooth devices (headset, 2 mobiles) are no longer discovered. I am running Debian unstable on an amd64 CPU, the new Debian package was released a few days ago. I also filed a bug with Debian but did not receive a reply so far. To make sure this is

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-26 Thread Georg Chini
Hi Mikel, On 24.06.2013 11:22, Mikel Astiz wrote: This seems a successful connection of HSP/HFP. The module is however not loaded because the overall connection procedure (org.bluez.Audio) is still ongoing, and therefore the load of the module is postponed. D: [lt-pulseaudio] bluetooth-util.c:

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-26 Thread Georg Chini
Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 3:27 PM, Georg Chini wrote: Hi Mikel, On 24.06.2013 11:22, Mikel Astiz wrote: This seems a successful connection of HSP/HFP. The module is however not loaded because the overall connection procedure

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-27 Thread Georg Chini
On 27.06.2013 08:22, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 8:45 PM, Georg Chini wrote: Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 3:27 PM, Georg Chini wrote: Later on I decided to keep the modules around and just move them to the

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-27 Thread Georg Chini
On 27.06.2013 13:31, Georg Chini wrote: On 27.06.2013 08:22, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 8:45 PM, Georg Chini wrote: Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 3:27 PM, Georg Chini wrote: Later on I decided to keep the

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-27 Thread Georg Chini
On 27.06.2013 14:00, Georg Chini wrote: On 27.06.2013 13:31, Georg Chini wrote: On 27.06.2013 08:22, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 8:45 PM, Georg Chini wrote: Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 3:27 PM, Georg Chini

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-27 Thread Georg Chini
On 28.06.2013 08:23, Mikel Astiz wrote: Hi Georg, On Thu, Jun 27, 2013 at 1:31 PM, Georg Chini wrote: On 27.06.2013 08:22, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 8:45 PM, Georg Chini wrote: Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013

Re: [pulseaudio-discuss] Bluetooth devices no longer detected after upgrade from 2.0 to 4.0

2013-06-29 Thread Georg Chini
On 28.06.2013 08:23, Mikel Astiz wrote: Hi Georg, On Thu, Jun 27, 2013 at 1:31 PM, Georg Chini wrote: On 27.06.2013 08:22, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013 at 8:45 PM, Georg Chini wrote: Hi Mikel, On 26.06.2013 16:54, Mikel Astiz wrote: Hi Georg, On Wed, Jun 26, 2013

<    5   6   7   8   9   10   11   12   >