Skip to content

Commit

Permalink
ASoC: wm8961: Convert codec->hw_read to snd_soc_read
Browse files Browse the repository at this point in the history
codec->hw_read is broken now, let's covert to snd_soc_read.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 14, 2011
1 parent 38c436a commit 370f464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/soc/codecs/wm8961.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,9 @@ static int wm8961_probe(struct snd_soc_codec *codec)
}

/* This isn't volatile - readback doesn't correspond to write */
reg = codec->hw_read(codec, WM8961_RIGHT_INPUT_VOLUME);
codec->cache_bypass = 1;
reg = snd_soc_read(codec, WM8961_RIGHT_INPUT_VOLUME);
codec->cache_bypass = 0;
dev_info(codec->dev, "WM8961 family %d revision %c\n",
(reg & WM8961_DEVICE_ID_MASK) >> WM8961_DEVICE_ID_SHIFT,
((reg & WM8961_CHIP_REV_MASK) >> WM8961_CHIP_REV_SHIFT)
Expand Down

0 comments on commit 370f464

Please sign in to comment.