alsa-mixer: Fix jack name comparison v13.99.3
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 4 Oct 2020 10:18:16 +0000 (13:18 +0300)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 30 Oct 2020 16:55:39 +0000 (16:55 +0000)
commitdaf3a3c4b08c89aa658353764c5237f0a4bef9f7
treea32e1a12ac5116f929f02a22d58cdd75739ee043
parenteee8292ae13dd6f2310153dff9163875f97b2aec
alsa-mixer: Fix jack name comparison

HDMI jacks are configured like this:

    [Jack HDMI/DP]
    append-pcm-to-name = yes

The pa_alsa_jack.name field is then "HDMI/DP" and pa_alsa_jack.alsa_name
is set to "HDMI/DP,pcm=3 Jack" or similar. If we compare the name fields
of HDMI paths, they appear to use the same jack element even though they
are different in reality, so all HDMI ports got incorrectly assigned to
the same availability group.
src/modules/alsa/alsa-mixer.c