Skip to contentSkip to conversation

avdtp: fix audio source init check

PATCH Applied Mike Brudevold 3 participants 3 messages Mar 23, 2012 – Mar 27, 2012 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avdtp: fix audio source init check

From: Michael Brudevold <[email protected]>

---
 audio/avdtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
audio/avdtp.c +1 -1
index cd66fd4..8b36f0b 100644
@@ -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;
Signature · 1 line
1.7.5.4
#1 lore raw

Hi Mike,

Quoted 22 lines · Mike Brudevold

From: Michael Brudevold <[email protected]>

---
 audio/avdtp.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
audio/avdtp.c +0 -0
index cd66fd4..8b36f0b 100644
@@ -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

Quoted 1 line

--

Ack.

Signature · 1 line
Luiz Augusto von Dentz
#2 lore raw
In reply to Mike Brudevold

Hi Mike,

Quoted 11 lines · Mike Brudevold

From: Michael Brudevold <[email protected]>

---
 audio/avdtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
audio/avdtp.c +0 -0
index cd66fd4..8b36f0b 100644

audio/avdtp.c static gboolean avdtp_setconf_cmd(struct avdtp *session, uint8_t transaction, · line 1526

Quoted 8 lines
audio/avdtp.c +1 -1
@@ -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;

Applied. Thanks.

Johan