[alsa-devel] [PATCH] ASoC: Don't squash 16x8 registers down to 8 bits
Liam Girdwood
lrg at slimlogic.co.uk
Wed May 11 15:37:37 CEST 2011
On Wed, 2011-05-11 at 13:48 +0200, Mark Brown wrote:
> 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 at opensource.wolfsonmicro.com>
> ---
> sound/soc/soc-cache.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
> index bb8e446..40548ce 100644
> --- a/sound/soc/soc-cache.c
> +++ b/sound/soc/soc-cache.c
> @@ -232,7 +232,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);
> }
Acked-by: Liam Girdwood <lrg at ti.com>
More information about the Alsa-devel
mailing list