Commit graph

306224 commits

Author SHA1 Message Date
yetta_wu
5b569c0404 display: JDI: add physical width and height for correct dpi
Report physicall width and height in mm to gralloc, and let gralloc
calculate correct dpi information.

Bug: 8806446

Change-Id: Ic0fd069b61468486bd2977c4c1eaa18d461f559f
Signed-off-by: yetta_wu <yetta_wu@asus.com>
2013-05-10 03:29:05 +00:00
Hank_Lee
b9076c3865 power: bq27541: just notify read temp fail instead of shutdown
Bug: 8785774
Change-Id: Ib494c82a0d14d3af3523b3b2a2d780243a651461
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
2013-05-10 03:24:23 +00:00
Naseer Ahmed
9ce9eb14ef msm_fb: Set timeline threshold for command mode to 2
For command mode panel, timeline threshold is 1 and we return
commit ioctl on DMA_P interrupt. This causes fps to drop
since sometimes overlay is kickoff just after vsync interrupt
causing DMA_P wait time more than 1 vsync period. Hence, increase
timeline to 2 and return commit ioctl on vsync interrupt.

CRs-fixed: 457153
CRs-fixed: 452269
Change-Id: Ic7385631fdeb25f269306d284c94fdf43cade3d1
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-05-09 20:02:15 -04:00
Naseer Ahmed
72890df68d msm_fb: display: disable mdp blt mode
The switch of blt mode may cause mdp hang on some targets. To avoid
blt switch, we won't allocate the pipe that requires blt
mode. Basically this implies two things: downscaling is done by
rotator and gpu composition is used in case of blt mode is needed.

This implementation is to calculate mdp clk requirement based on the
req data passed from userspace before setting the actural pipe
data. If overlay_set asks for mdp clk that is greater than
mdp_max_clk, meaning blt is needed, overlay_set returns before pipe
allocation or pipe data change, so this way can avoid mdp to work on
wrong pipe data.

Change-Id: I22e73d08bed920b366c18ee21b132339cf2a0347
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2013-05-09 20:01:56 -04:00
Sakshi Agrawal
cbb276afad msm: kgsl: Remove extra call to sync_fence_put()
sync_fence_put is called twice and cause NULL pointer dereference.

Change-Id: Ia29e676af28d9040d1ba1ee8669f1306cc8b4035
Signed-off-by: Alex Wong <waiw@codeaurora.org>
Signed-off-by: Sakshi Agrawal <sakshia@codeaurora.org>
2013-05-09 16:30:23 -07:00
mars_kao
0ef8971184 TouchScreen: update the touch firmware to A015.
Fix:
8717455: Holding touch panel edge by one finger,the touch action will be affected.
8768005: Holding Flo along the left edge of the device reveals false touch problems.
8840158: Pinch zoom in and out on chrome and maps doesnt seem as accurate / responsive as on nakasi.
8798827: Touch can not be correct clicked.
customer report: pin unlock will lose touch report.
Modification for AC De-noise Mechanism.

Change-Id: If846956114dc51f8d432c881f7b4e3b78b4040c8
Signed-off-by: mars_kao <mars_kao@asus.com>
2013-05-09 22:01:43 +00:00
Saurabh Shah
a42b94e993 msm: display: flo: Add customized mdp_max_bw for flo targets
mdp_max_bw has to be increased due to the high resolution panel of flo
targets.

Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
2013-05-09 13:27:02 -07:00
Saurabh Shah
9f988613ca msm_fb: display: get mdp bandwidth parameters from board file
Underrun issues can be solved by changing mdp bandwidth parameters:
max_bw, ab_factor and ib_factor. However these parameters are not
universally same for all targets, and one set of values that works for
one target could cause underruns or higher power on other
targets. This change is driver change which makes those parameters
target dependent.

CRs-Fixed: 464492
Change-Id: Ib23ebc431caabbe91c7ae3bd96bb38789d7ddc90
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
2013-05-09 13:21:25 -07:00
Saurabh Shah
f41ee26850 msm: display: provide mdp bandwidth parameters from board file
Underrun issues can be solved by changing mdp bandwidth parameters:
max_bw, ab_factor and ib_factor. However these parameters are not
universally same for all targets, and one set of values that works for
one target could cause underruns or higher power on other
targets. This is board side change.

CRs-Fixed: 464492
Change-Id: I2a8fbb9018011ddf42dfa50b371e450e38f4351a
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Saurabh Shah <saurshah@codeaurora.org>
2013-05-09 13:20:51 -07:00
Iliyan Malchev
bee1ef623e flo_defconfig: enable VPN-related kernel options
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-09 10:52:03 -07:00
Hank_Lee
3291013b3d charger: smb345: setup wireless charging current limit orderly
1. detect wireless charging
2. set input current limit as 300 mA and disable AICL
3. after 2 seconds, set input current limit as 500 mA
4. after 2 seconds, set input current limit as 700 mA

Change-Id: Ia91ea674ba7eea45f92421d13b75a578a2d21a77
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
2013-05-09 16:41:50 +00:00
tryout_chen
c7b57708c1 CAP1106: Fine tune params based on BODYSAR, add APP2MDM_SAR support, code refinement.
Change-Id: Ic7499b0dc1a5005cc6dfba29d061bd4164cd4a7a
Signed-off-by: tryout_chen <tryout_chen@asus.com>
2013-05-09 16:33:36 +00:00
yetta_wu
c6833ee6ee display: raise mdp_max_bw to avoid lots of bandwidth warning messages
1. case 01180646
   3080000000 is the max number for mmfab bus, so we could change the
   mdp_max_bw from 2000000000 to 3080000000.

2. to avoid the warning messages like below:
   mdp4_overlay_mdp_perf_req: req ib bw=2028666880 is larger than max
   bw=2000000000

Bug: 8802391

Change-Id: I4f0c5ed3e2f42cfbd3221a0200dd0b565e49145e
Signed-off-by: yetta_wu <yetta_wu@asus.com>
2013-05-09 16:22:56 +00:00
chungyi_guan
6572f26e20 Audio: Remove controls for REV_A.
HW_REV_A is no longer supported.

Bug: 8862570
Change-Id: I92e75c45af54b988f8329ffc212c2d36e09d9796
Signed-off-by: chungyi_guan <ChungYi_Guan@asus.com>
2013-05-09 19:49:47 +08:00
mars_kao
9f83107ca8 TouchScreen: Set the INPUT_PROP_DIRECT in touch driver.
[Issue 8857874][FLO] Incorrect touch driver information.

Change-Id: I11399501afa998ce27825f9b60f9dcf2f9f27bf5
Signed-off-by: mars_kao <mars_kao@asus.com>
2013-05-09 11:13:51 +08:00
Konstantin Motov
d093416d38 msm: camera2: Fix AF for Flo build
Enable actuators and set proper device id.

Signed-off-by: Konstantin Motov <kmotov@codeaurora.org>
2013-05-08 14:00:13 -07:00
Konstantin Motov
874c7c3602 msm camera2: Fix double SOF per frame for VFE32
Fix double sending of SOF event per frame.

Signed-off-by: Konstantin Motov <kmotov@codeaurora.org>
2013-05-08 14:00:12 -07:00
Sreesudhan Ramakrish Ramkumar
5e0883e8ef msm: camera: Avoid clk_set_rate for branch clocks
Avoid setting clk_set_rate for branch clocks. Set clock rate only
if rate is greater than zero.

Change-Id: I04d271a382e59a01ad1d5509b1aff583a0fcf65f
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
2013-05-08 14:00:12 -07:00
Kevin Chan
7850af19c3 msm: camera: Fix for dual ISP buffer management
Return -1 when there is no free buffer for dual ISP use case,
in order to have proper error handling in isp driver..

Change-Id: Ic3f3261bebe192fdcf62a1d06f4e8a1e6033ef61
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:11 -07:00
Shuzhen Wang
61b147dc00 msm: camera2: Change csiphy HW version register offset
Workaround for csiphy HW version 2.0, missing register for
hw version. Using MIPI_CSIPHY_DEBUG_BUS3 register instead
of MIPI_CSIPHY_INTERRUPT_STATUS0 because reading status0
module register is not a settled after reset.

Change-Id: Ib91e7796494ca55330c953c5d8999f516d8a0379
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
2013-05-08 14:00:10 -07:00
Sunid Wilson
cec93430d6 msm: gemini: Support upto 64mp encoding
Redesign the output ping pong mechanism to support
upto 64mp encoding using gemini hardware.

Remove the MSM_GMN_IOCTL_TEST_DUMP_REGION ioctl,
because it's unsafe.

Change-Id: Id7801861e0fe119f61a02fb3409155f312a85d21
Signed-off-by: Sunid Wilson <sunidw@codeaurora.org>
2013-05-08 14:00:10 -07:00
Evgeniy Borisov
e229b21867 msm: camera2: Swap CSID and CSIPHY sensor sub modules.
Swap modules in sensor sub module enum.
Reverse the order of csid init and csiphy init
modules calls. Between csid and icsphy have a
resource dependency (regulator, clocks).

Change-Id: I0b7f8873e664f6ee06a4200710bc76b5c69827aa
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
2013-05-08 14:00:09 -07:00
Vladislav Hristov
54f502a96e msm: camera: ratelimit ISP prints in IRQ/tasklet
There is a possibility a bunch of prints to be generated by the ISP
driver in interrupt or tasklet context in a case where something wrong
is going on in the userspace. Such case is when there is no fast enough
buffer queued to the stream or other more scary problems.

As the prints are done in a very high priority context and there can be
many of them for very short period of time, it can be observed an
unnecessary device slowdown or even in some cases the watchdog can bark.
In order to limit the amount of prints the ISP generates at this times a
ratelimit is applied.

Change-Id: I0f172f8eab6a5a51a888aea5cab776bf4bf5877e
Signed-off-by: Vladislav Hristov <vhrist@codeaurora.org>
2013-05-08 14:00:09 -07:00
Kevin Chan
0a8b308522 msm: camera: Update CPP bandwidth request
Reduce CPP bandwidth request to 1Gbps in order to
avoid pushing bimc to 460mhz

Change-Id: Ibb9bafae5a6d5e82cf967493515facbbc681b70b
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:08 -07:00
Ankit Premrajka
546e4c48e1 msm: camera_v2: Post fd close event to user space.
Post the stream destroy event to back-end even if the last
fd is being closed. This is required because when the mediaserver
crashes, the fds are closed in no particular order.

Change-Id: Ie6098f9aa2b9090d9901684998a8ab3a332d4805
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2013-05-08 14:00:07 -07:00
Kevin Chan
566841c3e9 msm: camera: Attach all ISP context during ISP open
When one ISP is active and another ISP opens, the iommu
attach context call will halt the iommu in order to
program attach the context for the second ISP. This will
cause the first ISP write operation to pause and results
in overflow. This change workaround the issue by
attaching both contexts when the first ISP is opened.

Change-Id: I04202c4bbebc250c5f3af72f8800cc581727a9ea
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:07 -07:00
Kevin Chan
53b70b42af msm: Add support for composite ISP statistics
ISP image statistics done interrupt
 for each stats can be fired at different
time, the timing is based on the statistics
window. For high frame rate camera, the number
of interrupts will be significantly higher if
statistics are collected for each frame. This
change add the support to change the interrupt
policy and configure the hardware to generate
one interrupt when all the image statistics are
collect.

Change-Id: Ib2d103bcd46da6c52de246b1245d8928f37be0c5
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:06 -07:00
Kevin Chan
6b4e25c7f6 msm: camera: Fix for bandwidth update
Bandwidth should be calculated using all clients state,
instead of the state of the caller.

Change-Id: I28f78c9753dd58c821aa25afd28eb4ed83081e81
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:05 -07:00
Kevin Chan
e66d01dc6d msm: camera: Handle no free buffer for dual ISP
For dual ISP, both ISP need to write to the same buffer
in order to ensure the image consistency. When ISP
cannot fetch a new buffer, the hardware buffer address
will not be updated. However, there could be a race condition
where one ISP cannot get a new buffer but the second ISP is able
to get a new buffer. In that case, the image will become out of sync.
This change queue an empty buffer to shared queue for the second
ISP to fetch. When the second ISP fetch the empty buffer, it will
return and not update the hardware buffer address

Change-Id: I0970bf04476661ff7c10680c4b08bd98ac94ec6f
Signed-off-by: Kevin Chan <ktchan@codeaurora.org>
2013-05-08 14:00:05 -07:00
Ankit Premrajka
16dc784718 msm: camera_v2: add locks around session operations.
This change makes sure that all buffer queue manipulation operations
are properly synchronized. It also removes the stream pointer
from the buffer since this memeory can get freed
from underneath without any notification.

CRs-Fixed: 472605 472986
Change-Id: Ie15dd42a02b8bfea1100dca7a7b5ccdbabe488c7
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2013-05-08 14:00:04 -07:00
Ankit Premrajka
7e99fa4026 msm: camera_v2: fix error message.
This change fixes a discrepancy in the error log message.

Change-Id: I16766ca85c03c86b35c25ea3e4ac3ad95733927e
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2013-05-08 14:00:04 -07:00
Ankit Premrajka
91e7fd0e6c msm: camera_v2: protect all cmd ack q accesses around mutex.
This change protects all cmd ack queue acceses for a particular
session around a session-wide mutex. This ensures proper
synchronisation and prevents use after free scenarios. It also
ensures that the commands coming from HAL are posted to the
camera daemon in a synchronised fashion.

Change-Id: Ied6fcacd775aed69b97c8fe9ccc1ffffbdcbe0e8
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2013-05-08 14:00:03 -07:00
Ankit Premrajka
42f50cf3a6 msm: camera_v2: differentiate streams with vb2 buffers.
vb2_poll needs to be called only for streams that have
vb2 buffers associated with them. If this is not taken care of,
the function constantly returns an error code for non vb2 streams
resulting in the polling process hogging the CPU.

Change-Id: I70d29e1666478c07bf8513ead7499891a3f01bd6
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2013-05-08 14:00:02 -07:00
Jeyaprakash Soundrapandian
c935d24183 msm: camera: eeprom driver support for target 8974
The eeprom may hold the data for calibration of autofocus,
whitebalance, lens shading and defect pixel correction.
The eeprom driver is supported with read write functionality.

Change-Id: I952bf1972bac9747ae4f0ea09c4dd6b8937c3f98
Signed-off-by: Jeyaprakash Soundrapandian <jsoundra@codeaurora.org>
Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
2013-05-08 14:00:02 -07:00
Iliyan Malchev
a3fa245f18 Revert "Revert "prima: release v3.2.2.8""
This reverts commit 5b6bea4823.
2013-05-08 14:00:01 -07:00
Ed Tam
5b6bea4823 Revert "prima: release v3.2.2.8"
Breaks wifi.

This reverts commit d754fb345c

Change-Id: I450c18489c0d7a8b424731a60a0034ce27b30a6d
Signed-off-by: Ed Tam <etam@google.com>
2013-05-08 19:05:56 +00:00
Iliyan Malchev
d754fb345c prima: release v3.2.2.8
git://codeaurora.org/external/wlan/prima.git

	abf45e1 wlan: Release 3.2.2.8
	a2e6c7c Fix the issue with zero bssid indication when connection is failed.
	2cae715 wlan: assoc rejects and connection failures with ZERO bssid

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-07 16:33:18 -07:00
xinchuan_wu
6a05ed220e leds: remove led default trigger setting.
LED must not be on when the device is pwoered on and charging.
Issue 8837333

Change-Id: I4b272a03056ba58914846ce93fc0a1c777f99279
Signed-off-by: xinchuan_wu <xinchuan_wu@asus.com>
2013-05-07 13:21:20 +08:00
yi-hsin_hung
46197acb5a drivers: usb: otg: Hold the 1 second wakelock after system suspend/resume.
The system suspend/resume too fast when plugging USB cable or otg cable.

Change-Id: I0fab7a40cf2c57509105e9bf0b882f7485014305
Signed-off-by: yi-hsin_hung <yi-hsin_hung@asus.com>
2013-05-03 21:06:27 +00:00
andy2_kuo
85583f1ff3 wcnss: Avoid preload WCNSS_qcom_wlan_nv.bin timing issue.
Use wcnss_node_write function to load riva firmware & preload nv.bin from
userspace. Don't use wcnss_node_open, because it will triggered by
"chown system system /dev/wcnss" in init.flo.rc

Change-Id: I8aafd9dc57579c19e6580326e51fe1e468c262f9
Signed-off-by: andy2_kuo <andy2_kuo@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-03 12:43:20 -07:00
Iliyan Malchev
1edef967c8 prima: release v3.2.2.7
git://codeaurora.org/external/wlan/prima.git

	2b0ef25 wlan: Release 3.2.2.7
	4678462 Revert "wlan: Release 3.2.2.8"
	fe45f89 wlan: Release 3.2.2.8
	d4715b5 wlan: Enumeration Type Change
	198846e wlan: Fix SSR race condition in device ioctl
	fb6b938 Fix NULL pointer dereference in csrRoamSaveConnectedInfomation
	a162a51 wlan: Memory leak and uninitialized variable.
	756ca40 wlan: Replacing the log with MTRACE
	1fcd4f3 Lock the list in the function pmcDoStartUapsdCallbacks
	262e0bb wlan:Increase CSR_RSN_MAX_AUTH_SUITES to 16
	8eb38b1 Send unicast probe request when AP caps change detected.
	52bfc01 wlan: get_sta_info not working
	d30770c Fix the buffer size in ADDBA response
	7e16a06 Fix to handle IMPS failure crash issue.
	acda87b wlan: Memory leak fix in WDA
	4df3ad0 wlan: Sending NULL TSPEC if send one after another

Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-01 23:48:52 -07:00
chiayi_wu
6ab36d58be camera: mi1040 driver
Add the driver module for mi1040 in camera_v2

Change-Id: I21f2cf6d6ce0ccc16b1acf929edbc10e06ce33e3
Signed-off-by: chiayi_wu <chiayi_wu@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-05-01 22:42:43 -07:00
Mekala Natarajan
eb7d99e93f ASoC: msm: Change QOS value for low latency path
There were variations in the time taken to
return from each write. This was due
to the delay in switching in and out of
power collapse. To manage this set QOS
value to 1ms so that the core has enough
time to wake up from power collapse

Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
2013-05-02 01:13:24 +00:00
yetta_wu
ca0a6e522c display: JDI: set backlight level only once in recovery mode
When factory reset is almost done, the backlight would be turned
on again after backlight off sequence in mipi_JDI_lcd_shutdown().
Only set backlight once in recovery mode to fix this issue.

Change-Id: I7243b85697aee0355ca34f1d560d571eaf8101e2
Signed-off-by: yetta_wu <yetta_wu@asus.com>
2013-05-02 01:03:57 +00:00
yetta_wu
8b60166fa4 display: JDI: fine tune power on/off timing
shorten power on/off timing

Change-Id: I3e6736472f989d1b063ce5865506a3a68923e5b5
Signed-off-by: yetta_wu <yetta_wu@asus.com>
2013-05-02 01:03:50 +00:00
paris_yeh
bedeadc840 input: enable key chord input driver support for bugreport
key chord driver is accessible at /dev/keychord. This driver can
be used for receiving notifications when client specified key
combinations are pressed.

Bug: 8733741
Change-Id: I901e24fe6f317daf97822a09de31a32bed415011
Signed-off-by: paris_yeh <paris_yeh@asus.com>
2013-05-02 00:28:46 +00:00
paris_yeh
3f77ea5c24 config: flo: disable panic on recoverable L2 single-bit error
From Cortex-A15 MPCore TRM, L2 cache is able to recover single-bit
soft error when ECC configured. For better user experiences and L2
cache is configured to support ECC in default, we disable kernel
panic when single-bit soft error was detected.

Change-Id: I1991ae2b8b55a01d36c020fdc758aa1266ca9684
Signed-off-by: paris_yeh <paris_yeh@asus.com>
2013-05-02 00:26:46 +00:00
Chris Manton
71db33d591 Prevent input subsystem from resetting key state during resume when wake enabled
Change-Id: I21908b932df5d9a1dc965221d849644101b7a259
Signed-off-by: paris_yeh <paris_yeh@asus.com>
2013-05-02 00:25:04 +00:00
Hank_Lee
fdf1b1cd3a charger: smb345: config charging type priority since hardware rev_c
Priority is : 1. AC, 2. wireless charging, 3. USB.
Charger default setting is that wireless charger has higher priority,
so disable wireless charging when AC is plugged in since hardare rev_c.

Bug: 8411313
Change-Id: I6da25d1d6fbdf683421918229babba0ab97afebc
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
2013-04-30 16:30:18 +08:00
Hank_Lee
846a2318df power: bq27541: only show "Full" status when charging source exists
If there is no charging source, we should not report "Full"
battery status or it will show charging icon

Bug: 8728645

Change-Id: If74cedaca272428208c536e647094cf81af20619
Signed-off-by: Hank_Lee <Hank_Lee@asus.com>
2013-04-30 14:34:24 +08:00