All of lore.kernel.org
 help / color / mirror / Atom feed
* new "in-compatible" alsa-lib PCM API
@ 2002-09-17 12:58 Jaroslav Kysela
  2002-09-17 17:49 ` Kai Vehmanen
                   ` (3 more replies)
  0 siblings, 4 replies; 35+ messages in thread
From: Jaroslav Kysela @ 2002-09-17 12:58 UTC (permalink / raw)
  To: ALSA development

Hi all,

	I've made a simple cleanup which unifies all snd_pcm_hw_params_* 
functions. The first set of changes are in CVS a few days, but some 
developers pointed that the backwards compatibility is a right thing.
	After some thoughs, I think that this sort of cleanups is good for 
implementing at any time. It doesn't break the implementation (in the 
sense of behaviour), but it makes that older code is not compilable. 
Fortunately, any C programmer can fix the compilation in this case, so 
it's definitely not a big problem.
	The much bigger drawback is that we have no binary compatibility 
with older applications. I decided to use the versioned symbols in the 
future versions of alsa library and to keep the binary compatibility with 
older versions of library (function declarations). At the time, we have 
two symbol versions: ALSA_0.9.0 and ALSA_0.9.0rc4.
	These solutions exists for co-existing older and newer 
applications:

1) New "versioned" library is libasound.so.3, so that older applications 
   uses older libasound.so.2. 
2) Recompile older applications with "compatible library" which contains
   versioned symbols ALSA_0.9, but headers are compatible with 0.9.0rc3. 
   This library will be also libasound.so.3, but ALL symbols have ALSA_0.9 
   tag which allows to override functions in future. The compatible library
   will be built when '--with-compat-rc3' argument is passed to the 
   configure script in alsa-lib. This solution allows keeping binary 
   compatibility and allows to update alsa-lib with recent one (built 
   without --with-compat-rc3).

I suggest to use the second solution from this time.

Objections/further discussion is welcome.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com



-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab

^ permalink raw reply	[flat|nested] 35+ messages in thread
* Re: new "in-compatible" alsa-lib PCM API
@ 2002-09-17 23:15 Chris Rankin
  2002-09-18  8:56 ` Jaroslav Kysela
  0 siblings, 1 reply; 35+ messages in thread
From: Chris Rankin @ 2002-09-17 23:15 UTC (permalink / raw)
  To: perex; +Cc: alsa-devel

Does this mean that the alsa-lib needs to be updated in CVS to be -rc4? 
I am trying to compile xine and wine from CVS as well as ALSA, and this 
doesn't work because alsa-utils needs the new headers but xine and wine 
currently need the old ones. I imagine that the xine and wine people can 
update their code-bases accordingly, but I doubt that they would relish 
the prospect of checking for each changed ALSA API in their configure 
scripts.

Chris



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2002-09-21  5:41 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-17 12:58 new "in-compatible" alsa-lib PCM API Jaroslav Kysela
2002-09-17 17:49 ` Kai Vehmanen
2002-09-17 18:29   ` Jaroslav Kysela
2002-09-18  1:08 ` Jack O'Quin
2002-09-18  9:12   ` Jaroslav Kysela
2002-09-18  9:36 ` Takashi Iwai
2002-09-18  9:46   ` Richard Bown
2002-09-18 10:06     ` Takashi Iwai
2002-09-18 10:25       ` Richard Bown
2002-09-18 14:23 ` Kai Vehmanen
  -- strict thread matches above, loose matches on Subject: below --
2002-09-17 23:15 Chris Rankin
2002-09-18  8:56 ` Jaroslav Kysela
2002-09-18 12:02   ` Chris Rankin
2002-09-18 12:21     ` Jaroslav Kysela
2002-09-18 13:15       ` Tim Goetze
2002-09-18 13:58         ` Thierry Vignaud
2002-09-18 14:19           ` Paul Davis
2002-09-18 15:08             ` Takashi Iwai
2002-09-18 14:50           ` Tim Goetze
2002-09-18 15:07             ` Richard Bown
2002-09-18 15:18               ` Paul Davis
2002-09-18 15:28                 ` Richard Bown
2002-09-18 15:17             ` Patrick Shirkey
2002-09-18 13:49       ` Paul Davis
2002-09-18 15:00       ` Takashi Iwai
2002-09-18 16:06       ` Jack O'Quin
2002-09-19 15:29         ` Jaroslav Kysela
2002-09-19 19:36           ` Jack O'Quin
2002-09-20 10:20           ` Takashi Iwai
2002-09-20 12:40             ` Kai Vehmanen
2002-09-21  5:41               ` Jaroslav Kysela
2002-09-18 18:58       ` Fernando Pablo Lopez-Lezcano
2002-09-18 21:30       ` Chris Rankin
2002-09-18 21:44         ` Chris Rankin
2002-09-18 12:26     ` Ville Syrjälä

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.