linux/sound/soc/tegra
Stephen Warren 241bf43321 ASoC: tegra: fix uninitialized variables in set_fmt
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")
Cc: <stable@vger.kernel.org>
2013-12-09 17:14:32 +00:00
..
Kconfig ASoC: tegra: Enable COMPILE_TEST builds 2013-07-17 12:11:50 +01:00
Makefile ASoC: tegra: add tegra+RT5640 machine driver 2013-06-12 19:28:16 +01:00
tegra20_ac97.c Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-08-22 14:28:52 +01:00
tegra20_ac97.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra20_das.c ASoC: tegra: setup DAP3<->DAC3 connection by default 2012-12-24 16:01:08 +00:00
tegra20_das.h ASoC: convert Tegra20 DAS driver to regmap 2012-04-13 19:16:53 +01:00
tegra20_i2s.c ASoC: tegra: fix uninitialized variables in set_fmt 2013-12-09 17:14:32 +00: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 2013-12-09 17:14:32 +00:00
tegra20_spdif.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra30_ahub.c ASoC: Updates for v3.13 2013-10-25 11:43:47 +02:00
tegra30_ahub.h ASoC: tegra: support new register layouts in Tegra124 2013-10-14 14:56:27 +01:00
tegra30_i2s.c ASoC: tegra: fix uninitialized variables in set_fmt 2013-12-09 17:14:32 +00:00
tegra30_i2s.h ASoC: tegra: support new register layouts in Tegra124 2013-10-14 14:56:27 +01:00
tegra_alc5632.c ASoC: tegra: Remove unneeded mach-type.h incldues 2013-07-17 10:19:20 +01:00
tegra_asoc_utils.c ASoC: tegra: support new register layouts in Tegra124 2013-10-14 14:56:27 +01:00
tegra_asoc_utils.h ASoC: tegra: support new register layouts in Tegra124 2013-10-14 14:56:27 +01:00
tegra_pcm.c ASoC: tegra: Remove redundant initialisation of compat_filter_fn 2013-10-23 12:57:17 +01:00
tegra_pcm.h ASoC: tegra: Use common DAI DMA data struct 2013-04-03 18:13:34 +01:00
tegra_rt5640.c ASoC: tegra: support a Mic Jack in the Tegra+RT5640 machine driver 2013-08-15 11:08:30 +01:00
tegra_wm8753.c ASoC: tegra: Remove unneeded mach-type.h incldues 2013-07-17 10:19:20 +01: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: Remove unneeded mach-type.h incldues 2013-07-17 10:19:20 +01:00