From: Giuliano Pochini Subject: hint needed Date: Sat, 6 Dec 2003 16:39:39 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20031206163939.228ea11f.pochini@shiny.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alsa-devel List-Id: alsa-devel@alsa-project.org 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/