Re: [alsa-cvslog] alsa-lib: SND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 11 Jan 2008, Clemens Ladisch wrote:

> Jaroslav Kysela wrote:
> > description:
> > SND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change
> > 
> > diff -r 3c87e22e70d8 -r 2519fcd54901 include/pcm.h
> > --- a/include/pcm.h	Thu Jan 10 10:01:14 2008 +0100
> > +++ b/include/pcm.h	Fri Jan 11 08:54:07 2008 +0100
> > @@ -281,9 +281,9 @@
> >  typedef enum _snd_pcm_tstamp {
> >  	/** No timestamp */
> >  	SND_PCM_TSTAMP_NONE = 0,
> > -	/** Update mmap'ed timestamp */
> > -	SND_PCM_TSTAMP_MMAP,
> > -	SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_MMAP
> > +	/** Update timestamp at every hardware position update */
> > +	SND_PCM_TSTAMP_ENABLE,
> > +	SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_ENABLE
> >  } snd_pcm_tstamp_t;
> 
> This change breaks backward compatibility.
> The v19-devel branch of PortAudio uses SND_PCM_TSTAMP_MMAP.

It's no problem to add SND_PCM_TSTAMP_MMAP as alias to 
SND_PCM_TSTAMP_ENABLE back. But I think that it would be better to let 
developers using SND_PCM_TSTAMP_MMAP realize that something was changed.

Binary compatibility is kept.

Note that SND_PCM_TSTAMP_MMAP is also quite unusable without 
new snd_pcm_htimestamp() function and support for monotonic timestamps in 
the latest driver/library code.

					Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux