diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2009-01-29 01:08:40 +0100 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2009-01-29 01:22:27 +0100 |
commit | 9e2a3b3c6f9e98c0ba11a1069502c91af3ed9bec (patch) | |
tree | 26eb4efd3c3886d07be1da7395c60fd8e7064fbe /packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch | |
parent | fc0b46cf92ab34f93ca7937a5da68672f92fcce8 (diff) |
linux-kexecboot: remove 2.6.23 (for zaurus c700 testing only)
Diffstat (limited to 'packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch')
-rw-r--r-- | packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch b/packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch deleted file mode 100644 index 78e81ea83a..0000000000 --- a/packages/kexecboot/linux-kexecboot-2.6.23/wm9712-reset-loop-r2.patch +++ /dev/null @@ -1,44 +0,0 @@ - sound/soc/codecs/wm9712.c | 28 ++++++++++++++++++---------- - 1 file changed, 18 insertions(+), 10 deletions(-) - -Index: git/sound/soc/codecs/wm9712.c -=================================================================== ---- git.orig/sound/soc/codecs/wm9712.c 2006-11-07 22:10:01.000000000 +0000 -+++ git/sound/soc/codecs/wm9712.c 2006-11-07 22:11:50.000000000 +0000 -@@ -618,18 +618,26 @@ static int wm9712_dapm_event(struct snd_ - - static int wm9712_reset(struct snd_soc_codec *codec, int try_warm) - { -- if (try_warm && soc_ac97_ops.warm_reset) { -- soc_ac97_ops.warm_reset(codec->ac97); -- if (!(ac97_read(codec, 0) & 0x8000)) -- return 1; -- } -+ int retry = 3; - -- soc_ac97_ops.reset(codec->ac97); -- if (ac97_read(codec, 0) & 0x8000) -- goto err; -- return 0; -+ while (retry--) -+ { -+ if(try_warm && soc_ac97_ops.warm_reset) { -+ soc_ac97_ops.warm_reset(codec->ac97); -+ if(ac97_read(codec, 0) & 0x8000) -+ continue; -+ else -+ return 1; -+ } -+ -+ soc_ac97_ops.reset(codec->ac97); -+ if(ac97_read(codec, 0) & 0x8000) -+ continue; -+ else -+ return 0; -+ -+ } - --err: - printk(KERN_ERR "WM9712 AC97 reset failed\n"); - return -EIO; - } |