From: Nick Pelly <npelly@google.com>
To: linux-bluetooth@vger.kernel.org
Cc: Nick Pelly <npelly@google.com>, Jaikumar Ganesh <jaikumar@google.com>
Subject: Re: [PATCH] Fix audio.conf parsing bug - sink and source were transposed.
Date: Tue, 18 Aug 2009 16:01:42 -0700 [thread overview]
Message-ID: <35c90d960908181601x5d31192l459ce5ccdff84b8d@mail.gmail.com> (raw)
In-Reply-To: <1250634769-12220-1-git-send-email-npelly@google.com>
On Tue, Aug 18, 2009 at 3:32 PM, Nick Pelly<npelly@google.com> wrote:
> ---
> audio/a2dp.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/audio/a2dp.c b/audio/a2dp.c
> index 45be5d4..41b8f88 100644
> --- a/audio/a2dp.c
> +++ b/audio/a2dp.c
> @@ -1098,9 +1098,9 @@ int a2dp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config)
> g_clear_error(&err);
> } else {
> if (strstr(str, "Sink"))
> - source = TRUE;
> - if (strstr(str, "Source"))
> sink = TRUE;
> + if (strstr(str, "Source"))
> + source = TRUE;
> g_free(str);
> }
>
> @@ -1111,9 +1111,9 @@ int a2dp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config)
> g_clear_error(&err);
> } else {
> if (strstr(str, "Sink"))
> - source = FALSE;
> - if (strstr(str, "Source"))
> sink = FALSE;
> + if (strstr(str, "Source"))
> + source = FALSE;
> g_free(str);
> }
>
> --
> 1.6.3.1
Jaikumar just gave me the heads up that this is by design.
Enable=Sink means that bluetoothd offers the Sink interface for remote
devices - and that we are a source.
Enable=Source means that bluetoothd offers the Source interface for
remote devices - and that we are a sink.
I'd say its counter-intuitive, but we can live with it.
Nick
next prev parent reply other threads:[~2009-08-18 23:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 22:32 [PATCH] Fix audio.conf parsing bug - sink and source were transposed Nick Pelly
2009-08-18 23:01 ` Nick Pelly [this message]
2009-08-18 23:08 ` Bastien Nocera
2009-08-22 20:06 ` Marcel Holtmann
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=35c90d960908181601x5d31192l459ce5ccdff84b8d@mail.gmail.com \
--to=npelly@google.com \
--cc=jaikumar@google.com \
--cc=linux-bluetooth@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox