Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-04 Thread Arun Raghavan
On Wed, 2012-11-28 at 19:20 +0100, Mikel Astiz wrote: > From: Mikel Astiz > > The sink can be resumed while the source is still in PA_SOURCE_INIT. > This is the case if a module such as module-stream-restore routes the > audio to the sink during pa_sink_put(), leading to an inconsistent > state:

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-04 Thread Tanu Kaskinen
On Tue, 2012-12-04 at 08:18 +0100, Mikel Astiz wrote: > Hi Tanu, > > On Tue, Dec 4, 2012 at 1:43 AM, Tanu Kaskinen wrote: > > On Mon, 2012-12-03 at 10:57 +0100, Mikel Astiz wrote: > >> On Sun, Dec 2, 2012 at 4:05 AM, Tanu Kaskinen wrote: > >> > On Thu, 2012-11-29 at 14:33 +0100, Mikel Astiz wrot

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-03 Thread Mikel Astiz
Hi Tanu, On Tue, Dec 4, 2012 at 1:43 AM, Tanu Kaskinen wrote: > On Mon, 2012-12-03 at 10:57 +0100, Mikel Astiz wrote: >> On Sun, Dec 2, 2012 at 4:05 AM, Tanu Kaskinen wrote: >> > On Thu, 2012-11-29 at 14:33 +0100, Mikel Astiz wrote: >> >> On Thu, Nov 29, 2012 at 4:55 AM, Tanu Kaskinen wrote: >>

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-03 Thread Tanu Kaskinen
On Mon, 2012-12-03 at 10:57 +0100, Mikel Astiz wrote: > On Sun, Dec 2, 2012 at 4:05 AM, Tanu Kaskinen wrote: > > On Thu, 2012-11-29 at 14:33 +0100, Mikel Astiz wrote: > >> On Thu, Nov 29, 2012 at 4:55 AM, Tanu Kaskinen wrote: > >> > so that INIT->IDLE transitions will work too, if we decide some

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-03 Thread Mikel Astiz
Hi Tanu, On Sun, Dec 2, 2012 at 4:05 AM, Tanu Kaskinen wrote: > On Thu, 2012-11-29 at 14:33 +0100, Mikel Astiz wrote: >> Hi Tanu, >> >> On Thu, Nov 29, 2012 at 4:55 AM, Tanu Kaskinen wrote: >> > On Wed, 2012-11-28 at 19:20 +0100, Mikel Astiz wrote: >> >> From: Mikel Astiz >> >> >> >> The sink c

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-12-01 Thread Tanu Kaskinen
On Thu, 2012-11-29 at 14:33 +0100, Mikel Astiz wrote: > Hi Tanu, > > On Thu, Nov 29, 2012 at 4:55 AM, Tanu Kaskinen wrote: > > On Wed, 2012-11-28 at 19:20 +0100, Mikel Astiz wrote: > >> From: Mikel Astiz > >> > >> The sink can be resumed while the source is still in PA_SOURCE_INIT. > >> This is

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-11-29 Thread Mikel Astiz
Hi Tanu, On Thu, Nov 29, 2012 at 4:55 AM, Tanu Kaskinen wrote: > On Wed, 2012-11-28 at 19:20 +0100, Mikel Astiz wrote: >> From: Mikel Astiz >> >> The sink can be resumed while the source is still in PA_SOURCE_INIT. >> This is the case if a module such as module-stream-restore routes the >> audio

Re: [pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-11-28 Thread Tanu Kaskinen
On Wed, 2012-11-28 at 19:20 +0100, Mikel Astiz wrote: > From: Mikel Astiz > > The sink can be resumed while the source is still in PA_SOURCE_INIT. > This is the case if a module such as module-stream-restore routes the > audio to the sink during pa_sink_put(), leading to an inconsistent > state:

[pulseaudio-discuss] [PATCH v0] bluetooth: Fix unacquired transports during sink resume

2012-11-28 Thread Mikel Astiz
From: Mikel Astiz The sink can be resumed while the source is still in PA_SOURCE_INIT. This is the case if a module such as module-stream-restore routes the audio to the sink during pa_sink_put(), leading to an inconsistent state: the sink stays RUNNING but the transport is not actually acquired.