mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-12 22:20:15 +02:00
[s3c24xx] Fix wm8753 register cache.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16612 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5d24c5688a
commit
7ba8f9bfa4
@ -0,0 +1,26 @@
|
|||||||
|
--- a/sound/soc/codecs/wm8753.c 2009-06-28 20:58:43.000000000 +0200
|
||||||
|
+++ b/sound/soc/codecs/wm8753.c 2009-06-28 21:24:59.000000000 +0200
|
||||||
|
@@ -79,7 +79,7 @@
|
||||||
|
0x0097, 0x0097, 0x0000, 0x0004,
|
||||||
|
0x0000, 0x0083, 0x0024, 0x01ba,
|
||||||
|
0x0000, 0x0083, 0x0024, 0x01ba,
|
||||||
|
- 0x0000, 0x0000
|
||||||
|
+ 0x0000, 0x0000, 0x0000
|
||||||
|
};
|
||||||
|
|
||||||
|
/* codec private data */
|
||||||
|
@@ -1660,11 +1660,11 @@
|
||||||
|
codec->set_bias_level = wm8753_set_bias_level;
|
||||||
|
codec->dai = wm8753_dai;
|
||||||
|
codec->num_dai = 2;
|
||||||
|
- codec->reg_cache_size = ARRAY_SIZE(wm8753->reg_cache);
|
||||||
|
- codec->reg_cache = &wm8753->reg_cache;
|
||||||
|
+ codec->reg_cache_size = ARRAY_SIZE(wm8753->reg_cache) + 1;
|
||||||
|
+ codec->reg_cache = wm8753->reg_cache;
|
||||||
|
codec->private_data = wm8753;
|
||||||
|
|
||||||
|
- memcpy(codec->reg_cache, wm8753_reg, sizeof(codec->reg_cache));
|
||||||
|
+ memcpy(codec->reg_cache, wm8753_reg, sizeof(wm8753_reg));
|
||||||
|
INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work);
|
||||||
|
|
||||||
|
ret = wm8753_reset(codec);
|
Loading…
Reference in New Issue
Block a user