* [PATCH] Fix audio.conf parsing bug - sink and source were transposed.
@ 2009-08-18 22:32 Nick Pelly
2009-08-18 23:01 ` Nick Pelly
0 siblings, 1 reply; 4+ messages in thread
From: Nick Pelly @ 2009-08-18 22:32 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Nick Pelly
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix audio.conf parsing bug - sink and source were transposed.
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
2009-08-18 23:08 ` Bastien Nocera
0 siblings, 1 reply; 4+ messages in thread
From: Nick Pelly @ 2009-08-18 23:01 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Nick Pelly, Jaikumar Ganesh
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix audio.conf parsing bug - sink and source were transposed.
2009-08-18 23:01 ` Nick Pelly
@ 2009-08-18 23:08 ` Bastien Nocera
2009-08-22 20:06 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Bastien Nocera @ 2009-08-18 23:08 UTC (permalink / raw)
To: Nick Pelly; +Cc: linux-bluetooth, Jaikumar Ganesh
On Tue, 2009-08-18 at 16:01 -0700, Nick Pelly wrote:
> On Tue, Aug 18, 2009 at 3:32 PM, Nick Pelly<npelly@google.com> wrote:
<snip>
> 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.
Comments in the code could fix that?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix audio.conf parsing bug - sink and source were transposed.
2009-08-18 23:08 ` Bastien Nocera
@ 2009-08-22 20:06 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2009-08-22 20:06 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Nick Pelly, linux-bluetooth, Jaikumar Ganesh
Hi Bastien,
> > 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.
>
> Comments in the code could fix that?
I prefer that we add comments in the code and the configuration file.
Nick, please send a patch that adds these comments.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-22 20:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-08-18 23:08 ` Bastien Nocera
2009-08-22 20:06 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox