summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/card.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-21 01:59:15 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-21 01:59:15 +0100
commitcba4c6b9ebec0979d3dd98be5756b6a04859d146 (patch)
tree93f86fb6f2b93a954ff9e48c942e4752faa562aa /src/pulsecore/card.c
parent1d0bd6e5b77b372cd5168d2d19713c201df71d66 (diff)
when changing profiles do the actual assignment in the generic implementation
Diffstat (limited to 'src/pulsecore/card.c')
-rw-r--r--src/pulsecore/card.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c
index f42ad91d..af2a178b 100644
--- a/src/pulsecore/card.c
+++ b/src/pulsecore/card.c
@@ -196,7 +196,7 @@ int pa_card_set_profile(pa_card *c, const char *name) {
pa_assert(c);
if (!c->set_profile) {
- pa_log_warn("set_profile() operation not implemented for card %u", c->index);
+ pa_log_warn("set_profile() operation not implemented for card %u \"%s\"", c->index, c->name);
return -1;
}
@@ -214,5 +214,9 @@ int pa_card_set_profile(pa_card *c, const char *name) {
pa_subscription_post(c->core, PA_SUBSCRIPTION_EVENT_CARD|PA_SUBSCRIPTION_EVENT_CHANGE, c->index);
+ pa_log_info("Successfully changed profile of card %u \"%s\" to %s", c->index, c->name, profile->name);
+
+ c->active_profile = profile;
+
return 0;
}