From: Lennart Poettering Date: Thu, 18 Jun 2009 01:43:51 +0000 (+0200) Subject: alsa: properly count mappings of manually defined profiles X-Git-Tag: submit/2.0-panda/20130828.192557~1685 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60df970bd9a17f4e7d2a09f5e20120be1beff2ab;p=profile%2Fivi%2Fpulseaudio-panda.git alsa: properly count mappings of manually defined profiles --- diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c index c5db303..def2622 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);