Lines Matching +full:non +full:- +full:permanent
6 * Copyright (c) 2019 - 2021 Nordic Semiconductor ASA
8 * SPDX-License-Identifier: Apache-2.0
108 atomic_clear_bit(client->flags, FLAG_PLAYER_NAME_CHANGED); in read_player_name()
109 } else if (atomic_test_bit(client->flags, FLAG_PLAYER_NAME_CHANGED)) { in read_player_name()
153 atomic_clear_bit(client->flags, FLAG_ICON_URL_CHANGED); in read_icon_url()
154 } else if (atomic_test_bit(client->flags, FLAG_ICON_URL_CHANGED)) { in read_icon_url()
180 atomic_clear_bit(client->flags, FLAG_TRACK_TITLE_CHANGED); in read_track_title()
181 } else if (atomic_test_bit(client->flags, FLAG_TRACK_TITLE_CHANGED)) { in read_track_title()
208 atomic_clear_bit(client->flags, FLAG_TRACK_DURATION_CHANGED); in read_track_duration()
230 atomic_clear_bit(client->flags, FLAG_TRACK_POSITION_CHANGED); in read_track_position()
278 atomic_clear_bit(client->flags, FLAG_PLAYBACK_SPEED_CHANGED); in read_playback_speed()
320 atomic_clear_bit(client->flags, FLAG_SEEKING_SPEED_CHANGED); in read_seeking_speed()
363 atomic_clear_bit(client->flags, FLAG_CURRENT_TRACK_OBJ_ID_CHANGED); in read_current_track_id()
418 atomic_clear_bit(client->flags, FLAG_NEXT_TRACK_OBJ_ID_CHANGED); in read_next_track_id()
483 atomic_clear_bit(client->flags, FLAG_PARENT_GROUP_OBJ_ID_CHANGED); in read_parent_group_id()
510 atomic_clear_bit(client->flags, FLAG_CURRENT_GROUP_OBJ_ID_CHANGED); in read_current_group_id()
565 atomic_clear_bit(client->flags, FLAG_PLAYING_ORDER_CHANGED); in read_playing_order()
620 atomic_clear_bit(client->flags, FLAG_MEDIA_STATE_CHANGED); in read_media_state()
654 /* MCS does not specify what to return in case of an error - Only what to notify*/ in write_control_point()
671 if (atomic_test_and_set_bit(client->flags, FLAG_MEDIA_CONTROL_POINT_BUSY)) { in write_control_point()
714 atomic_clear_bit(client->flags, FLAG_MEDIA_CONTROL_OPCODES_CHANGED); in read_opcodes_supported()
743 if (atomic_test_and_set_bit(client->flags, FLAG_SEARCH_CONTROL_POINT_BUSY)) { in write_search_control_point()
781 atomic_clear_bit(client->flags, FLAG_SEARCH_RESULTS_OBJ_ID_CHANGED); in read_search_results_id()
784 /* TODO: The permanent solution here should be that the call to */ in read_search_results_id()
785 /* mpl should fill the UUID in a pointed-to value, and return a */ in read_search_results_id()
788 /* For now, fix the issue here - send zero-length data if the */ in read_search_results_id()
790 /* *Spec requirement - IDs may not be valid, in which case the */ in read_search_results_id()
825 /* Defines for OTS-dependent characteristics - empty if no OTS */
972 /* Helper function to notify non-string values */
978 if (err == -ENOTCONN) { in notify()
995 maxlen = att_mtu - att_header_size; /* Subtract opcode and handle */ in notify_string()
1022 atomic_set_bit(client->flags, FLAG_ICON_URL_CHANGED); in mark_icon_url_changed_cb()
1042 if (atomic_test_and_clear_bit(client->flags, FLAG_PLAYER_NAME_CHANGED)) { in notify_cb()
1049 if (atomic_test_and_clear_bit(client->flags, FLAG_TRACK_TITLE_CHANGED)) { in notify_cb()
1056 if (atomic_test_and_clear_bit(client->flags, FLAG_TRACK_DURATION_CHANGED)) { in notify_cb()
1064 if (atomic_test_and_clear_bit(client->flags, FLAG_TRACK_POSITION_CHANGED)) { in notify_cb()
1072 if (atomic_test_and_clear_bit(client->flags, FLAG_PLAYBACK_SPEED_CHANGED)) { in notify_cb()
1079 if (atomic_test_and_clear_bit(client->flags, FLAG_SEEKING_SPEED_CHANGED)) { in notify_cb()
1087 if (atomic_test_and_clear_bit(client->flags, FLAG_CURRENT_TRACK_OBJ_ID_CHANGED)) { in notify_cb()
1097 if (atomic_test_and_clear_bit(client->flags, FLAG_NEXT_TRACK_OBJ_ID_CHANGED)) { in notify_cb()
1116 if (atomic_test_and_clear_bit(client->flags, FLAG_PARENT_GROUP_OBJ_ID_CHANGED)) { in notify_cb()
1126 if (atomic_test_and_clear_bit(client->flags, FLAG_CURRENT_GROUP_OBJ_ID_CHANGED)) { in notify_cb()
1137 if (atomic_test_and_clear_bit(client->flags, FLAG_TRACK_CHANGED)) { in notify_cb()
1142 if (atomic_test_and_clear_bit(client->flags, FLAG_PLAYING_ORDER_CHANGED)) { in notify_cb()
1149 if (atomic_test_and_clear_bit(client->flags, FLAG_MEDIA_STATE_CHANGED)) { in notify_cb()
1156 if (atomic_test_and_clear_bit(client->flags, FLAG_MEDIA_CONTROL_OPCODES_CHANGED)) { in notify_cb()
1165 if (atomic_test_and_clear_bit(client->flags, FLAG_SEARCH_RESULTS_OBJ_ID_CHANGED)) { in notify_cb()
1175 if (atomic_test_and_clear_bit(client->flags, FLAG_SEARCH_CONTROL_POINT_RESULT)) { in notify_cb()
1176 uint8_t result_code = client->search_control_point_result; in notify_cb()
1178 LOG_DBG("Notifying search control point - result: %d", result_code); in notify_cb()
1183 if (atomic_test_and_clear_bit(client->flags, FLAG_MEDIA_CONTROL_POINT_RESULT)) { in notify_cb()
1184 LOG_DBG("Notifying control point command - opcode: %d, result: %d", in notify_cb()
1185 client->cmd_ntf.requested_opcode, client->cmd_ntf.result_code); in notify_cb()
1186 notify(BT_UUID_MCS_MEDIA_CONTROL_POINT, &client->cmd_ntf, sizeof(client->cmd_ntf)); in notify_cb()
1214 atomic_set_bit(client->flags, POINTER_TO_UINT(data)); in defer_value_ntf()
1321 if (atomic_test_and_clear_bit(client->flags, FLAG_MEDIA_CONTROL_POINT_BUSY)) { in defer_media_control_point_ntf()
1322 client->cmd_ntf = *cmd_ntf; in defer_media_control_point_ntf()
1323 atomic_set_bit(client->flags, FLAG_MEDIA_CONTROL_POINT_RESULT); in defer_media_control_point_ntf()
1358 if (atomic_test_and_clear_bit(client->flags, FLAG_SEARCH_CONTROL_POINT_BUSY)) { in defer_search_control_point_ntf()
1359 client->search_control_point_result = POINTER_TO_UINT(data); in defer_search_control_point_ntf()
1360 atomic_set_bit(client->flags, FLAG_SEARCH_CONTROL_POINT_RESULT); in defer_search_control_point_ntf()
1387 return -EALREADY; in bt_mcs_init()
1399 return -ENOMEM; in bt_mcs_init()
1428 /* TODO: How does one un-register the OTS? */ in bt_mcs_init()
1430 return -ENOEXEC; in bt_mcs_init()