From: Takashi Iwai Date: Wed, 28 Nov 2007 13:24:26 +0000 (+0100) Subject: softvol - add missing name X-Git-Tag: v1.0.16rc1~40 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2ae2bbf19035525bffd2a8c40bba4d4ee3347984;p=alsa-lib.git softvol - add missing name softvol can be also a pass-thru when the given control already exists as a hardware control, and the name isn't set properly because of slave creation. This patch fixes it. --- diff --git a/src/pcm/pcm_softvol.c b/src/pcm/pcm_softvol.c index df6404af..97894bb4 100644 --- a/src/pcm/pcm_softvol.c +++ b/src/pcm/pcm_softvol.c @@ -782,6 +782,8 @@ int snd_pcm_softvol_open(snd_pcm_t **pcmp, const char *name, if (err > 0) { /* hardware control - no need for softvol! */ softvol_free(svol); *pcmp = slave; /* just pass the slave */ + if (!slave->name) + slave->name = strdup(name); return 0; }