[alsa-devel] alsa-lib pcm_share.c snd_pcm_share_open() bug ?

Takashi Iwai tiwai at suse.de
Tue Apr 13 10:17:52 CEST 2010


At Tue, 13 Apr 2010 10:10:02 +0200 (CEST),
Jaroslav Kysela wrote:
> 
> On Tue, 13 Apr 2010, Takashi Iwai wrote:
> 
> > At Fri, 9 Apr 2010 11:03:03 -0400,
> > Mathieu Desnoyers wrote:
> >>
> >> Hi,
> >>
> >> I was looking at snd_pcm_share_open() in alsa-lib-1.0.22, and stumbled on the
> >> following line:
> >>
> >>         pcm->monotonic = pcm->monotonic;
> >>
> >> what is that supposed to do ? There is clearly something wrong there.
> >
> > Yeah, very fishy here.
> >
> > I suppose this plugin can't handle monotonic time as is.
> > Jaroslav, could you fix that?
> 
> The plugin can handle the monotonic clock as well. The correct line should 
> be:
> 
>  	pcm->monotonic = slave->pcm->monotonic;

Ah indeed.  It's a so complex code that is barely used ;)


thanks,

Takashi


More information about the Alsa-devel mailing list