Lines Matching refs:notify
179 static const char *aics_notify_str(enum bt_aics_notify notify) in aics_notify_str() argument
181 switch (notify) { in aics_notify_str()
193 static void notify_work_reschedule(struct bt_aics *inst, enum bt_aics_notify notify, in notify_work_reschedule() argument
198 atomic_set_bit(inst->srv.notify, notify); in notify_work_reschedule()
203 aics_notify_str(notify), err); in notify_work_reschedule()
207 static void notify(struct bt_aics *inst, enum bt_aics_notify notify, const struct bt_uuid *uuid, in notify() function
214 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
216 LOG_ERR("Notify %s err %d", aics_notify_str(notify), err); in notify()
225 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_STATE)) { in notify_work_handler()
226 notify(inst, AICS_NOTIFY_STATE, BT_UUID_AICS_STATE, &inst->srv.state, in notify_work_handler()
230 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_DESCRIPTION)) { in notify_work_handler()
231 notify(inst, AICS_NOTIFY_DESCRIPTION, BT_UUID_AICS_DESCRIPTION, in notify_work_handler()
235 if (atomic_test_and_clear_bit(inst->srv.notify, AICS_NOTIFY_STATUS)) { in notify_work_handler()
236 notify(inst, AICS_NOTIFY_STATUS, BT_UUID_AICS_INPUT_STATUS, &inst->srv.status, in notify_work_handler()
241 static void value_changed(struct bt_aics *inst, enum bt_aics_notify notify) in value_changed() argument
243 notify_work_reschedule(inst, notify, K_NO_WAIT); in value_changed()
256 bool notify = false; in write_aics_control() local
293 notify = true; in write_aics_control()
303 notify = true; in write_aics_control()
313 notify = true; in write_aics_control()
323 notify = true; in write_aics_control()
333 notify = true; in write_aics_control()
340 if (notify) { in write_aics_control()
523 atomic_clear(aics->srv.notify); in bt_aics_register()