Lines Matching refs:card
54 pa_card *card; member
148 idx = c->card->index; in handle_get_index()
160 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_STRING, &c->card->name); in handle_get_name()
170 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_STRING, &c->card->driver); in handle_get_driver()
181 if (!c->card->module) { in handle_get_owner_module()
182 …conn, msg, PA_DBUS_ERROR_NO_SUCH_PROPERTY, "Card %s doesn't have an owner module.", c->card->name); in handle_get_owner_module()
186 owner_module = pa_dbusiface_core_get_module_path(c->core, c->card->module); in handle_get_owner_module()
201 *n = pa_idxset_size(c->card->sinks); in get_sinks()
208 PA_IDXSET_FOREACH(sink, c->card->sinks, idx) { in get_sinks()
242 *n = pa_idxset_size(c->card->sources); in get_sources()
249 PA_IDXSET_FOREACH(source, c->card->sources, idx) { in get_sources()
351 …if ((r = pa_card_set_profile(c->card, pa_dbusiface_card_profile_get_profile(new_active), true)) < … in handle_set_active_profile()
389 idx = c->card->index; in handle_get_all()
390 if (c->card->module) in handle_get_all()
391 owner_module = pa_dbusiface_core_get_module_path(c->core, c->card->module); in handle_get_all()
403 …ct_iter, property_handlers[PROPERTY_HANDLER_NAME].property_name, DBUS_TYPE_STRING, &c->card->name); in handle_get_all()
404 …ter, property_handlers[PROPERTY_HANDLER_DRIVER].property_name, DBUS_TYPE_STRING, &c->card->driver); in handle_get_all()
440 …onn, msg, PA_DBUS_ERROR_NOT_FOUND, "%s: No such profile on card %s.", profile_name, c->card->name); in handle_get_profile_by_name()
452 if (!pa_proplist_equal(c->proplist, c->card->proplist)) { in check_card_proplist()
455 pa_proplist_update(c->proplist, PA_UPDATE_SET, c->card->proplist); in check_card_proplist()
474 if (dbus_card->card != core_card) in card_profile_changed_cb()
477 dbus_card->active_profile = dbus_card->card->active_profile; in card_profile_changed_cb()
502 if (profile->card != c->card) in card_profile_added_cb()
532 if (profile->card != c->card) in card_profile_available_changed_cb()
555 pa_dbusiface_card *pa_dbusiface_card_new(pa_dbusiface_core *core, pa_card *card) { in pa_dbusiface_card_new() argument
561 pa_assert(card); in pa_dbusiface_card_new()
565 c->card = card; in pa_dbusiface_card_new()
566 c->path = pa_sprintf_malloc("%s/%s%u", PA_DBUS_CORE_OBJECT_PATH, OBJECT_NAME, card->index); in pa_dbusiface_card_new()
570 c->active_profile = card->active_profile; in pa_dbusiface_card_new()
571 c->proplist = pa_proplist_copy(card->proplist); in pa_dbusiface_card_new()
572 c->dbus_protocol = pa_dbus_protocol_get(card->core); in pa_dbusiface_card_new()
574 PA_HASHMAP_FOREACH(profile, card->profiles, state) { in pa_dbusiface_card_new()
575 …pa_dbusiface_card_profile *p = pa_dbusiface_card_profile_new(c, card->core, profile, c->next_profi… in pa_dbusiface_card_new()
581 …c->card_profile_changed_slot = pa_hook_connect(&card->core->hooks[PA_CORE_HOOK_CARD_PROFILE_CHANGE… in pa_dbusiface_card_new()
583 …c->card_profile_added_slot = pa_hook_connect(&card->core->hooks[PA_CORE_HOOK_CARD_PROFILE_ADDED], … in pa_dbusiface_card_new()
585 …c->card_profile_available_slot = pa_hook_connect(&card->core->hooks[PA_CORE_HOOK_CARD_PROFILE_AVAI… in pa_dbusiface_card_new()