mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
when changing profiles do the actual assignment in the generic implementation
This commit is contained in:
parent
1d0bd6e5b7
commit
cba4c6b9eb
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue