]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ASoC: au8540: use 64-bit arithmetic instead of 32-bit
authorYoung_X <YangX92@hotmail.com>
Tue, 27 Nov 2018 06:33:16 +0000 (06:33 +0000)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:16 +0000 (14:22 -0300)
commit4891dcc20a571bd2fc5b48d732d0d8da971c4717
tree9634e418a7cf82cd9e940f94a65ad4932424672b
parentde009c477fcd3fe7fbc0d392dc699a43b3fc1ae1
ASoC: au8540: use 64-bit arithmetic instead of 32-bit

BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit cd7fdc45bc69a62b4e22c6e875f1f1aea566256d ]

Add suffix ULL to constant 256 in order to give the compiler complete
information about the proper arithmetic to use.

Notice that such constant is used in a context that expects an
expression of type u64 (64 bits, unsigned) and the following
expression is currently being evaluated using 32-bit arithmetic:

    256 * fs * 2 * mclk_src_scaling[i].param

Signed-off-by: Young_X <YangX92@hotmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/codecs/nau8540.c