diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 326e50a..540e91b 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
return true;
}
-static bool endpoint_supported(struct btd_adapter *adapter)
+static bool a2dp_endpoint_supported(struct btd_adapter *adapter)
{
+ if (!btd_adapter_has_settings(adapter, MGMT_SETTING_BREDR))
+ return false;
+
return true;
}
bool (*func)(struct media_endpoint *endpoint, int *err);
bool (*supported)(struct btd_adapter *adapter);
} init_table[] = {
- { A2DP_SOURCE_UUID, endpoint_init_a2dp_source, endpoint_supported },
- { A2DP_SINK_UUID, endpoint_init_a2dp_sink, endpoint_supported },
+ { A2DP_SOURCE_UUID, endpoint_init_a2dp_source,
+ a2dp_endpoint_supported },
+ { A2DP_SINK_UUID, endpoint_init_a2dp_sink,
+ a2dp_endpoint_supported },
{ PAC_SINK_UUID, endpoint_init_pac_sink,
experimental_endpoint_supported },
{ PAC_SOURCE_UUID, endpoint_init_pac_source,