mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
only store card profile if flagged for that
This commit is contained in:
parent
124de50ef8
commit
08154554b0
5 changed files with 17 additions and 6 deletions
|
|
@ -161,6 +161,9 @@ static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
|
|||
if (!(card = pa_idxset_get_by_index(c->cards, idx)))
|
||||
return;
|
||||
|
||||
if (!card->save_profile)
|
||||
return;
|
||||
|
||||
pa_strlcpy(entry.profile, card->active_profile ? card->active_profile->name : "", sizeof(entry.profile));
|
||||
|
||||
if ((old = read_entry(u, card->name))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue