ASoC: tegra: fix Tegra30 I2S capture parameter setup
authorStephen Warren <swarren@nvidia.com>
Wed, 14 Aug 2013 20:24:16 +0000 (14:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 15:43:04 +0000 (08:43 -0700)
commite54f0e6c230d511f3159a6e773ab5f790c548390
tree2c5c6b22976f719f8baacc01111e801ffe0da2cc
parent6b907d955284264b28692338e9a10fa3586704c6
ASoC: tegra: fix Tegra30 I2S capture parameter setup

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