projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c436a
)
ASoC: wm8961: Convert codec->hw_read to snd_soc_read
author
Axel Lin
<
[email protected]
>
Fri, 14 Oct 2011 01:39:14 +0000
(09:39 +0800)
committer
Mark Brown
<
[email protected]
>
Fri, 14 Oct 2011 19:29:04 +0000
(20:29 +0100)
codec->hw_read is broken now, let's covert to snd_soc_read.
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8961.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8961.c
b/sound/soc/codecs/wm8961.c
index cdee8103d09b323efebfee47497d87dbe525f8ac..9568c8a49f962da10d62a11ad58a8143cfd8619d 100644
(file)
--- a/
sound/soc/codecs/wm8961.c
+++ b/
sound/soc/codecs/wm8961.c
@@
-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)