]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
If omap-alsa-mixer.c is compiled as module,
authorDirk Behme <dirk.behme@de.bosch.com>
Wed, 14 Sep 2005 14:17:26 +0000 (17:17 +0300)
committerTony Lindgren <tony@atomide.com>
Wed, 14 Sep 2005 14:17:26 +0000 (17:17 +0300)
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 <dirk.behme_at_de.bosch.com>
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

index f8cad080c79494290aa33efda1bcbea21dbe8513..742e5b627c4f6293f75afc7f8e57e106618e057b 100644 (file)
@@ -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);