public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] avdtp: fix audio source init check
@ 2012-03-23 15:03 Mike Brudevold
  2012-03-26 14:24 ` Luiz Augusto von Dentz
  2012-03-27 11:52 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Brudevold @ 2012-03-23 15:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Michael Brudevold

From: Michael Brudevold <michael.brudevold@logicpd.com>

---
 audio/avdtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/avdtp.c b/audio/avdtp.c
index cd66fd4..8b36f0b 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1520,7 +1520,7 @@ static gboolean avdtp_setconf_cmd(struct avdtp *session, uint8_t transaction,
 	case AVDTP_SEP_TYPE_SINK:
 		if (!dev->source) {
 			btd_device_add_uuid(dev->btd_dev, A2DP_SOURCE_UUID);
-			if (!dev->sink) {
+			if (!dev->source) {
 				error("Unable to get a audio source object");
 				err = AVDTP_BAD_STATE;
 				goto failed;
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-27 11:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-23 15:03 [PATCH] avdtp: fix audio source init check Mike Brudevold
2012-03-26 14:24 ` Luiz Augusto von Dentz
2012-03-27 11:52 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox