Lines Matching full:notify
53 static const char *vocs_notify_str(enum bt_vocs_notify notify) in vocs_notify_str() argument
55 switch (notify) { in vocs_notify_str()
67 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument
72 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
77 vocs_notify_str(notify), err); in notify_work_reschedule()
81 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() function
88 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
90 LOG_ERR("Notify %s err %d", vocs_notify_str(notify), err); in notify()
99 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler()
100 notify(inst, NOTIFY_STATE, BT_UUID_VOCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler()
103 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_LOCATION)) { in notify_work_handler()
104 notify(inst, NOTIFY_LOCATION, BT_UUID_VOCS_LOCATION, &inst->location, in notify_work_handler()
108 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_OUTPUT_DESC)) { in notify_work_handler()
109 notify(inst, NOTIFY_OUTPUT_DESC, BT_UUID_VOCS_DESCRIPTION, &inst->output_desc, in notify_work_handler()
114 static void value_changed(struct bt_vocs_server *inst, enum bt_vocs_notify notify) in value_changed() argument
116 notify_work_reschedule(inst, notify, K_NO_WAIT); in value_changed()
174 bool notify = false; in write_vocs_control() local
210 notify = true; in write_vocs_control()
217 if (notify) { in write_vocs_control()
455 atomic_clear(inst->notify); in bt_vocs_register()