mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
[ALSA-LIB] suppress PAUSE and RESUME for direct plugins
Direct plugins don't work well with PAUSE and RESUME. The info bits are cleared for these plugins to suppress these features.
This commit is contained in:
parent
6f515096d9
commit
8ac16f151c
1 changed files with 1 additions and 1 deletions
|
|
@ -807,7 +807,7 @@ int snd_pcm_direct_initialize_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, str
|
|||
dmix->shmptr->s.rate = spcm->rate;
|
||||
dmix->shmptr->s.format = spcm->format;
|
||||
dmix->shmptr->s.boundary = spcm->boundary;
|
||||
dmix->shmptr->s.info = spcm->info;
|
||||
dmix->shmptr->s.info = spcm->info & ~(SND_PCM_INFO_PAUSE|SND_PCM_INFO_RESUME);
|
||||
dmix->shmptr->s.msbits = spcm->msbits;
|
||||
|
||||
spcm->donot_close = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue