Zeng Zhaoming
f0cdcf3ab6
ASoC: sgtl5000: Enable VAG when DAC/ADC up
...
As manual described, VAG is an internal voltage reference of DAC/ADC,
So enabled it before DAC/ADC up.
One more thing should care about is VAG fully ramped down requires 400ms,
wait it to avoid pop.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Signed-off-by: Shawn Guo <shawn.guo@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-04-02 23:02:11 +01:00
Zeng Zhaoming
bb362e2e4f
ASoC: sgtl5000: Fix wrong register name in restore
...
Correct SGTL5000_CHIP_CLK_CTRL to SGTL5000_CHIP_REF_CTRL in
sgtl5000_restore_regs(), and add comment to explain the
restore order.
Reported-by: Julia Lawall <julia.lawall@lip6.fr >
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Acked-by: Dong Aisheng <dong.aisheng@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-01-20 13:54:32 +00:00
Zeng Zhaoming
f7cb8a4be1
ASoC: sgtl5000: update author email address
...
Update MODULE_AUTHOR email address.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-01-16 15:06:06 +00:00
Zeng Zhaoming
106b5fa700
tty: Fix memory leak in virtual console when enable unicode translation
...
Virtual console unicode translation map leaks with following
message when enable kmemleak:
unreferenced object 0xeb5ec450 (size 192):
comm "setfont", pid 665, jiffies 4294899028 (age 3696.220s)
hex dump (first 32 bytes):
e0 5b 9d eb 00 00 00 00 00 00 00 00 80 b9 ea eb .[..............
b0 5a 9d eb 00 00 00 00 00 00 00 00 00 00 00 00 .Z..............
backtrace:
[<c1533f8c>] kmemleak_alloc+0x3c/0xa0
[<c114acc2>] kmem_cache_alloc_trace+0xe2/0x250
[<c13498e8>] con_clear_unimap+0x78/0xd0
[<c1345552>] vt_ioctl+0x1562/0x1d00
[<c133aa00>] tty_ioctl+0x230/0x7c0
[<c1171519>] do_vfs_ioctl+0x79/0x2d0
[<c11717df>] sys_ioctl+0x6f/0x80
[<c156601f>] sysenter_do_call+0x12/0x38
[<ffffffff>] 0xffffffff
unreferenced object 0xeb9d5be0 (size 128):
comm "setfont", pid 660, jiffies 4294899030 (age 3696.212s)
hex dump (first 32 bytes):
60 c2 a6 eb 50 c8 a6 eb c0 54 9d eb 80 59 9d eb `...P....T...Y..
90 53 9d eb 60 52 9d eb 60 92 9b eb 00 00 00 00 .S..`R..`.......
backtrace:
[<c1533f8c>] kmemleak_alloc+0x3c/0xa0
[<c114acc2>] kmem_cache_alloc_trace+0xe2/0x250
[<c134938c>] con_insert_unipair+0x7c/0x150
[<c1349f8c>] con_set_unimap+0x15c/0x1f0
[<c13456fb>] vt_ioctl+0x170b/0x1d00
[<c133aa00>] tty_ioctl+0x230/0x7c0
[<c1171519>] do_vfs_ioctl+0x79/0x2d0
[<c11717df>] sys_ioctl+0x6f/0x80
[<c156601f>] sysenter_do_call+0x12/0x38
[<ffffffff>] 0xffffffff
The leak caused by con_set_default_unimap() not correct free the old map.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2012-01-04 16:18:55 -08:00
Zeng Zhaoming
55cfaa3cbd
mm/mempolicy.c: add rcu read lock to protect pid structure
...
find_task_by_vpid() should be protected by rcu_read_lock(), to prevent
free_pid() reclaiming pid.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Cc: "Paul E. McKenney" <paulmck@us.ibm.com >
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com >
Cc: Christoph Lameter <cl@linux-foundation.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2010-12-02 14:51:14 -08:00
Zeng Zhaoming
53c96dfdd0
ACPI, hp-wmi: Fix memory leak in acpi query
...
Free acpi return memory after query.
Signed-off-by: Zeng Zhaoming <zengzm.kernel@gmail.com >
Signed-off-by: Matthew Garrett <mjg@redhat.com >
2010-11-24 12:07:10 -05:00