Lines Matching refs:alert
156 static void nodes_prepare(struct cras_alert *alert) in nodes_prepare() argument
290 static int cras_observer_server_set_alert(struct cras_alert **alert, in cras_observer_server_set_alert() argument
295 *alert = cras_alert_create(prepare, flags); in cras_observer_server_set_alert()
296 if (!*alert) in cras_observer_server_set_alert()
298 return cras_alert_add_callback(*alert, cb, NULL); in cras_observer_server_set_alert()
301 #define CRAS_OBSERVER_SET_ALERT(alert,prepare,flags) \ argument
304 &g_observer->alerts.alert, alert##_alert, \
310 #define CRAS_OBSERVER_SET_ALERT_WITH_DIRECTION(alert,direction) \ argument
313 &g_observer->alerts.alert[direction], \
314 alert##_alert, NULL, 0); \
544 struct cras_alert *alert; in cras_observer_notify_num_active_streams() local
548 alert = g_observer->alerts.num_active_streams[dir]; in cras_observer_notify_num_active_streams()
549 if (!alert) in cras_observer_notify_num_active_streams()
552 cras_alert_pending_data(alert, &data, sizeof(data)); in cras_observer_notify_num_active_streams()