android_kernel_samsung_msm8976/sound/soc/tegra
Stephen Warren 05687bd4a1 ASoC: tegra: fix uninitialized variables in set_fmt
commit 241bf43321a10815225f477bba96a42285a2da73 upstream.

In tegra*_i2s_set_fmt(), in the (fmt == SND_SOC_DAIFMT_CBM_CFM) case,
"val" is never assigned to, but left uninitialized. The other case does
initialized it. Fix this by initializing val at the start of the
function, and only ever ORing into it.

Update the handling of "mask" so it works the same way for consistency.

Update tegra20_spdif.c to use the same code-style for consistency, even
though it doesn't happen to suffer from the same problem at present.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Fixes: 0f163546a7 ("ASoC: tegra: use regmap more directly")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-09 12:24:19 -08:00
..
Kconfig
Makefile
tegra20_ac97.c
tegra20_ac97.h
tegra20_das.c
tegra20_das.h
tegra20_i2s.c ASoC: tegra: fix uninitialized variables in set_fmt 2014-01-09 12:24:19 -08:00
tegra20_i2s.h
tegra20_spdif.c ASoC: tegra: fix uninitialized variables in set_fmt 2014-01-09 12:24:19 -08:00
tegra20_spdif.h
tegra30_ahub.c
tegra30_ahub.h
tegra30_i2s.c ASoC: tegra: fix uninitialized variables in set_fmt 2014-01-09 12:24:19 -08:00
tegra30_i2s.h
tegra_alc5632.c
tegra_asoc_utils.c
tegra_asoc_utils.h
tegra_pcm.c
tegra_pcm.h
tegra_wm8753.c
tegra_wm8903.c
tegra_wm9712.c
trimslice.c