mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Set PCM name properly in empty and asym plugins
The PCM name isn't set properly on empty and asym plugins due to its call of snd_pcm_open_slave(). Now a new function snd_pcm_open_named_slave() is created and make snd_pcm_open_slave() an inline function calling the new one with name=NULL.
This commit is contained in:
parent
a2d98ebd42
commit
72ede8a12d
4 changed files with 21 additions and 9 deletions
|
|
@ -109,7 +109,8 @@ int _snd_pcm_asym_open(snd_pcm_t **pcmp, const char *name ATTRIBUTE_UNUSED,
|
|||
err = snd_pcm_slave_conf(root, slave, &sconf, 0);
|
||||
if (err < 0)
|
||||
return err;
|
||||
err = snd_pcm_open_slave(pcmp, root, sconf, stream, mode, conf);
|
||||
err = snd_pcm_open_named_slave(pcmp, name, root, sconf, stream,
|
||||
mode, conf);
|
||||
snd_config_delete(sconf);
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue