lkml.org 
[lkml]   [2013]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 22/45] ASoC: tegra: fix Tegra30 I2S capture parameter setup
    Date
    3.10-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Stephen Warren <swarren@nvidia.com>

    commit c90c0d7a96e634a73ef1580f1d20993606545647 upstream.

    The Tegra30 I2S driver was writing the AHUB interface parameters to the
    playback path register rather than the capture path register. This
    caused the capture parameters not to be configured at all, so if
    capturing using non-HW-default parameters (e.g. 16-bit stereo rather
    than 8-bit mono) the audio would be corrupted.

    With this fixed, audio capture from an analog microphone works correctly
    on the Cardhu board.

    Signed-off-by: Stephen Warren <swarren@nvidia.com>
    Signed-off-by: Mark Brown <broonie@linaro.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/soc/tegra/tegra30_i2s.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/sound/soc/tegra/tegra30_i2s.c
    +++ b/sound/soc/tegra/tegra30_i2s.c
    @@ -228,7 +228,7 @@ static int tegra30_i2s_hw_params(struct
    reg = TEGRA30_I2S_CIF_RX_CTRL;
    } else {
    val |= TEGRA30_AUDIOCIF_CTRL_DIRECTION_TX;
    - reg = TEGRA30_I2S_CIF_RX_CTRL;
    + reg = TEGRA30_I2S_CIF_TX_CTRL;
    }

    regmap_write(i2s->regmap, reg, val);



    \
     
     \ /
      Last update: 2013-08-19 00:01    [W:4.558 / U:0.324 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site