kernel_optimize_test/sound
Tim Gardner 14a1b8ca17 ASoC: adau1373: adau1373_hw_params: Silence overflow warning
ADAU1373_BCLKDIV_SOURCE is defined as BIT(5) which uses UL constants. On
amd64 the result of the ones complement operator is then truncated to
unsigned int according to the prototype of snd_soc_update_bits(). I think
gcc is correctly warning that the upper 32 bits are lost.

sound/soc/codecs/adau1373.c: In function 'adau1373_hw_params':
sound/soc/codecs/adau1373.c:940:3: warning: large integer implicitly truncated to unsigned type [-Woverflow]

gcc version 4.6.3

Add 2 more BCLKDIV mask macros as explained by Lars:

The BCLKDIV has three fields. The bitclock divider (bit 0-1), the samplerate
(bit 2-4) and the source select (bit 5). Here we want to update the bitclock
divider field and the samplerate field. When I wrote the code I was lazy and
used ~ADAU1373_BCLKDIV_SOURCE as the mask, which for this register is
functionally equivalent to ADAU1373_BCLKDIV_SR_MASK | ADAU1373_BCLKDIV_BCLK_MASK.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2013-03-12 18:46:27 +00:00
..
aoa
arm
atmel
core ALSA: vmaster: Fix slave change notification 2013-03-05 15:43:39 +01:00
drivers
firewire
i2c
isa
mips
oss new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
parisc
pci ALSA: ice1712: Initialize card->private_data properly 2013-03-07 15:38:58 +01:00
pcmcia
ppc
sh
soc ASoC: adau1373: adau1373_hw_params: Silence overflow warning 2013-03-12 18:46:27 +00:00
sparc
spi
synth
usb
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c
sound_firmware.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00