diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-05 10:12:53 +0000 |
commit | 5c105d9f3fd086aff195d3849dcf847d6b0bd927 (patch) | |
tree | 1229a11f725bfa58aa7c57a76898553bb5f6654a /target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch | |
download | openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.tar.gz openwrt-5c105d9f3fd086aff195d3849dcf847d6b0bd927.zip |
branch Attitude Adjustment
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33625 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch')
-rw-r--r-- | target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch b/target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch new file mode 100644 index 000000000..19d44c9ac --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch @@ -0,0 +1,26 @@ +--- a/sound/soc/codecs/wm8753.c ++++ b/sound/soc/codecs/wm8753.c +@@ -79,7 +79,7 @@ static const u16 wm8753_reg[] = { + 0x0097, 0x0097, 0x0000, 0x0004, + 0x0000, 0x0083, 0x0024, 0x01ba, + 0x0000, 0x0083, 0x0024, 0x01ba, +- 0x0000, 0x0000 ++ 0x0000, 0x0000, 0x0000 + }; + + /* codec private data */ +@@ -1660,11 +1660,11 @@ static int wm8753_register(struct wm8753 + 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(wm8753->reg_cache)); ++ memcpy(codec->reg_cache, wm8753_reg, sizeof(wm8753_reg)); + INIT_DELAYED_WORK(&codec->delayed_work, wm8753_work); + + ret = wm8753_reset(codec); |