On Friday 06 August 2010 10:39:14 Ujfalusi Peter (Nokia-MS/Tampere) wrote:
OMAP1 class has 3 McBSP ports, if I'm not mistaken. Enable the audio with multi-comp on OMAP1 class.
Signed-off-by: Peter Ujfalusi peter.ujfalusi@nokia.com
arch/arm/mach-omap1/devices.c | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 379100c..523bbc4 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c @@ -267,6 +267,29 @@ static inline void omap_init_sti(void) static inline void omap_init_sti(void) {} #endif
Hmm,
+#include <plat/mcbsp.h>
Might help at compile time ;)
Liam, would you be so kind to fix this is you take the series. I could as well resend...
Thanks, Péter
+#if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE)
+static struct platform_device omap_pcm = {
- .name = "omap-pcm-audio",
- .id = -1,
+};
+OMAP_MCBSP_PLATFORM_DEVICE(1); +OMAP_MCBSP_PLATFORM_DEVICE(2); +OMAP_MCBSP_PLATFORM_DEVICE(3);
+static void omap_init_audio(void) +{
- platform_device_register(&omap_mcbsp1);
- platform_device_register(&omap_mcbsp2);
- platform_device_register(&omap_mcbsp3);
- platform_device_register(&omap_pcm);
+}
+#else +static inline void omap_init_audio(void) {} +#endif
/*------------------------------------------------------------------------ -*/
/* @@ -299,6 +322,7 @@ static int __init omap1_init_devices(void) omap_init_rtc(); omap_init_spi100k(); omap_init_sti();
omap_init_audio();
return 0;
}