mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
dmix - Fix snd_pcm_info()
Call the slave snd_pcm_info() as long as possible in the direct plugins (i.e. when the PCM device could be opened with O_APPEND mode). This allows dmix/dsnoop as a salve for PCM hook controls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ecf4b5af86
commit
da237814e7
1 changed files with 4 additions and 1 deletions
|
|
@ -591,7 +591,10 @@ int snd_pcm_direct_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned in
|
|||
|
||||
int snd_pcm_direct_info(snd_pcm_t *pcm, snd_pcm_info_t * info)
|
||||
{
|
||||
// snd_pcm_direct_t *dmix = pcm->private_data;
|
||||
snd_pcm_direct_t *dmix = pcm->private_data;
|
||||
|
||||
if (dmix->spcm && !dmix->shmptr->use_server)
|
||||
return snd_pcm_info(dmix->spcm, info);
|
||||
|
||||
memset(info, 0, sizeof(*info));
|
||||
info->stream = pcm->stream;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue