mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ed1666f686
In sound/soc/mediatek/common/mtk-afe-fe-dai.c, when xxx_reg is -1, it's a no-op to call mtk_regmap_update_bits, but since both xxx_reg and xxx_shift are set to -1, the (1 << xxx_shift) in the argument would trigger a UBSAN warning. Fix the warning by setting those xxx_shift to 0 instead. Note that since the code explicitly checks .mono_shift >= 0 and .fs_shift >= 0 before using them in '<<' operator, those two members are not set to 0. Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
Makefile | ||
mt6797-afe-clk.c | ||
mt6797-afe-clk.h | ||
mt6797-afe-common.h | ||
mt6797-afe-pcm.c | ||
mt6797-dai-adda.c | ||
mt6797-dai-hostless.c | ||
mt6797-dai-pcm.c | ||
mt6797-interconnection.h | ||
mt6797-mt6351.c | ||
mt6797-reg.h |