alsa-mixer: Fix path set building when using the element-output or element-input...
commit46359043c45df4a89cd73eb0c4ca655c6b90f6d2
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 25 Feb 2011 14:27:27 +0000 (25 16:27 +0200)
committerColin Guthrie <cguthrie@mandriva.org>
Fri, 25 Feb 2011 15:44:44 +0000 (25 15:44 +0000)
treef002dd3d68264ab2947c180a698ea6ab78abc87d
parent3153b60a62fec0a3d826b3c0427044d1a11df3a1
alsa-mixer: Fix path set building when using the element-output or element-input mapping options in profile set configuration.

When creating synthesized paths, pa_alsa_path_set_new() created duplicate
elements for each path, and one of the duplicate elements would be marked as
required absent. That made path probing fail. While debugging this, I noticed
also that pa_alsa_path_synthesize() didn't initialize p->last_element properly.
src/modules/alsa/alsa-mixer.c