]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Fix compliation/inlining in aic23 ALSA Driver
authorKevin Hilman <kevin@hilman.org>
Wed, 28 Sep 2005 17:52:57 +0000 (10:52 -0700)
committerKevin Hilman <kevin@hilman.org>
Wed, 28 Sep 2005 17:52:57 +0000 (10:52 -0700)
Signed-off-by: Kevin Hilman <kevin@hilman.org>
sound/arm/omap-aic23.c
sound/arm/omap-aic23.h

index e6045a8070529d1e55aac5ea5c5c1ea6b4ba5d0e..9c651cf36de3b989a7fd43220cae91310c3df2b6 100644 (file)
@@ -162,14 +162,6 @@ static snd_pcm_hw_constraint_list_t hw_constraints_rates = {
  * codec dependent code.
  */
 
-extern int tlv320aic23_write_value(u8 reg, u16 value);
-
-/* TLV320AIC23 is a write only device */
-__inline__ void audio_aic23_write(u8 address, u16 data)
-{
-       tlv320aic23_write_value(address, data);
-}
-
 /*
  * Sample rate changing
  */
index 0c0f6ea50f5a8efd5b640845ecb0f7bef23ea1b8..50b4afbed83eb71b138f242283c6339c277bbe4b 100644 (file)
@@ -111,4 +111,17 @@ void snd_omap_suspend_mixer(void);
 void snd_omap_resume_mixer(void);
 #endif
 
+/* Codec AIC23 */
+#if defined(CONFIG_SENSORS_TLV320AIC23) || defined (CONFIG_SENSORS_TLV320AIC23_MODULE)
+
+extern int tlv320aic23_write_value(u8 reg, u16 value);
+
+/* TLV320AIC23 is a write only device */
+static __inline__ void audio_aic23_write(u8 address, u16 data)
+{
+       tlv320aic23_write_value(address, data);
+}
+
+#endif /* CONFIG_SENSORS_TLV320AIC23 */
+
 #endif