mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
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.
This commit is contained in:
parent
72ede8a12d
commit
2ae2bbf190
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue