mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ASoC: tegra: fix Tegra30 I2S capture parameter setup
commit c90c0d7a96 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6b907d9552
commit
e54f0e6c23
@@ -228,7 +228,7 @@ static int tegra30_i2s_hw_params(struct snd_pcm_substream *substream,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user