From 18da784c14da8d20f23bc01a51cca4ce34a7e09e Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Wed, 28 Sep 2005 10:52:57 -0700 Subject: [PATCH] ARM: OMAP: Fix compliation/inlining in aic23 ALSA Driver Signed-off-by: Kevin Hilman --- sound/arm/omap-aic23.c | 8 -------- sound/arm/omap-aic23.h | 13 +++++++++++++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/sound/arm/omap-aic23.c b/sound/arm/omap-aic23.c index e6045a80705..9c651cf36de 100644 --- a/sound/arm/omap-aic23.c +++ b/sound/arm/omap-aic23.c @@ -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 */ diff --git a/sound/arm/omap-aic23.h b/sound/arm/omap-aic23.h index 0c0f6ea50f5..50b4afbed83 100644 --- a/sound/arm/omap-aic23.h +++ b/sound/arm/omap-aic23.h @@ -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 -- 2.41.1