summaryrefslogtreecommitdiff
path: root/android/avdtp.h
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2014-05-26 15:16:42 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-05-30 14:54:56 +0300
commite1c7dddd0dd2f5e23e4d4cf98a9dde713fe6dd53 (patch)
tree7e7a38911916bdd9659177fe818ebd00aa1b8d05 /android/avdtp.h
parentd8354e8e635399768a51efb12784d6ee31ff3f7c (diff)
downloadbluez-e1c7dddd0dd2f5e23e4d4cf98a9dde713fe6dd53.tar.gz
android/a2dp: Fix SEP selection
When matching remote SEP to local SEP we do not match vendor codecs properly, i.e. neither vendor ID not codec ID are checked, which may cause wrong endpoint to be selected in case there are more that one endpoints using vendor codec on remote. This patch fixes this by assinging vendor codec indentification to local SEP after it's registered and uses this information when matching SEPs.
Diffstat (limited to 'android/avdtp.h')
-rw-r--r--android/avdtp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/avdtp.h b/android/avdtp.h
index 7fdf597c4..9d683c48a 100644
--- a/android/avdtp.h
+++ b/android/avdtp.h
@@ -268,6 +268,8 @@ struct avdtp_local_sep *avdtp_register_sep(uint8_t type, uint8_t media_type,
struct avdtp_sep_ind *ind,
struct avdtp_sep_cfm *cfm,
void *user_data);
+void avdtp_sep_set_vendor_codec(struct avdtp_local_sep *sep, uint32_t vendor_id,
+ uint16_t codec_id);
/* Find a matching pair of local and remote SEP ID's */
struct avdtp_remote_sep *avdtp_find_remote_sep(struct avdtp *session,