[alsa-devel] [PATCH 3/3] ASoC: multi-comp: OMAP2, 3, 4 McBSP: register correct number of ports
Jarkko Nikula
jhnikula at gmail.com
Fri Aug 6 10:08:08 CEST 2010
On Fri, 6 Aug 2010 10:39:15 +0300
Peter Ujfalusi <peter.ujfalusi at nokia.com> wrote:
> static void omap_init_audio(void)
> {
> platform_device_register(&omap_mcbsp1);
> platform_device_register(&omap_mcbsp2);
> +#ifdef OMAP_HAS_4_MCBSP_PORTS
> platform_device_register(&omap_mcbsp3);
> platform_device_register(&omap_mcbsp4);
> +#endif
> +#ifdef OMAP_HAS_5_MCBSP_PORTS
> platform_device_register(&omap_mcbsp5);
> +#endif
> platform_device_register(&omap_pcm);
> }
>
This must be done at runtime since we can have multi omap builds now.
So use cpu_is_omapxxx instead of conditional compilation. Simplifies
patch too :-)
--
Jarkko
More information about the Alsa-devel
mailing list