lkml.org 
[lkml]   [2011]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectASoC: wm8994: Is the rate_reg for wm8994-aif2 correct?
    From
    Date
    hi Mark,
    While reading wm8994.c, it seems the correct rate_reg for wm8994-aif2
    should be WM8994_AIF2_RATE.
    I cannot find wm8994 datasheet, could you help checking it?

    Thanks,
    Axel

    From 5b4cb1e9eae945dfe473139a80d16da6f2fee622 Mon Sep 17 00:00:00 2001
    From: Axel Lin <axel.lin@gmail.com>
    Date: Tue, 4 Oct 2011 22:00:01 +0800
    Subject: [PATCH] ASoC: wm8994: Fix setting rate_reg for wm8994-aif2

    For wm8994-aif2, the rate_reg should be WM8994_AIF2_RATE.

    Signed-off-by: Axel Lin <axel.lin@gmail.com>
    ---
    sound/soc/codecs/wm8994.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
    index 4225e1f..d5b69c0 100644
    --- a/sound/soc/codecs/wm8994.c
    +++ b/sound/soc/codecs/wm8994.c
    @@ -2421,7 +2421,7 @@ static void wm8994_aif_shutdown(struct snd_pcm_substream *substream,
    rate_reg = WM8994_AIF1_RATE;
    break;
    case 2:
    - rate_reg = WM8994_AIF1_RATE;
    + rate_reg = WM8994_AIF2_RATE;
    break;
    default:
    break;
    --
    1.7.4.1




    \
     
     \ /
      Last update: 2011-10-04 16:09    [W:0.023 / U:62.588 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site