From: Takashi Iwai Date: Thu, 23 Jan 2014 08:46:37 +0000 (+0100) Subject: pcm: initialize monotonic field for dshare and dsnoop, too X-Git-Tag: v1.0.28~31 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=507cdc13187f5eeb222eeb43550cf6a67c3b29c9;p=alsa-lib.git pcm: initialize monotonic field for dshare and dsnoop, too Just like the previous fix for dmix, we need update for dshare and dsnoop plugins. Signed-off-by: Takashi Iwai --- diff --git a/src/pcm/pcm_dshare.c b/src/pcm/pcm_dshare.c index 5b329510..f2d1103a 100644 --- a/src/pcm/pcm_dshare.c +++ b/src/pcm/pcm_dshare.c @@ -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); diff --git a/src/pcm/pcm_dsnoop.c b/src/pcm/pcm_dsnoop.c index 055e4f49..76379140 100644 --- a/src/pcm/pcm_dsnoop.c +++ b/src/pcm/pcm_dsnoop.c @@ -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);