]> code.delx.au - pulseaudio/commitdiff
when changing profiles do the actual assignment in the generic implementation
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Jan 2009 00:59:15 +0000 (01:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Jan 2009 00:59:15 +0000 (01:59 +0100)
src/pulsecore/card.c

index f42ad91dc675d7ef29360d89d81aef3eddea04a7..af2a178b184e37ac6bc8bd38b44697304d6139f7 100644 (file)
@@ -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;
 }