mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-10 13:30:01 -05:00
Export __snd_pcm_mmap_emul_open()
Export __snd_pcm_mmap_emul_open() for plug layer. This isn't exported globally, though. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8843cf11e0
commit
538726cc55
2 changed files with 7 additions and 3 deletions
|
|
@ -862,6 +862,8 @@ snd_pcm_open_slave(snd_pcm_t **pcmp, snd_config_t *root,
|
|||
int snd_pcm_conf_generic_id(const char *id);
|
||||
|
||||
int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emulation, int sync_ptr_ioctl);
|
||||
int __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
||||
snd_pcm_t *slave, int close_slave);
|
||||
|
||||
int snd_pcm_wait_nocheck(snd_pcm_t *pcm, int timeout);
|
||||
|
||||
|
|
|
|||
|
|
@ -375,8 +375,9 @@ static snd_pcm_fast_ops_t snd_pcm_mmap_emul_fast_ops = {
|
|||
.poll_revents = snd_pcm_generic_poll_revents,
|
||||
};
|
||||
|
||||
static int snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
||||
snd_pcm_t *slave, int close_slave)
|
||||
#ifndef DOC_HIDDEN
|
||||
int __snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
||||
snd_pcm_t *slave, int close_slave)
|
||||
{
|
||||
snd_pcm_t *pcm;
|
||||
mmap_emul_t *map;
|
||||
|
|
@ -406,6 +407,7 @@ static int snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*! \page pcm_plugins
|
||||
|
||||
|
|
@ -473,7 +475,7 @@ int _snd_pcm_mmap_emul_open(snd_pcm_t **pcmp, const char *name,
|
|||
snd_config_delete(sconf);
|
||||
if (err < 0)
|
||||
return err;
|
||||
err = snd_pcm_mmap_emul_open(pcmp, name, spcm, 1);
|
||||
err = __snd_pcm_mmap_emul_open(pcmp, name, spcm, 1);
|
||||
if (err < 0)
|
||||
snd_pcm_close(spcm);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue