Lines Matching refs:da

98     DBusAudio *da = (DBusAudio *)hw->s->drv_opaque;  in dbus_put_buffer_out()  local
118 g_hash_table_iter_init(&iter, da->out_listeners); in dbus_put_buffer_out()
157 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_init_out() local
166 g_hash_table_iter_init(&iter, da->out_listeners); in dbus_init_out()
176 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_fini_out() local
181 g_hash_table_iter_init(&iter, da->out_listeners); in dbus_fini_out()
195 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_enable_out() local
205 g_hash_table_iter_init(&iter, da->out_listeners); in dbus_enable_out()
237 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_volume_out() local
245 g_hash_table_iter_init(&iter, da->out_listeners); in dbus_volume_out()
271 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_init_in() local
280 g_hash_table_iter_init(&iter, da->in_listeners); in dbus_init_in()
290 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_fini_in() local
294 g_hash_table_iter_init(&iter, da->in_listeners); in dbus_fini_in()
327 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_volume_in() local
335 g_hash_table_iter_init(&iter, da->in_listeners); in dbus_volume_in()
344 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_read() local
353 g_hash_table_iter_init(&iter, da->in_listeners); in dbus_read()
379 DBusAudio *da = (DBusAudio *)hw->s->drv_opaque; in dbus_enable_in() local
389 g_hash_table_iter_init(&iter, da->in_listeners); in dbus_enable_in()
400 DBusAudio *da = g_new0(DBusAudio, 1); in dbus_audio_init() local
402 da->out_listeners = g_hash_table_new_full(g_str_hash, g_str_equal, in dbus_audio_init()
404 da->in_listeners = g_hash_table_new_full(g_str_hash, g_str_equal, in dbus_audio_init()
406 return da; in dbus_audio_init()
412 DBusAudio *da = opaque; in dbus_audio_fini() local
414 if (da->server) { in dbus_audio_fini()
415 g_dbus_object_manager_server_unexport(da->server, in dbus_audio_fini()
418 g_clear_object(&da->audio); in dbus_audio_fini()
419 g_clear_object(&da->iface); in dbus_audio_fini()
420 g_clear_pointer(&da->in_listeners, g_hash_table_unref); in dbus_audio_fini()
421 g_clear_pointer(&da->out_listeners, g_hash_table_unref); in dbus_audio_fini()
422 g_clear_object(&da->server); in dbus_audio_fini()
423 g_free(da); in dbus_audio_fini()
430 DBusAudio *da) in listener_out_vanished_cb() argument
434 g_hash_table_remove(da->out_listeners, name); in listener_out_vanished_cb()
441 DBusAudio *da) in listener_in_vanished_cb() argument
445 g_hash_table_remove(da->in_listeners, name); in listener_in_vanished_cb()
457 DBusAudio *da = s->drv_opaque; in dbus_audio_register_listener() local
459 da->p2p ? "p2p" : g_dbus_method_invocation_get_sender(invocation); in dbus_audio_register_listener()
465 GHashTable *listeners = out ? da->out_listeners : da->in_listeners; in dbus_audio_register_listener()
513 da->iface, invocation in dbus_audio_register_listener()
520 da->iface, invocation in dbus_audio_register_listener()
593 da, in dbus_audio_register_listener()
633 DBusAudio *da = s->drv_opaque; in dbus_audio_set_server() local
635 g_assert(da); in dbus_audio_set_server()
636 g_assert(!da->server); in dbus_audio_set_server()
638 da->server = g_object_ref(server); in dbus_audio_set_server()
639 da->p2p = p2p; in dbus_audio_set_server()
641 da->audio = g_dbus_object_skeleton_new(DBUS_DISPLAY1_AUDIO_PATH); in dbus_audio_set_server()
642 da->iface = qemu_dbus_display1_audio_skeleton_new(); in dbus_audio_set_server()
643 g_object_connect(da->iface, in dbus_audio_set_server()
650 g_dbus_object_skeleton_add_interface(G_DBUS_OBJECT_SKELETON(da->audio), in dbus_audio_set_server()
651 G_DBUS_INTERFACE_SKELETON(da->iface)); in dbus_audio_set_server()
652 g_dbus_object_manager_server_export(da->server, da->audio); in dbus_audio_set_server()