mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 12:26:40 +07:00
241bf43321
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
tegra20_ac97.c | ||
tegra20_ac97.h | ||
tegra20_das.c | ||
tegra20_das.h | ||
tegra20_i2s.c | ||
tegra20_i2s.h | ||
tegra20_spdif.c | ||
tegra20_spdif.h | ||
tegra30_ahub.c | ||
tegra30_ahub.h | ||
tegra30_i2s.c | ||
tegra30_i2s.h | ||
tegra_alc5632.c | ||
tegra_asoc_utils.c | ||
tegra_asoc_utils.h | ||
tegra_pcm.c | ||
tegra_pcm.h | ||
tegra_rt5640.c | ||
tegra_wm8753.c | ||
tegra_wm8903.c | ||
tegra_wm9712.c | ||
trimslice.c |