Commit fcf83fda authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: show device product name rather than card number

(cherry picked from commit 1ddac7d47eb3c34eeffb03be6261c766686a8f96)
parent c85689ef
......@@ -178,14 +178,10 @@ static int AddSource (services_discovery_t *sd, const pa_source_info *info)
*dp = d;
}
char *card;
if (info->card == PA_INVALID_INDEX
|| unlikely(asprintf (&card, N_("Card %"PRIu32), info->card) == -1))
card = NULL;
const char *card = pa_proplist_gets(info->proplist, "device.product.name");
services_discovery_AddItem (sd, item,
(card != NULL) ? card : N_("Generic"));
d->sd = sd;
free (card);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment