ASoC: Add support for OpenRD Ultimate
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Sat, 13 Nov 2010 17:51:53 +0000 (18:51 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Nov 2010 12:27:57 +0000 (12:27 +0000)
OpenRD Ultimate & Client are similar machines so enable OpenRD client sound
support on Ultimate too

Tested-by: Robas Teodor <teodor.robas@gmail.com>
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/mach-kirkwood/openrd-setup.c
sound/soc/kirkwood/Kconfig
sound/soc/kirkwood/kirkwood-openrd.c

index c9d77fad10ab854a517f78ec7c01adc35cf85c76..cfcca4174e255edef0e61907ae4331e834fffa8c 100644 (file)
@@ -171,7 +171,7 @@ static void __init openrd_init(void)
 
        kirkwood_i2c_init();
 
-       if (machine_is_openrd_client()) {
+       if (machine_is_openrd_client() || machine_is_openrd_ultimate()) {
                i2c_register_board_info(0, i2c_board_info,
                        ARRAY_SIZE(i2c_board_info));
                kirkwood_audio_init();
index 54258fd9797f7170b555ab665b3f7b8e1549cb73..8f49e165f4d1dd40119143b3b971a2b2f964025c 100644 (file)
@@ -11,7 +11,7 @@ config SND_KIRKWOOD_SOC_I2S
 
 config SND_KIRKWOOD_SOC_OPENRD
        tristate "SoC Audio support for Kirkwood Openrd Client"
-       depends on SND_KIRKWOOD_SOC && MACH_OPENRD_CLIENT
+       depends on SND_KIRKWOOD_SOC && (MACH_OPENRD_CLIENT || MACH_OPENRD_ULTIMATE)
        select SND_KIRKWOOD_SOC_I2S
        select SND_SOC_CS42L51
        help
index 9d7c81e921f1150ddea58f3c045e7b41dbacb5aa..d863afb3ee521098b36a1a7b4a50293a52903082 100644 (file)
@@ -86,7 +86,7 @@ static int __init openrd_client_init(void)
 {
        int ret;
 
-       if (!machine_is_openrd_client())
+       if (!machine_is_openrd_client() && !machine_is_openrd_ultimate())
                return 0;
 
        openrd_client_snd_device = platform_device_alloc("soc-audio", -1);