Re: [PATCH] Fix audio.conf parsing bug - sink and source were transposed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 18, 2009 at 3:32 PM, Nick Pelly<npelly@xxxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux