]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: wm_hubs: Use explicit casts for converting to signed
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 20 Aug 2012 18:54:24 +0000 (19:54 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Aug 2012 18:00:28 +0000 (19:00 +0100)
Should be no behaviour change.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm_hubs.c

index 05a02e1b7e92028ca5644915acade877e3a6ac5e..b340552efe4e32ac83bb9d1a52b69b87079b1ef7 100644 (file)
@@ -297,12 +297,12 @@ static void enable_dc_servo(struct snd_soc_codec *codec)
                        hubs->dcs_codes_l, hubs->dcs_codes_r);
 
                /* HPOUT1R */
-               offset = reg_r;
+               offset = (s8)reg_r;
                offset += hubs->dcs_codes_r;
                dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT;
 
                /* HPOUT1L */
-               offset = reg_l;
+               offset = (s8)reg_l;
                offset += hubs->dcs_codes_l;
                dcs_cfg |= (u8)offset;