]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: initialize monotonic field for dshare and dsnoop, too
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Jan 2014 08:46:37 +0000 (09:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Jan 2014 08:46:37 +0000 (09:46 +0100)
Just like the previous fix for dmix, we need update for dshare and
dsnoop plugins.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_dshare.c
src/pcm/pcm_dsnoop.c

index 5b329510481e2165361165124ddbf2fc9c2af3f8..f2d1103a6bfbc7141f3fe57e37ee73af24f8d6c9 100644 (file)
@@ -792,7 +792,7 @@ int snd_pcm_dshare_open(snd_pcm_t **pcmp, const char *name,
 
        pcm->poll_fd = dshare->poll_fd;
        pcm->poll_events = POLLIN;      /* it's different than other plugins */
-               
+       pcm->monotonic = spcm->monotonic;
        pcm->mmap_rw = 1;
        snd_pcm_set_hw_ptr(pcm, &dshare->hw_ptr, -1, 0);
        snd_pcm_set_appl_ptr(pcm, &dshare->appl_ptr, -1, 0);
index 055e4f4983432cdfe7e3d6f10a8dfa5612952560..76379140c133726cb67e90b2d2ea3db74f9de8ae 100644 (file)
@@ -690,7 +690,7 @@ int snd_pcm_dsnoop_open(snd_pcm_t **pcmp, const char *name,
 
        pcm->poll_fd = dsnoop->poll_fd;
        pcm->poll_events = POLLIN;      /* it's different than other plugins */
-               
+       pcm->monotonic = spcm->monotonic;
        pcm->mmap_rw = 1;
        snd_pcm_set_hw_ptr(pcm, &dsnoop->hw_ptr, -1, 0);
        snd_pcm_set_appl_ptr(pcm, &dsnoop->appl_ptr, -1, 0);