From 1afb5b9525c9ef1ee7411460f005db0d6a27a110 Mon Sep 17 00:00:00 2001 From: Dirk Behme Date: Wed, 14 Sep 2005 17:17:26 +0300 Subject: [PATCH] If omap-alsa-mixer.c is compiled as module, CONFIG_SENSORS_TLV320AIC23_MODULE is missing: CC [M] sound/arm/omap-alsa-mixer.o sound/arm/omap-alsa-mixer.c: In function SND_OMAP_WRITE' sound/arm/omap-alsa-mixer.c: In function MIXER_NAME' undeclared (first use in this function) sound/arm/omap-alsa-mixer.c:487: error: (Each undeclared identifier is reported only once sound/arm/omap-alsa-mixer.c:487: error: for each function it appears in.) Signed-off-by: Dirk Behme Btw: omap-alsa-mixer.c will not compile if CONFIG_SENSORS_TLV320AIC23 or CONFIG_SENSORS_TLV320AIC23_MODULE aren't defined. May be this ifdef should be removed? --- sound/arm/omap-alsa-mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/arm/omap-alsa-mixer.c b/sound/arm/omap-alsa-mixer.c index f8cad080c79..742e5b627c4 100644 --- a/sound/arm/omap-alsa-mixer.c +++ b/sound/arm/omap-alsa-mixer.c @@ -65,7 +65,7 @@ MODULE_DESCRIPTION("OMAP Alsa mixer driver for ALSA"); */ /* Codec AIC23 */ -#ifdef CONFIG_SENSORS_TLV320AIC23 +#if defined(CONFIG_SENSORS_TLV320AIC23) || defined (CONFIG_SENSORS_TLV320AIC23_MODULE) extern __inline__ void audio_aic23_write(u8, u16); -- 2.41.1