pcm_hw plugin: preserve monotonic flag also after snd_pcm_hw_params() call
authorJaroslav Kysela <perex@perex.cz>
Wed, 8 Apr 2009 07:29:35 +0000 (09:29 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 8 Apr 2009 07:29:35 +0000 (09:29 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/pcm/pcm_hw.c

index e9ce092..c7e6e56 100644 (file)
@@ -326,6 +326,8 @@ static int snd_pcm_hw_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
                SYSMSG("SNDRV_PCM_IOCTL_HW_PARAMS failed");
                return err;
        }
+       params->info &= ~0xf0000000;
+       params->info |= (pcm->monotonic ? SND_PCM_INFO_MONOTONIC : 0);
        err = sync_ptr(hw, 0);
        if (err < 0)
                return err;