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 ASoC: tegra: Use generic dmaengine PCM 2013-04-17 14:25:09 +01:00
Makefile
tegra20_ac97.c ASoC: tegra: correct playback_dma_data setup 2013-08-04 16:50:38 +08:00
tegra20_ac97.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
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 ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra20_spdif.c ASoC: tegra: fix uninitialized variables in set_fmt 2014-01-09 12:24:19 -08:00
tegra20_spdif.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra30_ahub.c Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-04-12 13:57:21 +01:00
tegra30_ahub.h Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-04-12 13:57:21 +01:00
tegra30_i2s.c ASoC: tegra: fix uninitialized variables in set_fmt 2014-01-09 12:24:19 -08:00
tegra30_i2s.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra_alc5632.c ASoC: tegra_alc5632: assume CONFIG_OF, and other cleanup 2013-03-04 11:22:23 +08:00
tegra_asoc_utils.c ASoC: tegra: add Tegra114 support to tegra_asoc_utils.c 2013-03-25 15:56:36 +00:00
tegra_asoc_utils.h ASoC: tegra: add Tegra114 support to tegra_asoc_utils.c 2013-03-25 15:56:36 +00:00
tegra_pcm.c ASoC: tegra: Use generic dmaengine PCM 2013-04-17 14:25:09 +01:00
tegra_pcm.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra_wm8753.c ASoC: tegra_wm8753: minor cleanup 2013-03-04 11:22:22 +08:00
tegra_wm8903.c ASoC: tegra_wm8903: assume CONFIG_OF, remove platform data 2013-03-04 11:22:23 +08:00
tegra_wm9712.c Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-04-12 13:57:21 +01:00
trimslice.c ASoC: tegra trimslice: assume CONFIG_OF, and other cleanup 2013-03-04 11:22:23 +08:00