summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-18 03:43:51 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-18 03:43:51 +0200
commit60df970bd9a17f4e7d2a09f5e20120be1beff2ab (patch)
tree743013e9c237f1c0886b570982c131bed9a2fd18 /src
parentb5cea8d5907a5af2072acfd4570fae3c99714502 (diff)
alsa: properly count mappings of manually defined profiles
Diffstat (limited to 'src')
-rw-r--r--src/modules/alsa/alsa-mixer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
index c5db303e..def26221 100644
--- a/src/modules/alsa/alsa-mixer.c
+++ b/src/modules/alsa/alsa-mixer.c
@@ -2945,6 +2945,9 @@ static int profile_verify(pa_alsa_profile *p) {
}
pa_idxset_put(p->output_mappings, m, NULL);
+
+ if (p->supported)
+ m->supported++;
}
pa_xstrfreev(p->output_mapping_names);
@@ -2978,6 +2981,9 @@ static int profile_verify(pa_alsa_profile *p) {
}
pa_idxset_put(p->input_mappings, m, NULL);
+
+ if (p->supported)
+ m->supported++;
}
pa_xstrfreev(p->input_mapping_names);