Home | History | Annotate | Download | only in audio

Lines Matching refs:a2dp

47 #include "a2dp.h"
83 struct a2dp_data a2dp;
202 struct a2dp_data *a2dp = &client->d.a2dp;
206 if (a2dp->sep) {
207 a2dp_sep_unlock(a2dp->sep, a2dp->session);
208 a2dp->sep = NULL;
210 if (a2dp->session) {
211 avdtp_unref(a2dp->session);
212 a2dp->session = NULL;
214 a2dp->stream = NULL;
578 struct a2dp_data *a2dp = &client->d.a2dp;
631 struct a2dp_data *ca2dp = &c->d.a2dp;
655 if (a2dp->sep) {
656 a2dp_sep_unlock(a2dp->sep, a2dp->session);
657 a2dp->sep = NULL;
660 avdtp_unref(a2dp->session);
661 a2dp->session = NULL;
662 a2dp->stream = NULL;
673 struct a2dp_data *a2dp = &client->d.a2dp;
688 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
691 a2dp->sep = sep;
692 a2dp->stream = stream;
719 avdtp_unref(a2dp->session);
721 a2dp->session = NULL;
722 a2dp->stream = NULL;
723 a2dp->sep = NULL;
733 struct a2dp_data *a2dp = &client->d.a2dp;
765 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
770 if (a2dp->sep) {
771 a2dp_sep_unlock(a2dp->sep, a2dp->session);
772 a2dp->sep = NULL;
775 avdtp_unref(a2dp->session);
776 a2dp->session = NULL;
777 a2dp->stream = NULL;
786 struct a2dp_data *a2dp = &client->d.a2dp;
805 if (a2dp->sep) {
806 a2dp_sep_unlock(a2dp->sep, a2dp->session);
807 a2dp->sep = NULL;
810 avdtp_unref(a2dp->session);
811 a2dp->session = NULL;
812 a2dp->stream = NULL;
817 struct a2dp_data *a2dp;
822 a2dp = &client->d.a2dp;
824 if (!a2dp->session)
825 a2dp->session = avdtp_get(&dev->src, &dev->dst);
827 if (!a2dp->session) {
832 err = avdtp_discover(a2dp->session, a2dp_discovery_complete,
835 if (a2dp->session) {
836 avdtp_unref(a2dp->session);
837 a2dp->session = NULL;
884 struct a2dp_data *a2dp;
892 a2dp = &client->d.a2dp;
894 if (!a2dp->session) {
895 a2dp->session = avdtp_get(&dev->src, &dev->dst);
899 if (!a2dp->session) {
904 if (a2dp->sep) {
909 rsep = avdtp_get_remote_sep(a2dp->session, client->seid);
915 a2dp->sep = a2dp_get(a2dp->session, rsep);
916 if (!a2dp->sep) {
921 if (!a2dp_sep_lock(a2dp->sep, a2dp->session)) {
923 a2dp->sep = NULL;
958 if (unref_avdtp_on_fail && a2dp->session) {
959 avdtp_unref(a2dp->session);
960 a2dp->session = NULL;
967 struct a2dp_data *a2dp;
974 a2dp = &client->d.a2dp;
976 if (!a2dp->session)
977 a2dp->session = avdtp_get(&dev->src, &dev->dst);
979 if (!a2dp->session) {
984 if (!a2dp->sep) {
989 id = a2dp_config(a2dp->session, a2dp->sep, a2dp_config_complete,
1034 struct a2dp_data *a2dp;
1042 a2dp = &client->d.a2dp;
1044 if (!a2dp->session) {
1045 a2dp->session = avdtp_get(&dev->src, &dev->dst);
1049 if (!a2dp->session) {
1054 if (!a2dp->sep) {
1059 id = a2dp_resume(a2dp->session, a2dp->sep, a2dp_resume_complete,
1101 if (unref_avdtp_on_fail && a2dp->session) {
1102 avdtp_unref(a2dp->session);
1103 a2dp->session = NULL;
1110 struct a2dp_data *a2dp;
1118 a2dp = &client->d.a2dp;
1120 if (!a2dp->session) {
1121 a2dp->session = avdtp_get(&dev->src, &dev->dst);
1125 if (!a2dp->session) {
1130 if (!a2dp->sep) {
1135 id = a2dp_suspend(a2dp->session, a2dp->sep,
1173 if (unref_avdtp_on_fail && a2dp->session) {
1174 avdtp_unref(a2dp->session);
1175 a2dp->session = NULL;
1200 struct a2dp_data *a2dp;
1219 a2dp = &client->d.a2dp;
1222 avdtp_stream_remove_cb(a2dp->session, a2dp->stream,
1224 if (a2dp->sep) {
1225 a2dp_sep_unlock(a2dp->sep, a2dp->session);
1226 a2dp->sep = NULL;
1228 if (a2dp->session) {
1229 avdtp_unref(a2dp->session);
1230 a2dp->session = NULL;
1338 debug("open a2dp - object=%s source=%s destination=%s lock=%s%s",