Echoaudio cards are grouped into two families: EchoGals (the old
discontinued serie) and the Echo24. The driver is almost identical for both
families, but some constants define at compile time. I currently select the
family by a hack in the makefile:

ifneq ($(CONFIG_SND_GINA24),)
EXTRA_CFLAGS += -DECHO24_FAMILY
endif

ifneq ($(CONFIG_SND_GINA20),)
EXTRA_CFLAGS += -DECHOGALS_FAMILY
endif

This works fine only if you run configure --with-cards that belong to the
same family. How can I solve this issue ?  I can replace the constants with
something choosen at runtime, but I don't like to put translation tables for
dsp commands and such. Very ugly. Alternatively, I can duplicate all common
parts of the driver. The files would be identical except a #define at the
beginning :-6


--
Giuliano.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to