All of lore.kernel.org
 help / color / mirror / Atom feed
* migrating from old to new alsa-api
@ 2004-04-22 13:57 barat
  2004-04-22 14:11 ` Takashi Iwai
  2004-04-24 15:52 ` James Courtier-Dutton
  0 siblings, 2 replies; 3+ messages in thread
From: barat @ 2004-04-22 13:57 UTC (permalink / raw)
  To: alsa-devel

Hi,
i need some clarifying about how the defines ALSA_PCM_OLD_HW_PARAMS_API 
etc. behaves.
for alsa-1.x its clear that if the app uses the new api i have to define 
ALSA_PCM_NEW_HW_PARAMS_API, but what is for the case if i have an app with 
the new api and the user uses only alsa9? is alsa1.x then backwards 
compatible?

regards

Zsolt Barat

________________________________________
do interactive tv on www.remote-tv.de


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: migrating from old to new alsa-api
  2004-04-22 13:57 migrating from old to new alsa-api barat
@ 2004-04-22 14:11 ` Takashi Iwai
  2004-04-24 15:52 ` James Courtier-Dutton
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2004-04-22 14:11 UTC (permalink / raw)
  To: barat; +Cc: alsa-devel

At Thu, 22 Apr 2004 15:57:13 +0200 (CEST),
barat@medien.uni-weimar.de wrote:
> 
> Hi,
> i need some clarifying about how the defines ALSA_PCM_OLD_HW_PARAMS_API 
> etc. behaves.
> for alsa-1.x its clear that if the app uses the new api i have to define 
> ALSA_PCM_NEW_HW_PARAMS_API,

no, with ALSA 1.x, the new API is chosen as default.

> but what is for the case if i have an app with 
> the new api and the user uses only alsa9?

if user recompiles the code with the old API, he has to add
ALSA_PCM_OLD_* defines.

>  is alsa1.x then backwards 
> compatible?

yes.  the alsa-lib contains the versioned symbols for the backward
comptibility.


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

* Re: migrating from old to new alsa-api
  2004-04-22 13:57 migrating from old to new alsa-api barat
  2004-04-22 14:11 ` Takashi Iwai
@ 2004-04-24 15:52 ` James Courtier-Dutton
  1 sibling, 0 replies; 3+ messages in thread
From: James Courtier-Dutton @ 2004-04-24 15:52 UTC (permalink / raw)
  To: barat; +Cc: alsa-devel

barat@medien.uni-weimar.de wrote:
> Hi,
> i need some clarifying about how the defines ALSA_PCM_OLD_HW_PARAMS_API 
> etc. behaves.
> for alsa-1.x its clear that if the app uses the new api i have to define 
> ALSA_PCM_NEW_HW_PARAMS_API, but what is for the case if i have an app with 
> the new api and the user uses only alsa9? is alsa1.x then backwards 
> compatible?
> 
> regards
> 
> Zsolt Barat
> 


ALSA_PCM_NEW_HW_PARAMS_API etc. is for use with alsa0.9.x
That define is assumed to be the default for alsa1.x.x

ALSA_PCM_OLD_HW_PARAMS_API is for use with alsa1.x.x to make it behave 
like "alsa0.9.x without the ALSA_PCM_NEW_HW_PARAMS_API".

Summary: -
To make your code work with bother alsa 0.9.x and 1.x.x, use 
ALSA_PCM_NEW_HW_PARAMS_API etc. and then write your code to the 1.x.x api.



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

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

end of thread, other threads:[~2004-04-24 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 13:57 migrating from old to new alsa-api barat
2004-04-22 14:11 ` Takashi Iwai
2004-04-24 15:52 ` James Courtier-Dutton

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.