[PATCH] audio: Fix media transport creation

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

 



Prevents set_configuration() to be called on another adapter
than connecting one
---
 audio/media.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/audio/media.c b/audio/media.c
index 427087a..8b29ac7 100644
--- a/audio/media.c
+++ b/audio/media.c
@@ -491,6 +491,9 @@ static void headset_state_changed(struct audio_device *dev,
 		}
 		break;
 	case HEADSET_STATE_CONNECTING:
+		if (bacmp(&endpoint->adapter->src, &dev->src) != 0)
+			break;
+
 		set_configuration(endpoint, dev, NULL, 0, headset_setconf_cb,
 								dev, NULL);
 		break;
-- 
1.7.9.5

--
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