From: Takashi Iwai Date: Wed, 15 Sep 2004 18:45:51 +0000 (+0000) Subject: [ALSA-LIB] suppress PAUSE and RESUME for direct plugins X-Git-Tag: android-x86-9.0-r1~1958 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8ac16f151c7e622a171f5b5877191f16fcef4933;p=android-x86%2Fexternal-alsa-lib.git [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. --- diff --git a/src/pcm/pcm_direct.c b/src/pcm/pcm_direct.c index e76603a8..5856117d 100644 --- a/src/pcm/pcm_direct.c +++ b/src/pcm/pcm_direct.c @@ -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;