Lines Matching full:contexts

84 	/* Sink Available Contexts override value */
89 /* Source Available Contexts override value */
304 static int set_available_contexts(uint16_t contexts, uint16_t *available, in set_available_contexts() argument
307 if (contexts & ~supported) { in set_available_contexts()
311 if (contexts == *available) { in set_available_contexts()
315 *available = contexts; in set_available_contexts()
323 static int set_supported_contexts(uint16_t contexts, uint16_t *supported, in set_supported_contexts() argument
331 contexts |= BT_AUDIO_CONTEXT_TYPE_UNSPECIFIED; in set_supported_contexts()
333 if (*supported == contexts) { in set_supported_contexts()
337 *supported = contexts; in set_supported_contexts()
339 /* Update available contexts if needed*/ in set_supported_contexts()
340 if ((contexts & *available) != *available) { in set_supported_contexts()
341 err = set_available_contexts(contexts & *available, available, contexts); in set_supported_contexts()
774 LOG_WRN("Available Audio Contexts notify failed: %d", err); in available_contexts_notify()
792 LOG_WRN("Supported Audio Contexts notify failed: %d", err); in supported_contexts_notify()
907 LOG_DBG("Notifying Available Contexts"); in notify_cb()
916 LOG_DBG("Notifying Supported Contexts"); in notify_cb()
1182 int bt_pacs_set_available_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts) in bt_pacs_set_available_contexts() argument
1186 return set_available_contexts(contexts, &snk_available_contexts, in bt_pacs_set_available_contexts()
1189 return set_available_contexts(contexts, &src_available_contexts, in bt_pacs_set_available_contexts()
1197 enum bt_audio_context *contexts) in bt_pacs_conn_set_available_contexts_for_conn() argument
1218 if (contexts != NULL) { in bt_pacs_conn_set_available_contexts_for_conn()
1219 client->snk_available_contexts = UINT_TO_POINTER(*contexts); in bt_pacs_conn_set_available_contexts_for_conn()
1228 if (contexts != NULL) { in bt_pacs_conn_set_available_contexts_for_conn()
1229 client->src_available_contexts = UINT_TO_POINTER(*contexts); in bt_pacs_conn_set_available_contexts_for_conn()
1255 int bt_pacs_set_supported_contexts(enum bt_audio_dir dir, enum bt_audio_context contexts) in bt_pacs_set_supported_contexts() argument
1280 return set_supported_contexts(contexts, supported_contexts, available_contexts); in bt_pacs_set_supported_contexts()