Home | History | Annotate | Download | only in audio

Lines Matching refs:a2dp

49 #include "a2dp.h"
85 struct a2dp_data a2dp;
231 struct a2dp_data *a2dp = &client->d.a2dp;
235 if (a2dp->sep) {
236 a2dp_sep_unlock(a2dp->sep, a2dp->session);
237 a2dp->sep = NULL;
239 if (a2dp->session) {
240 avdtp_unref(a2dp->session);
241 a2dp->session = NULL;
243 a2dp->stream = NULL;
631 struct a2dp_data *a2dp = &client->d.a2dp;
684 struct a2dp_data *ca2dp = &c->d.a2dp;
707 if (a2dp->sep) {
708 a2dp_sep_unlock(a2dp->sep, a2dp->session);
709 a2dp->sep = NULL;
712 avdtp_unref(a2dp->session);
713 a2dp->session = NULL;
714 a2dp->stream = NULL;
725 struct a2dp_data *a2dp = &client->d.a2dp;
740 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
743 a2dp->sep = sep;
744 a2dp->stream = stream;
771 avdtp_unref(a2dp->session);
773 a2dp->session = NULL;
774 a2dp->stream = NULL;
775 a2dp->sep = NULL;
785 struct a2dp_data *a2dp = &client->d.a2dp;
817 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
822 if (a2dp->sep) {
823 a2dp_sep_unlock(a2dp->sep, a2dp->session);
824 a2dp->sep = NULL;
827 avdtp_unref(a2dp->session);
828 a2dp->session = NULL;
829 a2dp->stream = NULL;
859 struct a2dp_data *a2dp;
865 a2dp = &client->d.a2dp;
867 if (!a2dp->session)
868 a2dp->session = avdtp_get(&dev->src, &dev->dst);
870 if (!a2dp->session) {
875 err = avdtp_discover(a2dp->session, a2dp_discovery_complete,
878 if (a2dp->session) {
879 avdtp_unref(a2dp->session);
880 a2dp->session = NULL;
925 struct a2dp_data *a2dp;
933 a2dp = &client->d.a2dp;
935 if (!a2dp->session) {
936 a2dp->session = avdtp_get(&dev->src, &dev->dst);
940 if (!a2dp->session) {
945 if (a2dp->sep) {
950 rsep = avdtp_get_remote_sep(a2dp->session, client->seid);
956 a2dp->sep = a2dp_get(a2dp->session, rsep);
957 if (!a2dp->sep) {
962 if (!a2dp_sep_lock(a2dp->sep, a2dp->session)) {
964 a2dp->sep = NULL;
999 if (unref_avdtp_on_fail && a2dp->session) {
1000 avdtp_unref(a2dp->session);
1001 a2dp->session = NULL;
1008 struct a2dp_data *a2dp;
1015 a2dp = &client->d.a2dp;
1017 if (!a2dp->session)
1018 a2dp->session = avdtp_get(&dev->src, &dev->dst);
1020 if (!a2dp->session) {
1025 if (!a2dp->sep) {
1030 id = a2dp_config(a2dp->session, a2dp->sep, a2dp_config_complete,
1077 struct a2dp_data *a2dp = NULL;
1085 a2dp = &client->d.a2dp;
1087 if (!a2dp->sep) {
1092 if (!a2dp->session) {
1098 a2dp->session = session;
1101 id = a2dp_resume(a2dp->session, a2dp->sep, a2dp_resume_complete,
1145 a2dp->session = NULL;
1153 struct a2dp_data *a2dp = NULL;
1161 a2dp = &client->d.a2dp;
1163 if (!a2dp->sep) {
1168 if (!a2dp->session) {
1174 a2dp->session = session;
1177 if (!a2dp->sep) {
1182 id = a2dp_suspend(a2dp->session, a2dp->sep,
1222 a2dp->session = NULL;
1248 struct a2dp_data *a2dp;
1267 a2dp = &client->d.a2dp;
1270 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
1274 if (a2dp->sep) {
1275 a2dp_sep_unlock(a2dp->sep, a2dp->session);
1276 a2dp->sep = NULL;
1278 if (a2dp->session) {
1279 avdtp_unref(a2dp->session);
1280 a2dp->session = NULL;
1282 a2dp->stream = NULL;
1401 DBG("open a2dp - object=%s source=%s destination=%s lock=%s%s",
1652 struct a2dp_data *a2dp;
1667 a2dp = &client->d.a2dp;
1668 if (a2dp->session && a2dp->stream) {
1669 err = avdtp_delay_report(a2dp->session, a2dp->stream,