Re: [PATCH BlueZ 1/2] audio: Fix not resetting connect_id

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

 



Hi,

On Fri, Aug 14, 2015 at 6:48 PM, Luiz Augusto von Dentz
<luiz.dentz@xxxxxxxxx> wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>
> Ever since discovery can be canceled connect_id is now set while
> discovering so it needs to be reset on the callback otherwise it will
> cause .connect to always return -EBUSY until .disconnect is called.
> ---
>  profiles/audio/sink.c   | 2 ++
>  profiles/audio/source.c | 2 ++
>  2 files changed, 4 insertions(+)
>
> diff --git a/profiles/audio/sink.c b/profiles/audio/sink.c
> index 1c36735..3af8e0f 100644
> --- a/profiles/audio/sink.c
> +++ b/profiles/audio/sink.c
> @@ -227,6 +227,8 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
>         struct sink *sink = user_data;
>         int id, perr;
>
> +       sink->connect_id = 0;
> +
>         if (err) {
>                 avdtp_unref(sink->session);
>                 sink->session = NULL;
> diff --git a/profiles/audio/source.c b/profiles/audio/source.c
> index 16a8287..c036208 100644
> --- a/profiles/audio/source.c
> +++ b/profiles/audio/source.c
> @@ -227,6 +227,8 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
>         struct source *source = user_data;
>         int id, perr;
>
> +       source->connect_id = 0;
> +
>         if (err) {
>                 avdtp_unref(source->session);
>                 source->session = NULL;
> --
> 2.4.3

Applied.


-- 
Luiz Augusto von Dentz
--
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