ASoC: OMAP: enable Overo driver for CM-T35
authorMike Rapoport <mike@compulab.co.il>
Mon, 16 Nov 2009 14:19:25 +0000 (16:19 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Nov 2009 16:02:03 +0000 (16:02 +0000)
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Acked-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/Kconfig
sound/soc/omap/overo.c

index bb5731a22bed9595d40ff0332ba2ecee4dad9a78..4dc6b15a852f42f6819a73954500b9d37178decb 100644 (file)
@@ -43,12 +43,13 @@ config SND_OMAP_SOC_OSK5912
          Say Y if you want to add support for SoC audio on osk5912.
 
 config SND_OMAP_SOC_OVERO
-       tristate "SoC Audio support for Gumstix Overo"
-       depends on TWL4030_CORE && SND_OMAP_SOC && MACH_OVERO
+       tristate "SoC Audio support for Gumstix Overo and CompuLab CM-T35"
+       depends on TWL4030_CORE && SND_OMAP_SOC && (MACH_OVERO || MACH_CM_T35)
        select SND_OMAP_SOC_MCBSP
        select SND_SOC_TWL4030
        help
-         Say Y if you want to add support for SoC audio on the Gumstix Overo.
+         Say Y if you want to add support for SoC audio on the
+         Gumstix Overo or CompuLab CM-T35
 
 config SND_OMAP_SOC_OMAP2EVM
        tristate "SoC Audio support for OMAP2EVM board"
index ec4f8fd8b3a2ae9a1e79a3cb91c033a2b1ae4cf6..97a4d6308bd61aff46efa7ee98a66bbba1c9d07e 100644 (file)
@@ -107,8 +107,8 @@ static int __init overo_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_overo()) {
-               pr_debug("Not Overo!\n");
+       if (!(machine_is_overo() || machine_is_cm_t35())) {
+               pr_debug("Incomatible machine!\n");
                return -ENODEV;
        }
        printk(KERN_INFO "overo SoC init\n");