Change Codec for I2S0
authorfang <fang@fang-desktop.(none)>
Wed, 22 Dec 2010 09:50:39 +0000 (17:50 +0800)
committerfang <fang@fang-desktop.(none)>
Wed, 22 Dec 2010 09:50:39 +0000 (17:50 +0800)
arch/arm/configs/rk29_sdk_defconfig
sound/soc/rk29/Kconfig
sound/soc/rk29/rk29_wm8900.c

index 589bf6fd406a44d64e79cf13fa620f9651a42ff6..b7e915c3a52ca0f0756515b50d25c1fdaad2dd64 100755 (executable)
@@ -1216,12 +1216,12 @@ CONFIG_SND_USB=y
 CONFIG_SND_SOC=y
 CONFIG_SND_RK29_SOC=y
 CONFIG_SND_RK29_SOC_I2S=y
-CONFIG_SND_RK29_SOC_I2S_2CH=y
-# CONFIG_SND_RK29_SOC_I2S_8CH is not set
+# CONFIG_SND_RK29_SOC_I2S_2CH is not set
+CONFIG_SND_RK29_SOC_I2S_8CH=y
 # CONFIG_SND_RK29_SOC_WM8988 is not set
 CONFIG_SND_RK29_SOC_WM8900=y
-CONFIG_SND_RK29_CODEC_SOC_MASTER=y
-# CONFIG_SND_RK29_CODEC_SOC_SLAVE is not set
+# CONFIG_SND_RK29_CODEC_SOC_MASTER is not set
+CONFIG_SND_RK29_CODEC_SOC_SLAVE=y
 CONFIG_SND_SOC_I2C_AND_SPI=y
 # CONFIG_SND_SOC_ALL_CODECS is not set
 CONFIG_SND_SOC_WM8900=y
index d2d5b0d4adee61710a0eeb8abbbd1b234f0ebdea..37f8ce9860d182c29077bb170464080f09b05d8b 100755 (executable)
@@ -11,14 +11,14 @@ config SND_RK29_SOC_I2S
 
 config SND_RK29_SOC_I2S_2CH
         bool "Soc RK29 I2S 2 Channel support"
-        default y
+        default n
        depends on SND_RK29_SOC_I2S
        help
                 This supports the use of the 2 Channel I2S interface on rk29 processors.
 
 config SND_RK29_SOC_I2S_8CH
         bool "Soc RK29 I2S 8 Channel support"
-        default n
+        default y
        depends on SND_RK29_SOC_I2S
        help
                 This supports the use of the 8 Channel I2S interface on rk29 processors.
index 480464cd0ae06db48be214b0cf4239cfc820853e..c82169294ba3e0cdcb741db9337cb3ea68eb0738 100644 (file)
@@ -169,7 +169,7 @@ static struct snd_soc_ops rk29_ops = {
 static struct snd_soc_dai_link rk29_dai = {
          .name = "WM8900",
          .stream_name = "WM8900 PCM",
-         .cpu_dai = &rk29_i2s_dai[1],
+         .cpu_dai = &rk29_i2s_dai[0],
          .codec_dai = &wm8900_dai,
          .init = rk29_wm8900_init,
          .ops = &rk29_ops,