New driver
Quoted 1 line
What is the "official" procedure to integrate my driver ?
my approach has always been:
cd $TOP_OF_ALSA_TREE
find . -type f | xargs grep SOME_OTHER_CARD_NAME
where SOME_OTHER_CARD_NAME is picked from a suitable existing driver. this lets me see all the places i have to refer to it.
but there must be a better way :)
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
Hi,
I started writing a new driver for the Aureal Vortex soundcards. Now the howto is pretty good, and the basic stuff is nearly complete, but
how do i integrate my driver into the configure scripts, Makefiles, and
all sorts of thingiees that makee up the tree ?
I placed the driver (several files) into the directory "pci/vortex". I managed to get the configure script to recognice the "vortex" card fiddling in the acinclude.m4 file, but when i do "make" it doesnt compile the files in "/pci/vortex". This directory has a apropiate makefile (i took the one of the emu10k1 an d modiifyed it).
What is the "official" procedure to integrate my driver ?
Thanks.
Manuel Jander
.
__________________________________________________
Enviado via NewPlanet WebMail en embedded.cl
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
Hi,
At Tue, 4 Mar 2003 19:35:35 -0400,
Quoted 4 lines · mjander
Hi,
I started writing a new driver for the Aureal Vortex soundcards.
wow, how did you get hardware information?
Quoted 6 lines
Now the howto is pretty good, and the basic stuff is nearly complete, but
how do i integrate my driver into the configure scripts, Makefiles, and
all sorts of thingiees that makee up the tree ?
Quoted 8 lines
I placed the driver (several files) into the directory "pci/vortex". I managed to get the configure script to recognice the "vortex" card fiddling in the acinclude.m4 file, but when i do "make" it doesnt compile the files in "/pci/vortex". This directory has a apropiate makefile (i took the one of the emu10k1 an d modiifyed it).
What is the "official" procedure to integrate my driver ?
ah, that's not on the howto yet :)
first, the test drivers should be put into alsa-driver tree. they will be brought up to alsa-kernel tree eventually and submitted to linux 2.5 kernel later.
in your case, alsa-driver/pci/vx222 or alsa-driver/pci/pdplus would be a good example.
add the vortex directory to extra-subdir-y in alsa-driver/pci/Makefile:
extra-subdir-y := pdplus vx222 vortex
create a new Makefile in alsa-driver/pci/vortex (see vx222 or pdplus Makefile).
add the definition to alsa-driver/utils/Modules.dep like below:
%dir linux/sound/pci/vortex
|snd-vortex snd-pcm ...
where the second and later arguments are dependent lowlevel modules.
and also define the necessary dependency in alsa-driver/acore/Makefile or whererever the dependent lowlevel modules exist.
finally, run ./cvscompile to regenerate the configure script, etc.
ciao,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf