Commit Graph

264909 Commits

Author SHA1 Message Date
lw@rock-chips.com
24e03ef0f5 a22:modify board-rk29-a22.c 2011-11-30 12:32:12 +08:00
陈金泉
f0c3f25b04 add tlv320aic3111 codec driver 2011-11-30 11:42:08 +08:00
cmy
0d27ac8bb3 rtl8192c: fix gpio operation error, softap switch error 2011-11-30 11:04:51 +08:00
黄涛
7c35ccce3a Merge remote-tracking branch 'aosp/android-3.0' into develop-3.0 2011-11-30 10:36:13 +08:00
ddl
4b0965a601 camera(videobuf-core): fix deadlock in videobuf core, because dqueue ioctl havn't unlock vdev lock when stream is empty 2011-11-29 20:09:14 +08:00
hwg
b38c45814d add atheros ar6003 wifi driver
need to remove bt support in menuconfig: Networking support ---> Bluetooth subsystem support.
2011-11-29 15:41:58 +08:00
陈金泉
b941652d87 change for wm8994 2011-11-29 11:38:58 +08:00
Benoit Goby
6a4a38525d usb: gadget: android: Reset next_string_id before enable
Reset next_string_id to 0 before enabling the gadget driver. Otherwise,
after a large number of enable/disable cycles, bind will fail
because we cannot allocate new string ids. String ids cannot be larger
than 254 per USB spec.

Change-Id: I44f5fece45008b7a0a18c025d4eb5ce842585c28
Signed-off-by: Benoit Goby <benoit@android.com>
2011-11-28 19:02:13 -08:00
hyungseoung.yoo
dbb18fb2c1 Bluetooth: Keep master role when SCO or eSCO is active
This improves compatbility with a lot of headset / chipset
combinations. Ideally this should not be needed.

Change-Id: I8b676701e12e416aa7d60801b9d353b15d102709
Signed-off-by: hyungseoung.yoo <hyungseoung.yoo@samsung.com>
Signed-off-by: Jaikumar Ganesh <jaikumarg@android.com>
2011-11-28 15:34:39 -08:00
杜坤明
06b726825c gpu : Prior the cancel_delayed_work_sync to gckOS_AcquireMutex 2011-11-28 17:21:15 +08:00
张昊
10ed707095 fix building error mtd23d 2011-11-28 15:10:41 +08:00
ddl
3c4aa14642 camera: update a22 board file for support obtain camera information(facing,orientation) 2011-11-28 12:16:14 +08:00
ddl
eb726fee8d camera: update phonesdk and td8801 board file for support obtain camera information(facing,orientation) 2011-11-28 11:17:57 +08:00
黄涛
bb81a72d22 Merge remote-tracking branch 'last/develop-3.0' into develop-3.0 2011-11-25 17:47:39 +08:00
黄涛
adc8abbd99 Revert "wm831x:fix building error"
This reverts commit 74d34d6871.
2011-11-25 17:47:33 +08:00
ddl
4c6d24c23b camera: support obtain camera information(facing,orientation) 2011-11-25 15:34:16 +08:00
陈金泉
ab0c8bf4f0 turn up rt5631 SPK volume 2011-11-25 11:32:27 +08:00
黄涛
c722a34ca9 sound: rk29: pcm: fix bug on rockchip_pcm_enqueue
Fix this bug:
Unable to handle kernel paging request at virtual address 6b6b6b77
pgd = d41ec000
[6b6b6b77] *pgd=00000000
Internal error: Oops: 5 [#1] PREEMPT
CPU: 0    Tainted: P             (3.0.8+ #250)
PC is at rockchip_pcm_enqueue+0x2c/0xec
LR is at rk29_audio_buffdone+0x58/0x84
pc : [<c0713094>]    lr : [<c071361c>]    psr: 80000193
sp : d0bfdcf8  ip : 00000001  fp : d51f5c44
r10: d0a2e414  r9 : 6b6b6b6b  r8 : 6b6b6b6b
r7 : 00000001  r6 : d53abc80  r5 : 6b6b6b6b  r4 : d0a983c0
r3 : 6b6b6b6b  r2 : d6d6d6d6  r1 : 0000001d  r0 : d53abc80

[<c0713094>] (rockchip_pcm_enqueue+0x2c/0xec) from [<c071361c>] (rk29_audio_buffdone+0x58/0x84)
[<c071361c>] (rk29_audio_buffdone+0x58/0x84) from [<c0447a50>] (rk29_pl330_rq+0x270/0x2d0)
[<c0447a50>] (rk29_pl330_rq+0x270/0x2d0) from [<c04438f4>] (pl330_update+0x374/0x438)
[<c04438f4>] (pl330_update+0x374/0x438) from [<c0446d3c>] (pl330_irq_handler+0xc/0x18)
[<c0446d3c>] (pl330_irq_handler+0xc/0x18) from [<c04960e0>] (handle_irq_event_percpu+0x30/0x174)
[<c04960e0>] (handle_irq_event_percpu+0x30/0x174) from [<c049627c>] (handle_irq_event+0x58/0x80)
[<c049627c>] (handle_irq_event+0x58/0x80) from [<c0498358>] (handle_fasteoi_irq+0xb4/0x108)
[<c0498358>] (handle_fasteoi_irq+0xb4/0x108) from [<c0495d70>] (generic_handle_irq+0x28/0x3c)
[<c0495d70>] (generic_handle_irq+0x28/0x3c) from [<c0433060>] (asm_do_IRQ+0x60/0x84)
[<c0433060>] (asm_do_IRQ+0x60/0x84) from [<c04384c4>] (__irq_svc+0x44/0xa0)
Exception stack(0xd0bfde10 to 0xd0bfde58)
de00:                                     00000001 00000108 00000002 00000000
de20: 00000013 d5028640 c0b0d32c d05e8808 d05e8800 d05e8808 c0b0d804 d0bfdeb8
de40: d4bd2400 d0bfde58 c0454ab4 c046ef54 40000013 ffffffff
[<c04384c4>] (__irq_svc+0x44/0xa0) from [<c046ef54>] (__queue_work+0x334/0x370)
[<c046ef54>] (__queue_work+0x334/0x370) from [<c046efdc>] (queue_work_on+0x2c/0x34)
[<c046efdc>] (queue_work_on+0x2c/0x34) from [<c046f024>] (queue_work+0x2c/0x54)
[<c046f024>] (queue_work+0x2c/0x54) from [<c047b214>] (__async_schedule+0x194/0x1b4)
[<c047b214>] (__async_schedule+0x194/0x1b4) from [<c070f118>] (dapm_power_widgets+0x334/0x3a4)
[<c070f118>] (dapm_power_widgets+0x334/0x3a4) from [<c070f234>] (snd_soc_dapm_stream_event+0xac/0xbc)
[<c070f234>] (snd_soc_dapm_stream_event+0xac/0xbc) from [<c070b3a0>] (soc_codec_close+0x164/0x178)
[<c070b3a0>] (soc_codec_close+0x164/0x178) from [<c07025a0>] (snd_pcm_release_substream+0x54/0xa4)
[<c07025a0>] (snd_pcm_release_substream+0x54/0xa4) from [<c0702618>] (snd_pcm_release+0x28/0x6c)
[<c0702618>] (snd_pcm_release+0x28/0x6c) from [<c04c8e50>] (fput+0x104/0x1f8)
[<c04c8e50>] (fput+0x104/0x1f8) from [<c04c5e60>] (filp_close+0x6c/0x78)
[<c04c5e60>] (filp_close+0x6c/0x78) from [<c04c5f30>] (sys_close+0xc4/0x124)
[<c04c5f30>] (sys_close+0xc4/0x124) from [<c0438940>] (ret_fast_syscall+0x0/0x30)

rk29_audio_buffdone call rockchip_pcm_enqueue, which access
rockchip_runtime_data *prtd, but prtd is freed on rockchip_pcm_close.
2011-11-24 17:42:23 +08:00
张昊
5eb1bc7285 fix driver bug : muti-touch & td8801 2011-11-24 11:42:39 +08:00
张昊
d924261aac Driver : add new modem driver sc8800 & tdsc8800 2011-11-23 12:40:21 +08:00
张昊
d05f190034 TD8801 : change for wm8994 2011-11-23 11:45:19 +08:00
陈金泉
b8a4ab8ff8 change for wm8994 2011-11-23 10:43:46 +08:00
Arve Hjønnevåg
9d187300df rtc: Fix some bugs that allowed accumulating time drift in suspend/resume
The current code checks if abs(delta_delta.tv_sec) is greater or
equal to two before it discards the old delta value, but this can
trigger at close to -1 seconds since -1.000000001 seconds is stored
as tv_sec -2 and tv_nsec 999999999 in a normalized timespec.

rtc_resume had an early return check if the rtc value had not changed
since rtc_suspend. This effectivly stops time for the duration of the
short sleep. Check if sleep_time is positive after all the adjustments
have been applied instead since this allows the old_system adjustment
in rtc_suspend to have an effect even for short sleep cycles.

Change-Id: I00b45c0349ec91a4bab9b41a126b377515427898
Signed-off-by: Arve Hjønnevåg <arve@android.com>
2011-11-22 16:49:58 -08:00
Arve Hjønnevåg
452d440ab2 Fix "time: Catch invalid timespec sleep values in __timekeeping_inject_sleeptime" to compile on 3.0
Change-Id: I1225f279cda04dedbfb7f853f6b58f1032bd6d2b
2011-11-22 16:49:43 -08:00
John Stultz
cf70c6a400 time: Catch invalid timespec sleep values in __timekeeping_inject_sleeptime
Arve suggested making sure we catch possible negative sleep time
intervals that could be passed into timekeeping_inject_sleeptime.

CC: Arve Hjønnevåg <arve@android.com>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
2011-11-22 16:49:29 -08:00
John Stultz
340ede3671 rtc: Avoid accumulating time drift in suspend/resume
Because the RTC interface is only a second granular interface,
each time we read from the RTC for suspend/resume, we introduce a
half second (on average) of error.

In order to avoid this error accumulating as the system is suspended
over and over, this patch measures the time delta between the RTC
and the system CLOCK_REALTIME.

If the delta is less then 2 seconds from the last suspend, we compensate
by using the previous time delta (keeping it close). If it is larger
then 2 seconds, we assume the clock was set or has been changed, so we
do no correction and update the delta.

Note: If NTP is running, ths could seem to "fight" with the NTP corrected
time, where as if the system time was off by 1 second, and NTP slewed the
value in, a suspend/resume cycle could undo this correction, by trying to
restore the previous offset from the RTC. However, without this patch,
since each read could cause almost a full second worth of error, its
possible to get almost 2 seconds of error just from the suspend/resume
cycle alone, so this about equal to any offset added by the compensation.

Further on systems that suspend/resume frequently, this should keep time
closer then NTP could compensate for if the errors were allowed to
accumulate.

Credits to Arve Hjønnevåg for suggesting this solution.

This patch also improves some of the variable names and adds more clear
comments.

CC: Arve Hjønnevåg <arve@android.com>
CC: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
2011-11-22 16:49:26 -08:00
黄涛
3ed00a8562 pack-kernel.sh: fix local version 2011-11-22 22:10:02 +08:00
陈金泉
25c21ca660 fix rt5631 calling function error 2011-11-22 22:02:04 +08:00
张昊
3ac12c41e1 Driver : add new driver al3006/bma023 & fix gc0309 building error 2011-11-22 21:16:44 +08:00
张昊
ee3fe211f7 PHONE : use new sdmmc driver 2011-11-22 21:16:44 +08:00
陈金泉
6aa405b36d delete rk29_alc5621,add rk29_rt5621 2011-11-22 20:35:02 +08:00
黄涛
7971100fb0 rk29: dd3sdk: defconfig: add more netfilter 2011-11-22 19:57:39 +08:00
黄涛
9735129418 rk29: dd3sdk: defconfig: reduce by savedefconfig 2011-11-22 19:55:54 +08:00
黄涛
197d36cdb7 pack-kernel.sh: merge from stable, remove 5625 2011-11-22 19:53:00 +08:00
陈金泉
e7f8f22c7a delete old driver of rt5621 2011-11-22 19:39:01 +08:00
陈金泉
f22be8c687 add rt5621 driver for kernel 3.0 and change wm8994 driver 2011-11-22 18:10:23 +08:00
黄涛
b141970bd7 input: eeti_egalax_i2c: no report pressure 2011-11-22 17:40:27 +08:00
黄涛
9b6c7f264c earlysuspend: Temporary enable debug 2011-11-22 17:17:13 +08:00
黄涛
541a6baf74 earlysuspend: revert to default version 2011-11-22 17:17:13 +08:00
yangkai
f500e98f71 Merge branch 'develop-3.0' of ssh://192.168.1.29/rk/kernel into develop-3.0 2011-11-22 15:37:57 +08:00
yangkai
fecada63c1 ddr v2.02 for lower power consumption 2011-11-22 15:36:11 +08:00
黄涛
55b393acd9 rk29: dd3sdk: defconfig: enable debugfs 2011-11-22 14:34:36 +08:00
张昊
8f3991d3fb wm831x : fix 831x init bug for td8801 2011-11-22 12:11:16 +08:00
张昊
6796f43463 driver pixcir_i2c_ts : update to support android 4.0 muti-touch reporter 2011-11-22 12:11:16 +08:00
lintao
33f26b29b6 merge from kernel 2.6.32 develop 2011-11-22 11:54:23 +08:00
张昊
4949870baf Mach-rk29 : add new board td8801_v2 config 2011-11-22 10:41:46 +08:00
张昊
a4f5356fe0 Driver : add touchscreen driver pixcir_i2c_ts & ili2102 for td8801 2011-11-22 10:20:35 +08:00
张昊
6a9d02a026 Driver : add screen driver ls035y8dx04a 2011-11-22 10:18:31 +08:00
黄涛
ea7f06f5e4 Revert "TD8801 : Add board td8801_v2"
This reverts commit 45ef5ba515.
2011-11-22 09:28:04 +08:00
张昊
45ef5ba515 TD8801 : Add board td8801_v2 2011-11-21 21:16:32 +08:00