Lines Matching refs:g_observer
88 static struct cras_observer_server *g_observer; variable
103 DL_FOREACH(g_observer->clients, client) { in output_volume_alert()
117 DL_FOREACH(g_observer->clients, client) { in output_mute_alert()
133 DL_FOREACH(g_observer->clients, client) { in capture_gain_alert()
147 DL_FOREACH(g_observer->clients, client) { in capture_mute_alert()
165 DL_FOREACH(g_observer->clients, client) { in nodes_alert()
177 DL_FOREACH(g_observer->clients, client) { in active_node_alert()
192 DL_FOREACH(g_observer->clients, client) { in output_node_volume_alert()
207 DL_FOREACH(g_observer->clients, client) { in node_left_right_swapped_alert()
222 DL_FOREACH(g_observer->clients, client) { in input_node_gain_alert()
237 DL_FOREACH(g_observer->clients, client) { in suspend_changed_alert()
251 DL_FOREACH(g_observer->clients, client) { in num_active_streams_alert()
266 DL_FOREACH(g_observer->clients, client) { in hotword_triggered_alert()
281 DL_FOREACH(g_observer->clients, client) { in non_empty_audio_state_changed_alert()
304 &g_observer->alerts.alert, alert##_alert, \
313 &g_observer->alerts.alert[direction], \
328 g_observer = (struct cras_observer_server *) in cras_observer_server_init()
330 if (!g_observer) in cras_observer_server_init()
363 if (!g_observer) in cras_observer_server_free()
365 cras_alert_destroy(g_observer->alerts.output_volume); in cras_observer_server_free()
366 cras_alert_destroy(g_observer->alerts.output_mute); in cras_observer_server_free()
367 cras_alert_destroy(g_observer->alerts.capture_gain); in cras_observer_server_free()
368 cras_alert_destroy(g_observer->alerts.capture_mute); in cras_observer_server_free()
369 cras_alert_destroy(g_observer->alerts.nodes); in cras_observer_server_free()
370 cras_alert_destroy(g_observer->alerts.active_node); in cras_observer_server_free()
371 cras_alert_destroy(g_observer->alerts.output_node_volume); in cras_observer_server_free()
372 cras_alert_destroy(g_observer->alerts.node_left_right_swapped); in cras_observer_server_free()
373 cras_alert_destroy(g_observer->alerts.input_node_gain); in cras_observer_server_free()
374 cras_alert_destroy(g_observer->alerts.suspend_changed); in cras_observer_server_free()
375 cras_alert_destroy(g_observer->alerts.hotword_triggered); in cras_observer_server_free()
376 cras_alert_destroy(g_observer->alerts.non_empty_audio_state_changed); in cras_observer_server_free()
377 cras_alert_destroy(g_observer->alerts.num_active_streams[ in cras_observer_server_free()
379 cras_alert_destroy(g_observer->alerts.num_active_streams[ in cras_observer_server_free()
381 cras_alert_destroy(g_observer->alerts.num_active_streams[ in cras_observer_server_free()
383 free(g_observer); in cras_observer_server_free()
384 g_observer = NULL; in cras_observer_server_free()
424 DL_APPEND(g_observer->clients, client); in cras_observer_add()
433 DL_DELETE(g_observer->clients, client); in cras_observer_remove()
446 cras_alert_pending_data(g_observer->alerts.output_volume, in cras_observer_notify_output_volume()
458 cras_alert_pending_data(g_observer->alerts.output_mute, in cras_observer_notify_output_mute()
467 cras_alert_pending_data(g_observer->alerts.capture_gain, in cras_observer_notify_capture_gain()
478 cras_alert_pending_data(g_observer->alerts.capture_mute, in cras_observer_notify_capture_mute()
484 cras_alert_pending(g_observer->alerts.nodes); in cras_observer_notify_nodes()
494 cras_alert_pending_data(g_observer->alerts.active_node, in cras_observer_notify_active_node()
505 cras_alert_pending_data(g_observer->alerts.output_node_volume, in cras_observer_notify_output_node_volume()
516 cras_alert_pending_data(g_observer->alerts.node_left_right_swapped, in cras_observer_notify_node_left_right_swapped()
527 cras_alert_pending_data(g_observer->alerts.input_node_gain, in cras_observer_notify_input_node_gain()
536 cras_alert_pending_data(g_observer->alerts.suspend_changed, in cras_observer_notify_suspend_changed()
548 alert = g_observer->alerts.num_active_streams[dir]; in cras_observer_notify_num_active_streams()
561 cras_alert_pending_data(g_observer->alerts.hotword_triggered, in cras_observer_notify_hotword_triggered()
571 cras_alert_pending_data(g_observer->alerts.non_empty_audio_state_changed, in cras_observer_notify_non_empty_audio_state_changed()