# Choose binutils version. choice prompt "Binutils Version" if TOOLCHAINOPTS default BINUTILS_VERSION_2_17 help Select the version of binutils you wish to use. config BINUTILS_VERSION_2_16_1 bool "binutils 2.16.1" config BINUTILS_VERSION_2_17 bool "binutils 2.17" config BINUTILS_VERSION_2_18 bool "binutils 2.18" depends !TARGET_avr32 endchoice config EXTRA_BINUTILS_CONFIG_OPTIONS string prompt "Additional binutils options" if TOOLCHAINOPTS default "" help Any additional binutils options you may want to include.... config BINUTILS_VERSION string prompt "Binutils Version" if (TOOLCHAINOPTS && NULL) default "2.16.1" if BINUTILS_VERSION_2_16_1 default "2.17" if BINUTILS_VERSION_2_17 default "2.18" if BINUTILS_VERSION_2_18 default "2.17" >index : openwrt/upstream
upstream openwrtJames
aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches-2.6.30/120-fix-wm8753-reg_cache.patch
blob: c1c4a93ed26a72e82e18ee2077a0a9c514321644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);