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:
Takashi Iwai 2007-11-26 12:29:37 +01:00
parent a2d98ebd42
commit 72ede8a12d
4 changed files with 21 additions and 9 deletions

View file

@ -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;
}