OSDN Git Service

ASoC: Don't squash 16x8 registers down to 8 bits
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 May 2011 11:47:47 +0000 (13:47 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 11 May 2011 13:55:06 +0000 (15:55 +0200)
Currently we'll force all registers to fit in 8 bits before passing
down to the I/O function. Looks like a cut'n'paste bug.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
sound/soc/soc-cache.c

index 687beec..6e5e30a 100644 (file)
@@ -319,7 +319,6 @@ static int snd_soc_16_8_write(struct snd_soc_codec *codec, unsigned int reg,
        data[0] = (reg >> 8) & 0xff;
        data[1] = reg & 0xff;
        data[2] = value;
-       reg &= 0xff;
 
        return do_hw_write(codec, reg, value, data, 3);
 }