From 2ae2bbf19035525bffd2a8c40bba4d4ee3347984 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 28 Nov 2007 14:24:26 +0100 Subject: [PATCH] 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. --- src/pcm/pcm_softvol.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.1