From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] Mark inuse flag whenever a stream is configured
Date: Thu, 18 Feb 2010 16:04:32 +0200 [thread overview]
Message-ID: <2d5a2c101002180604u7cecd3ecsa3a047c3c28bcf61@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2010-02-18 14:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-18 14:04 Luiz Augusto von Dentz [this message]
2010-02-18 17:09 ` [PATCH] Mark inuse flag whenever a stream is configured Johan Hedberg
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=2d5a2c101002180604u7cecd3ecsa3a047c3c28bcf61@mail.gmail.com \
--to=luiz.dentz@gmail.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;
as well as URLs for NNTP newsgroup(s).