* [PATCH] Mark inuse flag whenever a stream is configured
@ 2010-02-18 14:04 Luiz Augusto von Dentz
2010-02-18 17:09 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2010-02-18 14:04 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
Currently it was only marked when acting as the initiator.
---
audio/avdtp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/audio/avdtp.c b/audio/avdtp.c
index efed9b6..2591845 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1426,6 +1426,7 @@ static gboolean avdtp_setconf_cmd(struct avdtp
*session, uint8_t transaction,
}
sep->stream = stream;
+ sep->info.inuse = 1;
session->streams = g_slist_append(session->streams, stream);
avdtp_sep_set_state(session, sep, AVDTP_STATE_CONFIGURED);
--
1.6.3.3
--
Luiz Augusto von Dentz
Computer Engineer
[-- Attachment #2: 0001-Mark-inuse-flag-whenever-a-stream-is-configured.patch --]
[-- Type: text/x-patch, Size: 774 bytes --]
From 22ea50f266692225dfc3836b90ced4514e2de16c Mon Sep 17 00:00:00 2001
From: Luiz Augusto Von Dentz <luiz.dentz-von@nokia.com>
Date: Thu, 18 Feb 2010 13:21:21 +0200
Subject: [PATCH] Mark inuse flag whenever a stream is configured
Currently it was only marked when acting as the initiator.
---
audio/avdtp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/audio/avdtp.c b/audio/avdtp.c
index efed9b6..2591845 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1426,6 +1426,7 @@ static gboolean avdtp_setconf_cmd(struct avdtp *session, uint8_t transaction,
}
sep->stream = stream;
+ sep->info.inuse = 1;
session->streams = g_slist_append(session->streams, stream);
avdtp_sep_set_state(session, sep, AVDTP_STATE_CONFIGURED);
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Mark inuse flag whenever a stream is configured
2010-02-18 14:04 [PATCH] Mark inuse flag whenever a stream is configured Luiz Augusto von Dentz
@ 2010-02-18 17:09 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-02-18 17:09 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hi Luiz,
On Thu, Feb 18, 2010, Luiz Augusto von Dentz wrote:
> Currently it was only marked when acting as the initiator.
> ---
> audio/avdtp.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/audio/avdtp.c b/audio/avdtp.c
> index efed9b6..2591845 100644
> --- a/audio/avdtp.c
> +++ b/audio/avdtp.c
> @@ -1426,6 +1426,7 @@ static gboolean avdtp_setconf_cmd(struct avdtp
> *session, uint8_t transaction,
> }
>
> sep->stream = stream;
> + sep->info.inuse = 1;
> session->streams = g_slist_append(session->streams, stream);
>
> avdtp_sep_set_state(session, sep, AVDTP_STATE_CONFIGURED);
The patch has been pushed upstream. Thanks.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-18 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 14:04 [PATCH] Mark inuse flag whenever a stream is configured Luiz Augusto von Dentz
2010-02-18 17:09 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).