All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Mikel Astiz <mikel.astiz.oss@gmail.com>,
	linux-bluetooth@vger.kernel.org,
	Mikel Astiz <mikel.astiz@bmw-carit.de>
Subject: Re: [PATCH 1/4] audio: remove unnecessary method call
Date: Fri, 30 Dec 2011 13:16:44 +0200	[thread overview]
Message-ID: <20111230111644.GA6315@x220> (raw)
In-Reply-To: <CABBYNZL7-Aufrfa7e_S_n70LrkurL3Q6m0ncrM6tc4XGMmavkA@mail.gmail.com>

Hi,

On Thu, Dec 15, 2011, Luiz Augusto von Dentz wrote:
> On Thu, Dec 15, 2011 at 12:01 PM, Mikel Astiz <mikel.astiz.oss@gmail.com> wrote:
> > From: Mikel Astiz <mikel.astiz@bmw-carit.de>
> >
> > Calling gateway_suspend_stream should not be necessary given that
> > gateway_unlock with rw flags already does it.
> > ---
> >  audio/transport.c |    1 -
> >  1 files changed, 0 insertions(+), 1 deletions(-)
> >
> > diff --git a/audio/transport.c b/audio/transport.c
> > index 7bde32d..6029528 100644
> > --- a/audio/transport.c
> > +++ b/audio/transport.c
> > @@ -535,7 +535,6 @@ static guint suspend_gateway(struct media_transport *transport,
> >                return 0;
> >        }
> >
> > -       gateway_suspend_stream(device);
> >        gateway_unlock(device, GATEWAY_LOCK_READ | GATEWAY_LOCK_WRITE);
> >        g_idle_add(gateway_suspend_complete, owner);
> >        return id++;
> > --
> 
> gateway_suspend_stream as it is useless, but I think we should fix it
> to work similarly to headset_suspend_stream so we properly wait until
> the socket is closed before we unlock and reply, this is necessary in
> order to properly synchronize switching profiles otherwise
> gateway_suspend_complete maybe called without SCO being completely
> disconnected. Also when a fd is passed over to another process calling
> close/g_io_channel_shutdown is not enough since this only release our
> reference, in this case shutdown must be called.

The subsequent patches in the set fail to apply without this first one,
so the whole patch set is on hold until we get an update for it.

Johan

  reply	other threads:[~2011-12-30 11:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15 10:01 [PATCH 0/4] Minor audio-related fixes Mikel Astiz
2011-12-15 10:01 ` [PATCH 1/4] audio: remove unnecessary method call Mikel Astiz
2011-12-15 11:46   ` Luiz Augusto von Dentz
2011-12-30 11:16     ` Johan Hedberg [this message]
2011-12-15 10:01 ` [PATCH 2/4] audio: gateway_unlock together with in_use = FALSE Mikel Astiz
2011-12-15 11:48   ` Luiz Augusto von Dentz
2011-12-15 10:01 ` [PATCH 3/4] a2dp: return NotSupported error if no server found Mikel Astiz
2011-12-15 11:49   ` Luiz Augusto von Dentz
2011-12-15 10:01 ` [PATCH 4/4] audio: do not disconnect on gateway SCO failure Mikel Astiz
2011-12-15 11:51   ` Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111230111644.GA6315@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    --cc=mikel.astiz.oss@gmail.com \
    --cc=mikel.astiz@bmw-carit.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.