rt5616: enable capture
authoryj <yangjie@rock-chips.com>
Tue, 1 Apr 2014 13:39:01 +0000 (21:39 +0800)
committeryj <yangjie@rock-chips.com>
Tue, 1 Apr 2014 13:39:01 +0000 (21:39 +0800)
sound/soc/codecs/rt5616.c
sound/soc/rockchip/rk_rt5616.c

index 84e63e886d93acef05503bcfd6720b16e213d15a..da5ca65f95430c87feb6741d7615c0da981d2a59 100755 (executable)
@@ -28,7 +28,7 @@
 
 #include "rt5616.h"
 
-#define POWER_ON_MICBIAS1
+//#define POWER_ON_MICBIAS1
 
 //for gpio
 #define rt5616_CODEC_SET_SPK   1
@@ -1067,13 +1067,14 @@ static const struct snd_soc_dapm_route rt5616_dapm_routes[] = {
        {"IN2P", NULL, "MIC2"},
        {"IN2N", NULL, "MIC2"},
 
-       {"BST1", NULL, "IN1P"},
-       {"BST2", NULL, "IN2P"},
-       {"BST2", NULL, "IN2N"},
-#ifdef POWER_ON_MICBIAS1
+       {"micbias1", NULL, "IN1P"},
+       {"micbias1", NULL, "IN2P"},
+       {"micbias1", NULL, "IN2N"},
+
+//#ifdef POWER_ON_MICBIAS1
        {"BST1", NULL, "micbias1"},
        {"BST2", NULL, "micbias1"},
-#endif
+//#endif
 
        {"INL1 VOL", NULL, "IN2P"},
        {"INR1 VOL", NULL, "IN2N"},
index 9100b80d75f6540cd6dd4e2cf9435361df4ea8ef..b410bdfbbc746d531f260a90d61613537cf2a465 100755 (executable)
@@ -101,6 +101,7 @@ static const struct snd_soc_dapm_route audio_map[]={
 
        /* Mic Jack --> MIC_IN*/
        {"MIC1", NULL, "Mic Jack"},
+       {"MIC2", NULL, "Mic Jack"},
        //{"MIC1", NULL, "Mic Bias1"},
        /* HP_OUT --> Headphone Jack */
        {"Headphone Jack", NULL, "HPOL"},