Re: [pulseaudio-discuss] [PATCH 00/56] Refactor of BlueZ 5 support

2013-07-13 Thread Mikel Astiz
Hi João Paulo, On Fri, Jul 12, 2013 at 8:06 PM, wrote: > From: João Paulo Rechi Vita > > This series reverts the previous support for BlueZ 5, renames the "bluetooth" > portion of the old modules name for "bluez4", creates a new set of modules for > BlueZ 5 supporting A2DP sink and source roles

Re: [pulseaudio-discuss] [PATCH v2 18/22] bluetooth: Avoid suspend-on-idle for HFGW

2013-07-09 Thread Mikel Astiz
Hi, On Fri, Aug 31, 2012 at 12:51 PM, Mikel Astiz wrote: > From: Mikel Astiz > > The hfgw card profile (headset role of the HFP Bluetooth profile) has > some particularities that make it unsuitable for idle-timeout-based > suspension. > > The motivation starts with the fac

Re: [pulseaudio-discuss] [PATCH v0] loopback: Fix cork state not updated after move

2013-07-08 Thread Mikel Astiz
Hi Tanu, On Mon, Jul 8, 2013 at 3:06 PM, Tanu Kaskinen wrote: > On Mon, 2013-07-01 at 10:27 +0200, Mikel Astiz wrote: >> From: Mikel Astiz >> >> The source output and sink inputs should be corked if the corresponding >> sink/source is suspended, as handled during

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

2013-07-01 Thread Mikel Astiz
Hi Georg, On Sun, Jun 30, 2013 at 2:48 PM, Georg Chini wrote: > Hi again, > > > On 30.06.2013 12:57, Mikel Astiz wrote: >> >> Hi Georg, >> >> On Sun, Jun 30, 2013 at 11:00 AM, Georg Chini wrote: >>> >>> On 30.06.2013 10:28, Mikel Astiz wro

[pulseaudio-discuss] [PATCH v0] loopback: Fix cork state not updated after move

2013-07-01 Thread Mikel Astiz
From: Mikel Astiz The source output and sink inputs should be corked if the corresponding sink/source is suspended, as handled during module initialization. This also needs to be handled during stream move, because the suspend state of the destination sink/source might be different to the

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

2013-06-30 Thread Mikel Astiz
Hi Georg, On Sun, Jun 30, 2013 at 11:00 AM, Georg Chini wrote: > On 30.06.2013 10:28, Mikel Astiz wrote: >> >> Hi Georg, >> >> On Sat, Jun 29, 2013 at 9:39 PM, Georg Chini wrote: >>> >>> On 28.06.2013 08:23, Mikel Astiz wrote: >>>> >&g

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

2013-06-30 Thread Mikel Astiz
Hi Georg, On Sat, Jun 29, 2013 at 9:39 PM, Georg Chini wrote: > 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: >>>> >&g

[pulseaudio-discuss] [RFC v0] bluetooth: Send time-based output audio

2013-06-28 Thread Mikel Astiz
From: Mikel Astiz The previous implementation to send 2 packets first and then try to account the received packets vs sent packets seems to generate some issues in several devices. The alternative is to always do it time-based. --- This is WIP and thus not intended to be merged. I'm submi

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

2013-06-27 Thread Mikel Astiz
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.201

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

2013-06-27 Thread Mikel Astiz
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: >>> >>> Hi Mikel, >>> >>

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

2013-06-26 Thread Mikel Astiz
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 (org.bluez.A

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

2013-06-24 Thread Mikel Astiz
Hi Georg, On Thu, Jun 20, 2013 at 5:02 PM, Georg Chini wrote: > 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 b

Re: [pulseaudio-discuss] Bluetooth + HSP + Raspberry?

2013-06-14 Thread Mikel Astiz
f you reached the point where the profile connects, you're basically done with oFono. I would strongly encourage to upgrade to a more recent version of PA. Some of the fixes after 2.1 were specifically addressing this Bluetooth role. Cheers, Mikel > > > - bram > > On Fri, Jun

Re: [pulseaudio-discuss] Bluetooth + HSP + Raspberry?

2013-06-14 Thread Mikel Astiz
Hi Bram, On Fri, Jun 14, 2013 at 10:20 AM, Bram de Jong wrote: > Hi Mikel, > >> As Tanu mentioned, this can be done calling >> HandsfreeGateway.Connect(). You can do this in command line or using a >> tool such as d-feet. People tend to think that Audio.Connect() >> connects all audio profiles bu

Re: [pulseaudio-discuss] Bluetooth + HSP + Raspberry?

2013-06-13 Thread Mikel Astiz
Hi Bram, On Thu, Jun 13, 2013 at 3:59 PM, Bram de Jong wrote: > On Thu, Jun 13, 2013 at 1:39 PM, Tanu Kaskinen > wrote: >>> >>> What I want to do is use the Raspberry as a speaker only using the >>> low-latency HSP (which you cann HFGW) bluetooth profile. This should >>> mainly be for making cal

Re: [pulseaudio-discuss] [BUG] Using bluez 5.5 & pulseaudio a bluetooth headset cannot be used as a recording device.

2013-06-10 Thread Mikel Astiz
Hi Alex, On Sat, Jun 8, 2013 at 8:45 PM, Alexander Winnig wrote: > So I managed to install pulseaudio 4.0 including sbc, speex, bluez and d-bus > and I encounter the same problem. I installed D-feet to monitor dbus. This > didn't really help move things forward as there's only listed what I alrea

Re: [pulseaudio-discuss] [BUG] Using bluez 5.5 & pulseaudio a bluetooth headset cannot be used as a recording device.

2013-06-06 Thread Mikel Astiz
Hi Alex, On Wed, Jun 5, 2013 at 11:15 AM, Alexander Winnig wrote: > Thanks. > > Hi Alex, > > On Tue, Jun 4, 2013 at 9:45 PM, Alexander Winnig > wrote: > > Thanks Mikel. > > Am 04.06.2013 14:02, schrieb Mikel Astiz: > > > parecord -r --device=bluez_source.

Re: [pulseaudio-discuss] [BUG] Using bluez 5.5 & pulseaudio a bluetooth headset cannot be used as a recording device.

2013-06-04 Thread Mikel Astiz
Hi Alex, On Tue, Jun 4, 2013 at 9:45 PM, Alexander Winnig wrote: > Thanks Mikel. > > Am 04.06.2013 14:02, schrieb Mikel Astiz: > > > parecord -r --device=bluez_source.00_1A_7D_11_C0_66 mm.wav > > in my case. Creates a crackling sound in the earpiece and a mm.wav of zer

Re: [pulseaudio-discuss] [BUG] Using bluez 5.5 & pulseaudio a bluetooth headset cannot be used as a recording device.

2013-06-04 Thread Mikel Astiz
Hi Alex, On Tue, Jun 4, 2013 at 1:10 PM, Alexander Winnig wrote: >>> I re-copied a new wheezy-image on my sd-card. Now pactl list sources >>> short shows the bluez-device. But still, an empty file is the output. >> >> How exactly did you record the file? Did you ensure that you're >> recording fr

Re: [pulseaudio-discuss] [PATCH v1] bluetooth: Dynamically change outgoing MTU

2013-06-04 Thread Mikel Astiz
Hi, On Wed, Mar 13, 2013 at 9:20 AM, Tanu Kaskinen wrote: > On Tue, 2013-03-12 at 14:02 +0100, Mikel Astiz wrote: >> On Tue, Mar 12, 2013 at 1:42 PM, Tanu Kaskinen wrote: >> > If the MTU is initially set to 128, it sounds logical that it may be >> > reconfigured to

Re: [pulseaudio-discuss] Connecting a phone over bluetooth

2013-05-22 Thread Mikel Astiz
Hi David, On Wed, May 22, 2013 at 4:06 PM, David Henningsson wrote: > On 05/22/2013 03:35 PM, Mikel Astiz wrote: >> >> Hi David, >> >> On Wed, May 22, 2013 at 12:00 PM, David Henningsson >> wrote: >>> >>> On 05/21/2013 05:18 PM, Mikel Astiz wr

Re: [pulseaudio-discuss] Connecting a phone over bluetooth (was: [PATCH v0 0/2] bluetooth: Port->profile association)

2013-05-22 Thread Mikel Astiz
Hi David, On Wed, May 22, 2013 at 12:00 PM, David Henningsson wrote: > On 05/21/2013 05:18 PM, Mikel Astiz wrote: >> >> Hi David, >> >> On Tue, May 21, 2013 at 3:55 PM, David Henningsson >> wrote: >>> >>> On 05/21/2013 02:58 PM, Mikel Astiz wr

Re: [pulseaudio-discuss] [PATCH v0 0/2] bluetooth: Port->profile association

2013-05-21 Thread Mikel Astiz
Hi David, On Tue, May 21, 2013 at 3:55 PM, David Henningsson wrote: > On 05/21/2013 02:58 PM, Mikel Astiz wrote: >> >> Hi David, >> >> On Tue, May 21, 2013 at 2:37 PM, David Henningsson >> wrote: >>> >>> On 05/20/2013 11:48 AM,

Re: [pulseaudio-discuss] [PATCH v0 0/2] bluetooth: Port->profile association

2013-05-21 Thread Mikel Astiz
Hi David, On Tue, May 21, 2013 at 2:37 PM, David Henningsson wrote: > On 05/20/2013 11:48 AM, Mikel Astiz wrote: >> >> From: Mikel Astiz >> >> These patches address a regression existing in the master branch, which >> specially affects the gnome UI. More info i

[pulseaudio-discuss] [PATCH v0 2/2] bluetooth: Fix missing port->profile association

2013-05-20 Thread Mikel Astiz
From: Mikel Astiz Commit 17b3cb954b179392e80b0a46d8f2ba4693aec386 merged Bluetooth ports into two ports (one for input, one for output) but the association between ports and profiles was lost. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=64713 --- src/modules/bluetooth/module

[pulseaudio-discuss] [PATCH v0 1/2] bluetooth: Create ports before card profiles

2013-05-20 Thread Mikel Astiz
From: Mikel Astiz Both operations are currently independent and their order can therefore be swapped. --- src/modules/bluetooth/module-bluetooth-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules

[pulseaudio-discuss] [PATCH v0 0/2] bluetooth: Port->profile association

2013-05-20 Thread Mikel Astiz
From: Mikel Astiz These patches address a regression existing in the master branch, which specially affects the gnome UI. More info in https://bugs.freedesktop.org/show_bug.cgi?id=64713. The proposed solution is fairly simple but triggers the question whether something like

[pulseaudio-discuss] [RFC next v0 11/11] bluetooth: Use bluez_backend_private for endpoint userdata

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz The endpoint is backend-specific and therefore it's logically more appropriate to use the bluez_backend_private struct as the userdata pointer in all endpoint callbacks. --- src/modules/bluetooth/bluetooth-util.c | 39 ++ 1 file change

[pulseaudio-discuss] [RFC next v0 10/11] bluetooth: Add speaker gain callback to backend

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz --- src/modules/bluetooth/bluetooth-util.c | 20 +--- src/modules/bluetooth/bluetooth-util.h | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 19072d0

[pulseaudio-discuss] [RFC next v0 09/11] bluetooth: Add microphone gain callback to backend

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz --- src/modules/bluetooth/bluetooth-util.c | 20 +--- src/modules/bluetooth/bluetooth-util.h | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index d89c7a7

[pulseaudio-discuss] [RFC next v0 08/11] bluetooth: Add transport acquire/release callbacks to backend

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz Transport acquisition and release are backend-dependant so add the necessary callbacks to struct pa_bluetooth_backend. --- src/modules/bluetooth/bluetooth-util.c | 28 src/modules/bluetooth/bluetooth-util.h | 5 + 2 files changed, 33

[pulseaudio-discuss] [RFC next v0 07/11] bluetooth: Add device removed callback to backend

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz This callback notifies the backend that the core needs to destroy the transport. --- src/modules/bluetooth/bluetooth-util.c | 12 ++-- src/modules/bluetooth/bluetooth-util.h | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth

[pulseaudio-discuss] [RFC next v0 06/11] bluetooth: Split BlueZ backend data to separate structs

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz bluetooth-util internally implements a backend for BlueZ Media API but it's nevertheless convenient to have the backend-specific data split into separated data structures. --- src/modules/bluetooth/bluetooth-util.c | 108 +++-- src/modules/blue

[pulseaudio-discuss] [RFC next v0 05/11] bluetooth: Avoid using transport path in traces

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz Replace the transport path with the device path and the profile id, which should be more relevant and also backend-agnostic. --- src/modules/bluetooth/bluetooth-util.c | 9 + src/modules/bluetooth/module-bluetooth-device.c | 11 +++ 2 files changed

[pulseaudio-discuss] [RFC next v0 04/11] bluetooth: Add embedded BlueZ backend inside bluetooth-util

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz BlueZ 5 supports external profiles, meaning that certain Bluetooth profiles (e.g. HFP/HSP) are completely handled outside BlueZ. However, some other profiles (i.e. A2DP) are still implemented inside BlueZ, so let's keep a BlueZ-specific backend inside bluetooth

[pulseaudio-discuss] [RFC next v0 03/11] bluetooth: Add backend->core notification of new transports

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz Backends are responsible for the notification of new transports, which is backend-dependant. The core still holds ownership of the transport objects. --- src/modules/bluetooth/bluetooth-util.c | 45 -- src/modules/bluetooth/bluetooth-util.h | 13

[pulseaudio-discuss] [RFC next v0 02/11] bluetooth: Add basic backend->core notifications

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz Make a clear split to define an API implementing transport operations, and how these backends should report the events to the Bluetooth core. --- src/modules/bluetooth/bluetooth-util.c | 143 +++-- src/modules/bluetooth/bluetooth-util.h | 7 ++ 2

[pulseaudio-discuss] [RFC next v0 01/11] bluetooth: Add backend infrastructure with core->backend reporting

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz Components other than BlueZ can also implement Bluetooth profiles and some infrastructure is required to keep the codebase cleanly split. --- src/modules/bluetooth/bluetooth-util.c | 32 src/modules/bluetooth/bluetooth-util.h | 12

[pulseaudio-discuss] [RFC next v0 00/11] bluetooth: Add backend infrastructure

2013-05-15 Thread Mikel Astiz
From: Mikel Astiz There's some ongoing work by João Paulo to add oFono support to PulseAudio. This requires the adoption of some backend infrastructure in order to keep the codebase and dependencies clean, which is exactly what this patchset is proposing. For reasons already discussed i

[pulseaudio-discuss] [RFC next v5 08/11] bluetooth: Add HFP 1.6 codec ID

2013-05-10 Thread Mikel Astiz
From: Vinicius Costa Gomes According to the HFP 1.6 spec, the default codec (CVSD) has ID 0x01. This change has no effect in older versions of BlueZ since the codec ID was ignored for HFP, due to the fact that HFP versions prior to 1.6 do not have such a field. --- src/modules/bluetooth/bluetoo

[pulseaudio-discuss] [RFC next v5 11/11] bluetooth: Update to volume control in BlueZ 5

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz In BlueZ 5, the microphone and speaker gains are exposed as properties of the MediaTransport1 interface. --- src/modules/bluetooth/bluetooth-util.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC next v5 10/11] bluetooth: Update to new property setter API in BlueZ 5

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz If BlueZ 5 is in use, the standard org.freedesktop.DBus.Properties needs to be used instead of the old SetProperty() method. --- src/modules/bluetooth/bluetooth-util.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC next v5 09/11] bluetooth: Handle transports configured before UUID received

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Now that the transport can be configured from some other process (i.e. oFono), there is no guarantee that the UUID from BlueZ will already have been received. This requires PulseAudio to assume that the UUID is actually supported by the device and that BlueZ will eventually

[pulseaudio-discuss] [RFC next v5 07/11] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Register the HSP/HFP endpoints in BlueZ 5 Media API for the sake of completeness, despite the fact that there's currently no known user of such an endpoint. --- src/modules/bluetooth/bluetooth-util.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/modules/blue

[pulseaudio-discuss] [RFC next v5 06/11] bluetooth: Support transport auto-release

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz With BlueZ 5, if the remote device suspends the audio, the transport state will change to "idle" and the endpoint is not required to release the transport, since this could introduce race conditions. Therefore, ignore the call to pa_bluetooth_transport_releas

[pulseaudio-discuss] [RFC next v5 05/11] bluetooth: Update to new BlueZ 5 transport acquire/release API

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz The new D-Bus API doesn't support access rights, which weren't used by PulseAudio anyway, but it does solve a race condition: now optional acquires can be implemented by bluetooth-util atomically using the D-Bus TryAcquire() method. --- src/modules/bluetooth/blueto

[pulseaudio-discuss] [RFC next v5 04/11] bluetooth: Support media transport's State property

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz BlueZ 5 exposes a 'State' property in the media transport interface. With regard to PA, this replaces the profile-specific interfaces, since they were being used to know if the audio was streaming or not. --- src/modules/bluetooth/bluetooth-u

[pulseaudio-discuss] [RFC next v5 03/11] bluetooth: Parse media transport's properties

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Add the code to parse the properties of the media transport object when a PropertiesChanged signal is received. Note that the transport might have an owner other than BlueZ, and thus the property changes would be emitted from arbitrary senders. For performance reasons, the

[pulseaudio-discuss] [RFC next v5 02/11] bluetooth: Support Properties.PropertiesChanged signal

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Install matches for signal Properties.PropertiesChanged and process the properties corresponding to the tracked devices. --- src/modules/bluetooth/bluetooth-util.c | 33 + 1 file changed, 33 insertions(+) diff --git a/src/modules/bluetooth

[pulseaudio-discuss] [RFC next v5 01/11] bluetooth: Support ObjectManager interface add/remove

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Install matches for signals ObjectManager.InterfacesAdded and ObjectManager.InterfacesRemoved, and process the devices that are registered and unregistered dynamically. --- src/modules/bluetooth/bluetooth-util.c | 60 ++ 1 file changed, 60

[pulseaudio-discuss] [RFC next v5 00/11] bluetooth: BlueZ 5 development patches

2013-05-10 Thread Mikel Astiz
From: Mikel Astiz Sending v5 with the following changes: - Leaked D-Bus matches removed as pointed out by João Paulo. - Several warning messages added as suggested by Tanu. - Minor code refactoring in pa_bluetooth_transport_release(). Again, the last 5 patches are sent for completeness despite

Re: [pulseaudio-discuss] [RFC next v4 12/16] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

2013-05-10 Thread Mikel Astiz
Hi Tanu, On Fri, May 10, 2013 at 10:01 AM, Tanu Kaskinen wrote: > On Fri, 2013-05-10 at 09:06 +0200, Mikel Astiz wrote: >> Hi Tanu, >> >> On Fri, May 10, 2013 at 7:48 AM, Tanu Kaskinen >> wrote: >> > On Mon, 2013-04-29 at 18:28 +0200, Mikel

Re: [pulseaudio-discuss] [RFC next v4 12/16] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

2013-05-10 Thread Mikel Astiz
Hi Tanu, On Fri, May 10, 2013 at 7:48 AM, Tanu Kaskinen wrote: > On Mon, 2013-04-29 at 18:28 +0200, Mikel Astiz wrote: >> From: Mikel Astiz >> >> Register the HSP/HFP endpoints in BlueZ 5 Media API for the sake of >> completeness, despite the fact that there's cu

Re: [pulseaudio-discuss] [RFC next v4 04/16] bluetooth: Support Properties.PropertiesChanged signal

2013-05-09 Thread Mikel Astiz
Hi Tanu, On Thu, May 9, 2013 at 10:30 AM, Tanu Kaskinen wrote: > On Mon, 2013-04-29 at 18:28 +0200, Mikel Astiz wrote: >> From: Mikel Astiz >> >> Install matches for signal Properties.PropertiesChanged and process the >> properties corresponding to the tracked devi

Re: [pulseaudio-discuss] [RFC next v4 04/16] bluetooth: Support Properties.PropertiesChanged signal

2013-05-07 Thread Mikel Astiz
Hi João Paulo, On Tue, May 7, 2013 at 12:01 AM, João Paulo Rechi Vita wrote: > On Mon, Apr 29, 2013 at 1:28 PM, Mikel Astiz > wrote: >> From: Mikel Astiz >> >> Install matches for signal Properties.PropertiesChanged and process the >> properties corres

Re: [pulseaudio-discuss] [RFC next v4 00/16] bluetooth: BlueZ 5 development patches

2013-05-03 Thread Mikel Astiz
Hi João Paulo, On Thu, May 2, 2013 at 10:05 PM, João Paulo Rechi Vita wrote: > On Thu, May 2, 2013 at 4:17 AM, Mikel Astiz wrote: >> Hi João Paulo, >> >> On Tue, Apr 30, 2013 at 9:13 PM, João Paulo Rechi Vita >> wrote: >>> On Tue, Apr 30, 2013 at 7:20 A

Re: [pulseaudio-discuss] [RFC next v4 00/16] bluetooth: BlueZ 5 development patches

2013-05-02 Thread Mikel Astiz
Hi João Paulo, On Tue, Apr 30, 2013 at 9:13 PM, João Paulo Rechi Vita wrote: > On Tue, Apr 30, 2013 at 7:20 AM, Luiz Augusto von Dentz > wrote: >> Hi Mikel, >> >> On Mon, Apr 29, 2013 at 7:27 PM, Mikel Astiz >> wrote: >>> From: Mikel Astiz >>>

[pulseaudio-discuss] [RFC next v4 16/16] bluetooth: Update to volume control in BlueZ 5

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz In BlueZ 5, the microphone and speaker gains are exposed as properties of the MediaTransport1 interface. --- src/modules/bluetooth/bluetooth-util.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC next v4 15/16] bluetooth: Update to new property setter API in BlueZ 5

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz If BlueZ 5 is in use, the standard org.freedesktop.DBus.Properties needs to be used instead of the old SetProperty() method. --- src/modules/bluetooth/bluetooth-util.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC next v4 13/16] bluetooth: Add HFP 1.6 codec ID

2013-04-29 Thread Mikel Astiz
From: Vinicius Costa Gomes According to the HFP 1.6 spec, the default codec (CVSD) has ID 0x01. This change has no effect in older versions of BlueZ since the codec ID was ignored for HFP, due to the fact that HFP versions prior to 1.6 do not have such a field. --- src/modules/bluetooth/bluetoo

[pulseaudio-discuss] [RFC next v4 14/16] bluetooth: Handle transports configured before UUID received

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Now that the transport can be configured from some other process (i.e. oFono), there is no guarantee that the UUID from BlueZ will already have been received. This requires PulseAudio to assume that the UUID is actually supported by the device and that BlueZ will eventually

[pulseaudio-discuss] [RFC next v4 12/16] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Register the HSP/HFP endpoints in BlueZ 5 Media API for the sake of completeness, despite the fact that there's currently no known user of such an endpoint. --- src/modules/bluetooth/bluetooth-util.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/modules/blue

[pulseaudio-discuss] [RFC next v4 11/16] bluetooth: Support transport auto-release

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz With BlueZ 5, if the remote device suspends the audio, the transport state will change to "idle" and the endpoint is not required to release the transport, since this could introduce race conditions. Therefore, ignore the call to pa_bluetooth_transport_releas

[pulseaudio-discuss] [RFC next v4 10/16] bluetooth: Update to new BlueZ 5 transport acquire/release API

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz The new D-Bus API doesn't support access rights, which weren't used by PulseAudio anyway, but it does solve a race condition: now optional acquires can be implemented by bluetooth-util atomically using the D-Bus TryAcquire() method. --- src/modules/bluetooth/blueto

[pulseaudio-discuss] [RFC next v4 09/16] bluetooth: Support media transport's State property

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz BlueZ 5 exposes a 'State' property in the media transport interface. With regard to PA, this replaces the profile-specific interfaces, since they were being used to know if the audio was streaming or not. --- src/modules/bluetooth/bluetooth-u

[pulseaudio-discuss] [RFC next v4 08/16] bluetooth: Parse media transport's properties

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Add the code to parse the properties of the media transport object when a PropertiesChanged signal is received. Note that the transport might have an owner other than BlueZ, and thus the property changes would be emitted from arbitrary senders. For performance reasons, the

[pulseaudio-discuss] [RFC next v4 07/16] bluetooth: BlueZ 5 interface rename to org.bluez.MediaTransport1

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 0a5f70e

[pulseaudio-discuss] [RFC next v4 06/16] bluetooth: BlueZ 5 interface rename to org.bluez.Media1

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 5fe3f0c..0a5f70e

[pulseaudio-discuss] [RFC next v4 05/16] bluetooth: BlueZ 5 interface rename to org.bluez.MediaEndpoint1

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 51 -- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth

[pulseaudio-discuss] [RFC next v4 04/16] bluetooth: Support Properties.PropertiesChanged signal

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Install matches for signal Properties.PropertiesChanged and process the properties corresponding to the tracked devices. --- src/modules/bluetooth/bluetooth-util.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/modules/bluetooth

[pulseaudio-discuss] [RFC next v4 03/16] bluetooth: Support ObjectManager interface add/remove

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Install matches for signals ObjectManager.InterfacesAdded and ObjectManager.InterfacesRemoved, and process the devices that are registered and unregistered dynamically. --- src/modules/bluetooth/bluetooth-util.c | 58 ++ 1 file changed, 58

[pulseaudio-discuss] [RFC next v4 02/16] bluetooth: Parse the tree returned by ObjectManager

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Parse the result of ObjectManager.GetManagedObjects(), which includes all objects registered, their interfaces and the corresponding properties per interface. --- src/modules/bluetooth/bluetooth-util.c | 125 +++-- 1 file changed, 119 insertions

[pulseaudio-discuss] [RFC next v4 01/16] bluetooth: Detect BlueZ 5

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Check the existence of ObjectManager to detect the version of the running daemon. If the interface exists, it should be BlueZ 5. --- src/modules/bluetooth/bluetooth-util.c | 52 -- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a

[pulseaudio-discuss] [RFC next v4 00/16] bluetooth: BlueZ 5 development patches

2013-04-29 Thread Mikel Astiz
From: Mikel Astiz Resending v3 with a small change in patch 3/16, where the "Name" property of org.bluez.Device1 is now considered as optional. This version is intended for the next branch since it depends on module-bluetooth-device not making use of device->name, which

Re: [pulseaudio-discuss] [PATCH 1/3] bluetooth: Add 'bluez.alias' property

2013-04-29 Thread Mikel Astiz
rote: >>> > On Mon, 2013-04-29 at 16:20 +0200, Mikel Astiz wrote: >>> >> On Mon, Apr 29, 2013 at 4:01 PM, Tanu Kaskinen >>> >> wrote: >>> >> > On Fri, 2013-04-26 at 12:30 -0300, jprv...@gmail.com wrote: >>>

Re: [pulseaudio-discuss] [PATCH 1/3] bluetooth: Add 'bluez.alias' property

2013-04-29 Thread Mikel Astiz
Hi Tanu, On Mon, Apr 29, 2013 at 4:38 PM, Tanu Kaskinen wrote: > On Mon, 2013-04-29 at 16:20 +0200, Mikel Astiz wrote: >> On Mon, Apr 29, 2013 at 4:01 PM, Tanu Kaskinen >> wrote: >> > On Fri, 2013-04-26 at 12:30 -0300, jprv...@gmail.com wrote: >> >> sr

Re: [pulseaudio-discuss] [PATCH 1/3] bluetooth: Add 'bluez.alias' property

2013-04-29 Thread Mikel Astiz
Hi Tanu, On Mon, Apr 29, 2013 at 4:01 PM, Tanu Kaskinen wrote: > On Fri, 2013-04-26 at 12:30 -0300, jprv...@gmail.com wrote: >> From: João Paulo Rechi Vita >> >> --- >> >> As already discussed with Tanuk and Mikel, this series should be applied to >> the >> master branch. > > I don't remember t

Re: [pulseaudio-discuss] [PATCH 3/3] bluetooth: Remove the 'bluez.name' property

2013-04-26 Thread Mikel Astiz
Hi João Paulo, On Fri, Apr 26, 2013 at 5:30 PM, wrote: > From: João Paulo Rechi Vita > > The org.bluez.Device1.Name property is optional and may not be present > (that happens with the PTS 4.7.0), so it's better not to expose it to > clients so they don't rely on its existence. > --- > src/mod

Re: [pulseaudio-discuss] [PATCH] bluetooth: Use 'Alias' instead of 'Name'

2013-04-25 Thread Mikel Astiz
Hi João Paulo, On Thu, Apr 25, 2013 at 9:36 AM, Mikel Astiz wrote: > Hi João, > > On Wed, Apr 24, 2013 at 7:51 PM, João Paulo Rechi Vita > wrote: >> On Wed, Apr 24, 2013 at 3:29 AM, Mikel Astiz >> wrote: >>> Hi João Paulo, >>> >>> On Tue,

Re: [pulseaudio-discuss] [PATCH] bluetooth: Use 'Alias' instead of 'Name'

2013-04-25 Thread Mikel Astiz
Hi João, On Wed, Apr 24, 2013 at 7:51 PM, João Paulo Rechi Vita wrote: > On Wed, Apr 24, 2013 at 3:29 AM, Mikel Astiz > wrote: >> Hi João Paulo, >> >> On Tue, Apr 23, 2013 at 10:48 PM, wrote: >>> From: João Paulo Rechi Vita >>> >>>

Re: [pulseaudio-discuss] [PATCH] bluetooth: Use 'Alias' instead of 'Name'

2013-04-23 Thread Mikel Astiz
Hi João Paulo, On Tue, Apr 23, 2013 at 10:48 PM, wrote: > From: João Paulo Rechi Vita > > According to the BlueZ API documentation the 'Alias' property should be > preffered over the 'Name' property. Also, if the device doesn't have a > remote name the 'Name' property may not be set, but the 'A

Re: [pulseaudio-discuss] [RFCv3 18/20] bluetooth: Call HandsfreeAudioCard.Connect() on non-optional acquire

2013-04-23 Thread Mikel Astiz
Hi João, On Mon, Apr 22, 2013 at 3:30 PM, João Paulo Rechi Vita wrote: > On Mon, Apr 22, 2013 at 4:43 AM, Mikel Astiz > wrote: >> Hi João Paulo, >> >> On Mon, Apr 22, 2013 at 5:07 AM, wrote: >>> From: João Paulo Rechi Vita >>> >>> When the

Re: [pulseaudio-discuss] [RFCv3 18/20] bluetooth: Call HandsfreeAudioCard.Connect() on non-optional acquire

2013-04-22 Thread Mikel Astiz
Hi João Paulo, On Mon, Apr 22, 2013 at 5:07 AM, wrote: > From: João Paulo Rechi Vita > > When the HFP sink/source is resumed and the transport is not acquired a > new Audio Connection should be started by the HF. This is needed to > support audio call transfer from the AG to the HF triggered by

[pulseaudio-discuss] [RFC v3 16/16] bluetooth: Update to volume control in BlueZ 5

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz In BlueZ 5, the microphone and speaker gains are exposed as properties of the MediaTransport1 interface. --- src/modules/bluetooth/bluetooth-util.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC v3 14/16] bluetooth: Handle transports configured before UUID received

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Now that the transport can be configured from some other process (i.e. oFono), there is no guarantee that the UUID from BlueZ will already have been received. This requires PulseAudio to assume that the UUID is actually supported by the device and that BlueZ will eventually

[pulseaudio-discuss] [RFC v3 15/16] bluetooth: Update to new property setter API in BlueZ 5

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz If BlueZ 5 is in use, the standard org.freedesktop.DBus.Properties needs to be used instead of the old SetProperty() method. --- src/modules/bluetooth/bluetooth-util.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/modules/bluetooth/bluetooth-util.c b

[pulseaudio-discuss] [RFC v3 13/16] bluetooth: Add HFP 1.6 codec ID

2013-04-19 Thread Mikel Astiz
From: Vinicius Costa Gomes According to the HFP 1.6 spec, the default codec (CVSD) has ID 0x01. This change has no effect in older versions of BlueZ since the codec ID was ignored for HFP, due to the fact that HFP versions prior to 1.6 do not have such a field. --- src/modules/bluetooth/bluetoo

[pulseaudio-discuss] [RFC v3 12/16] bluetooth: Register HSP/HFP endpoints in BlueZ 5 Media API

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Register the HSP/HFP endpoints in BlueZ 5 Media API for the sake of completeness, despite the fact that there's currently no known user of such an endpoint. --- src/modules/bluetooth/bluetooth-util.c | 5 - 1 file changed, 5 deletions(-) diff --git a/src/modules/blue

[pulseaudio-discuss] [RFC v3 11/16] bluetooth: Support transport auto-release

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz With BlueZ 5, if the remote device suspends the audio, the transport state will change to "idle" and the endpoint is not required to release the transport, since this could introduce race conditions. Therefore, ignore the call to pa_bluetooth_transport_releas

[pulseaudio-discuss] [RFC v3 10/16] bluetooth: Update to new BlueZ 5 transport acquire/release API

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz The new D-Bus API doesn't support access rights, which weren't used by PulseAudio anyway, but it does solve a race condition: now optional acquires can be implemented by bluetooth-util atomically using the D-Bus TryAcquire() method. --- src/modules/bluetooth/blueto

[pulseaudio-discuss] [RFC v3 09/16] bluetooth: Support media transport's State property

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz BlueZ 5 exposes a 'State' property in the media transport interface. With regard to PA, this replaces the profile-specific interfaces, since they were being used to know if the audio was streaming or not. --- src/modules/bluetooth/bluetooth-u

[pulseaudio-discuss] [RFC v3 08/16] bluetooth: Parse media transport's properties

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Add the code to parse the properties of the media transport object when a PropertiesChanged signal is received. Note that the transport might have an owner other than BlueZ, and thus the property changes would be emitted from arbitrary senders. For performance reasons, the

[pulseaudio-discuss] [RFC v3 07/16] bluetooth: BlueZ 5 interface rename to org.bluez.MediaTransport1

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index c9c60d1

[pulseaudio-discuss] [RFC v3 06/16] bluetooth: BlueZ 5 interface rename to org.bluez.Media1

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 3560227..c9c60d1

[pulseaudio-discuss] [RFC v3 05/16] bluetooth: BlueZ 5 interface rename to org.bluez.MediaEndpoint1

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Use the new interface name if BlueZ 5 has been detected. --- src/modules/bluetooth/bluetooth-util.c | 51 -- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth

[pulseaudio-discuss] [RFC v3 04/16] bluetooth: Support Properties.PropertiesChanged signal

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Install matches for signal Properties.PropertiesChanged and process the properties corresponding to the tracked devices. --- src/modules/bluetooth/bluetooth-util.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/modules/bluetooth

[pulseaudio-discuss] [RFC v3 03/16] bluetooth: Support ObjectManager interface add/remove

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Install matches for signals ObjectManager.InterfacesAdded and ObjectManager.InterfacesRemoved, and process the devices that are registered and unregistered dynamically. --- src/modules/bluetooth/bluetooth-util.c | 58 ++ 1 file changed, 58

[pulseaudio-discuss] [RFC v3 02/16] bluetooth: Parse the tree returned by ObjectManager

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Parse the result of ObjectManager.GetManagedObjects(), which includes all objects registered, their interfaces and the corresponding properties per interface. --- src/modules/bluetooth/bluetooth-util.c | 125 +++-- 1 file changed, 119 insertions

[pulseaudio-discuss] [RFC v3 01/16] bluetooth: Detect BlueZ 5

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz Check the existence of ObjectManager to detect the version of the running daemon. If the interface exists, it should be BlueZ 5. --- src/modules/bluetooth/bluetooth-util.c | 52 -- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a

[pulseaudio-discuss] [RFC v3 00/16] bluetooth: BlueZ 5 development patches

2013-04-19 Thread Mikel Astiz
From: Mikel Astiz The patchset has been hanging around for a while and several efforts exist that depend on this series, so it seems we should merge this despite the existing discussions about how different backends (BlueZ 4, BlueZ 5, oFono, etc.) should be supported inside PulseAudio (next

  1   2   3   4   5   6   >