phonepad: change record route, must update asound.conf.
author宋秀杰 <sxj@rock-chips.com>
Tue, 14 Aug 2012 14:51:49 +0000 (22:51 +0800)
committer宋秀杰 <sxj@rock-chips.com>
Tue, 14 Aug 2012 14:51:49 +0000 (22:51 +0800)
sound/soc/codecs/rt3261.c

index e8f1405fb8d826e71a90525171b6bcd6e14b909f..f7e18dd050a73311e5ea005800f2f117168f366d 100644 (file)
@@ -89,8 +89,6 @@ static struct rt3261_init_reg init_list[] = {
        {RT3261_HP_VOL          , 0x8888},
        {RT3261_OUTPUT          , 0x8888},//unmute OUTVOLL/R
        {RT3261_SPO_CLSD_RATIO  , 0x0001},
-       {RT3261_I2S1_SDP        , 0xe000},
-       {RT3261_I2S2_SDP        , 0x8040},
 };
 #define RT3261_INIT_REG_LEN ARRAY_SIZE(init_list)
 
@@ -2370,6 +2368,8 @@ static int rt3261_hw_params(struct snd_pcm_substream *substream,
        int pre_div, bclk_ms, frame_size;
 
        rt3261->lrck[dai->id] = params_rate(params);
+       if(dai->id == 1)
+               rt3261->lrck[dai->id] = 8000;
        pre_div = get_clk_info(rt3261->sysclk, rt3261->lrck[dai->id]);
        if (pre_div < 0) {
                dev_err(codec->dev, "Unsupported clock setting\n");