Skip to contentSkip to conversation

An alsa lib, that works over OSS drivers ?

DISCUSSION Me Eby 3 participants 5 messages Apr 19, 2004

lore
Share & tools
lore

Me Eby

author
#0 lore raw

Can't be done that way. That is why there is an OSS wrapper for alsa. The OSS drivers do not support all of the capabilities that ALSA drivers do.

Quoted 30 lines

Hi!

I have this idea that migh accelerate the adoption of
ALSA.

It is a library ( dynamic ) that implements the ALSA API ( so to
applications it looks like
normal ALSA ), but accesses the hardware over OSS drivers. Like this :

app <--ALSA-API--> this_library <-- OSS-API--> OSS driver <---> sound
hardware

This means that application writers can write to
ALSA
API and be
assured
that their
code will work on both ALSA and OSS systems.

The only thing needed is to install this new library on the OSS system
( the
ALSA systems
will off course work as they are ).

Quoted 9 lines

This new library would have the same name and API as the existing alsa
library.

How does this sound ? Feasible ?

Thanks for any reply,
David Balazic

----------------------------------------------------------------------------

Quoted 9 lines

-----------
David Balazic
mailto:[email protected]
HERMES Softlab
http://www.hermes-softlab.com
Zagrebska cesta 104 Phone: +386 2 450
8851
SI-2000 Maribor
Slovenija

__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

-------------------------------------------------------
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

#1 lore raw
Quoted 3 lines · Me Eby

Can't be done that way. That is why there is an OSS wrapper for alsa. The OSS drivers do not support all of the capabilities that ALSA drivers do.

So now there's one person saying it can't be done, and another saying it has been done. There seems to be slight contradiction here.

Signature · 10 lines
Måns Rullgård
[email protected]



-------------------------------------------------------
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
#2 lore raw
Quoted 8 lines · M?ns Rullg?rd
Quoted 3 lines · Me Eby

Can't be done that way. That is why there is an OSS wrapper for alsa. The OSS drivers do not support all of the capabilities that ALSA drivers do.

So now there's one person saying it can't be done, and another saying it has been done. There seems to be slight contradiction here.

Not really. This comment is for the OSS API->ALSA driver conversion, but the former question was for the ALSA API->OSS driver conversion.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
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

#3 lore raw
Quoted 8 lines · Jaroslav Kysela
Quoted 6 lines · M?ns Rullg?rd
Quoted 3 lines · Me Eby

Can't be done that way. That is why there is an OSS wrapper for alsa. The OSS drivers do not support all of the capabilities that ALSA drivers do.

Quoted 5 lines
Quoted 2 lines

So now there's one person saying it can't be done, and another saying it has been done. There seems to be slight contradiction here.

Not really. This comment is for the OSS API->ALSA driver conversion, but the former question was for the ALSA API->OSS driver conversion.

They were both replying to the same message, so I assumed they were referring to the same idea. I must have missed something.

Signature · 10 lines
Måns Rullgård
[email protected]



-------------------------------------------------------
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
#4 lore raw
Quoted 10 lines · M?ns Rullg?rd
Quoted 8 lines · Jaroslav Kysela
Quoted 6 lines · M?ns Rullg?rd
Quoted 3 lines · Me Eby

Can't be done that way. That is why there is an OSS wrapper for alsa. The OSS drivers do not support all of the capabilities that ALSA drivers do.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

So now there's one person saying it can't be done, and another saying it has been done. There seems to be slight contradiction here.

Not really. This comment is for the OSS API->ALSA driver conversion, but the former question was for the ALSA API->OSS driver conversion.

They were both replying to the same message, so I assumed they were referring to the same idea. I must have missed something.

Okay, basically it is possible to emulate ALSA API on top of the OSS API, but the emulated devices will be limited and the data transfers might be inefficient. The point about the OSS wrapper is irrelevant.

Also commercial OSS has a GPL project which can map their kernel drivers into ALSA kernel driver core, but I'm not a big fan for these projects.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
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