Commit Graph

44674 Commits

Author SHA1 Message Date
Ankit Premrajka
3e90b9f726 msm: camera: add ion support to native driver.
This change adds ion support to native (non V4L2)
camera driver. It also adds ion structures to the msm_frame
structure.

Change-Id: I9be720e7d9924074706c93eec52178cb6f130af6
Signed-off-by: Ankit Premrajka <ankitp@codeaurora.org>
2011-11-14 08:58:26 -08:00
Anirudh Ghayal
51e947f6f5 mfd: pm8xxx-misc: Add pm8xxx stay on API
The API configures the PMIC to ignore the PS_HOLD low
signal, which can be used during debugging.

Change-Id: I162657934e34da081eb897d64ffed36ad48e4eff
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-11-14 08:19:17 +05:30
Anirudh Ghayal
a4262a3821 mfd: pm8xxx-misc: Add pm8xxx hard reset config API
The API configures PMIC for different behaviour on hard reset.
The different options are to disable hard reset, shutdown or
restart on hard reset.

Change-Id: I214d563e904dd7e73c98a454866718a60a11b6dd
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-11-14 08:19:05 +05:30
Linux Build Service Account
27e8d53719 Merge changes I75853196,I9e677ebd,Id3802e37,Ic3fe2733 into msm-3.0
* changes:
  mfd: pm8xxx-misc: Add pm8xxx watchdog reset control API
  mfd: pm8xxx-misc: Add pm8xxx smpl based API's
  mfd: pm8xxx-misc: Add the pm8xxx coincell chg API
  mfd: pm8xxx-misc: Add a ISR to handle 32 kHz OSC halt
2011-11-13 13:30:25 -08:00
Linux Build Service Account
a2e3e32fd6 Merge "msm-camera: allow non-zero Y offset." into msm-3.0 2011-11-11 21:45:05 -08:00
Linux Build Service Account
72a2b5ddf5 Merge "hwmon: pm8xxx-adc: Merge pm8921-adc and pm8xxx-adc" into msm-3.0 2011-11-11 21:45:05 -08:00
Anirudh Ghayal
a23c1cabcc mfd: pm8xxx-misc: Add pm8xxx watchdog reset control API
The API configures PMIC to either shutdown or reset
when the PS_HOLD line goes low.

Change-Id: I758531966c08ec5acafaeedea13b59019aafa8bc
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-11-12 06:14:34 +05:30
Anirudh Ghayal
bfbaf82d21 mfd: pm8xxx-misc: Add pm8xxx smpl based API's
Add APIs to:
1. Configure PMIC to reset/shutdown on a SMPL event
2. Set SMPL delay time

Change-Id: I9e677ebd5b4339b50e7d18e2ba0eb3af694c2d20
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-11-12 06:14:14 +05:30
Anirudh Ghayal
7b3822911a mfd: pm8xxx-misc: Add the pm8xxx coincell chg API
The API enables/disables the coincell charger. It also configures
the coincell charger's voltage and register settings.

The charger allows the coincell (connected to VCOIN) to charge
from VBAT.

Change-Id: Id3802e37d8100e6a72de9fd263e7d201a7a346d2
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2011-11-12 06:13:39 +05:30
Linux Build Service Account
ab12ea460a Merge changes Iccd3819c,If5856ead into msm-3.0
* changes:
  ASoC: msm8960: add headphone over current protection type
  ASoC: wcd9310: add headphone over current protection feature
2011-11-10 19:31:34 -08:00
Linux Build Service Account
94583edbd4 Merge "ALSA: add headphone over current switches" into msm-3.0 2011-11-10 16:32:29 -08:00
Alex Bird
27ca661bda msm: Add SMI callbacks to ION platform data.
As part of the transition from PMEM to ION, the interface for accessing
SMI memory needs to be accessible from ION as it was from PMEM.

Change-Id: Ia6f9475dc030bbb0dafdcc1b6dbe93c7cdeca268
Signed-off-by: Alex Bird <alexbird@codeaurora.org>
2011-11-10 10:43:24 -08:00
Linux Build Service Account
536e6992a5 Merge "msm: qdsp6v2: ultrasound: Add Ultrasound framework(USF) into msm8960" into msm-3.0 2011-11-10 02:38:12 -08:00
Linux Build Service Account
fd72eef7e2 Merge changes Id8440508,If012dcdb into msm-3.0
* changes:
  msm: rotator: ion support in rotator driver
  msm-fb: display: ion framework support
2011-11-10 01:11:51 -08:00
Linux Build Service Account
89d5d6c47c Merge "hwmon: msm_adc: Calibrate HK/XOADC" into msm-3.0 2011-11-10 01:11:51 -08:00
Linux Build Service Account
1265051f66 Merge "msm: kgsl: Count a percentage of _io time" into msm-3.0 2011-11-10 01:11:51 -08:00
Baruch Eruchimovitch
e9cbfc1780 msm: qdsp6v2: ultrasound: Add Ultrasound framework(USF) into msm8960
The USF driver manages ultrasound data path between QDSP6 and
user space based daemons, calculating input events upon the
ultrasound data.

Change-Id: I087227f0b9a224bc6633be3ccb76be463d90640c
Signed-off-by: Baruch Eruchimovitch <baruche@codeaurora.org>
2011-11-10 10:24:45 +02:00
Siddartha Mohanadoss
ae39c90df6 hwmon: pm8xxx-adc: Merge pm8921-adc and pm8xxx-adc
Merge changes from pm8921-adc to pm8xxx-adc. The
changes are modification to the BTM lookup table
to map voltage vs temperature instead of A/D word
vs temperature and reverse calibration on the
input voltage read for BTM. Fix setting the
mpp_scale value to avoid compile error.

This keeps the pm8xxx-adc and pm8921-adc
functional code as the same except for the name
change allowing future patch to remove the
pm8921-adc driver.

Change-Id: I03a0b809cd232f7fe8dff86248651c9a2593be29
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2011-11-09 22:07:10 -08:00
Nagamalleswararao Ganji
e69bed86ff msm-fb: display: ion framework support
Add support for the ION memory manager
to the framebuffer driver

Change-Id: If012dcdbbc71eb0f7d4d429ad4789b3276d34a58
Signed-off-by: Nagamalleswararao Ganji <nganji@codeaurora.org>
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2011-11-09 15:19:07 -08:00
Lucille Sylvester
596d4c2954 msm: kgsl: Count a percentage of _io time
Count different percentages based upon GPU frequency.

Change-Id: Ia579f6705ff9858263f507bd4f3ba0f84b772554
Signed-off-by: Lucille Sylvester <lsylvest@codeaurora.org>
2011-11-09 14:13:15 -07:00
Mingcheng Zhu
996be18a0a msm-camera: allow non-zero Y offset.
Change-Id: I73238a6cfac0feb146279516f78f4a51c74bc9e9
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-11-09 12:56:23 -08:00
Patrick Lai
49efeaccb1 ASoC: wcd9310: add headphone over current protection feature
wcd9310 CODEC supports notification of excessive current
drawn by headphone power amplifiers. When receiving notification
from CODEC through interrupt, this driver reports this event
through soc jack framework. At this point, power amplifiers will
be locked hence no audio can be heard. Locking would be removed
once user-space application deroutes playback out of headphone path.

Change-Id: If5856ead31c9a6b8d918c09f1fdc517a69d4fa26
Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-11-09 10:19:16 -08:00
Deepa Madiregama
6a3a01ae8e msm: 8660: audio: HDMI: Fix the HDMI DMA stop issue
LPA_IF dma channel is disabled without checking the per count value.
Because of this dma channel is not functional after few iterations
of continuous playback. Fix this issue by checking the dma per count
value to stop before disabling the LPA_IF dma channel.

Change-Id: Ie9e9a9337ca2c4b76cebd99cd3eb98137be85b89
Signed-off-by: Deepa Madiregama <dmadireg@codeaurora.org>
2011-11-09 06:54:40 -07:00
Vijayavardhan Vennapusa
fc464f0f66 usb: msm_otg: Vote for EXT_3P3V regulator for MHL connector
In case of 8960 Liquid, need to vote for EXT_3P3V regulator
to avoid usb connection lost as MHL analog switch is powered
by this regulator.

Change-Id: Ifc36d7916a5407801fdf43357176efa264d160bd
CRs-fixed: 315979
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2011-11-09 04:48:15 -07:00
Linux Build Service Account
4d60b529af Merge "ASoc: msm: Add ASM function q6asm_get_audio_client" into msm-3.0 2011-11-08 19:02:39 -08:00
Linux Build Service Account
1900dc06f3 Merge "msm: camera: use ION for stats and userptr buffers in V4L2 driver." into msm-3.0 2011-11-08 18:03:38 -08:00
Linux Build Service Account
363899275c Merge "msm: audio: qdsp6v2: Add 4GV wb/nb support in mvs driver" into msm-3.0 2011-11-08 18:03:38 -08:00
Vijayakumar Muthuvel Manickam
2d2a2c595a hwmon: msm_adc: Calibrate HK/XOADC
Calibration for HK/XOADC is done once at init by
msm_adc before the first ADC reading is processed.

Calibration performed for every ADC read is expensive
and not recommended. Remove support to request
calibration by ADC clients.

Add stubs for pmic8058 xoadc functions to fix
featurization

Change-Id: I7f0e165bddaa49c5daf33df5ed77428ccc1434c5
Signed-off-by: Vijayakumar Muthuvel Manickam <vmuthuve@codeaurora.org>
2011-11-08 15:52:36 -08:00
Ben Romberger
61754dc690 ASoc: msm: Add ASM function q6asm_get_audio_client
Add function to get the ASM audio client from a session
ID. Allow the ability to get audio client information
used by the ASM interface when only a session ID is
available.

Change-Id: Id9be30954c1a839648194c4a0120cccd341afae4
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-11-07 15:09:25 -08:00
Patrick Lai
ac510b92be ALSA: add headphone over current switches
Some CODECs monitor current drawn by headphone power amplifer.
If current consumed goes over pre-defined threshold, CODEC would
communicate to host processor. Then, CODEC driver would propagate
the event so user-space application can react accordingly.
Add support to propagate over current events for both
left headphone and right headphone through ALSA jack framework.

Change-Id: Ieef36f070a4478a5a80ec4c8b0cc81464abd75ad
Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-11-07 14:33:45 -08:00
Vinay Kalia
27020d1b5d video: msm: Writeback support in mdp for WFD.
Adds writeback mode in mdp for wifi-display(WFD).
This mode can be used to get the captured
frames from mdp. This is added to support
wifi-display capture device.

Change-Id: Iae30cac65af181d8df4b514a128cd876fe7dda1c
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
2011-11-05 17:33:26 -06:00
Linux Build Service Account
9ebffbfbeb Merge "ASoc: msm: Add support for multiple inputs to kcontrol" into msm-3.0 2011-11-04 17:57:03 -07:00
Linux Build Service Account
c0b4d34c50 Merge "msm: audio: qdsp6v2: Add support for other voice and mp3 codec" into msm-3.0 2011-11-04 15:31:50 -07:00
Vijayavardhan Vennapusa
2b592824f9 USB: EHCI: Configure HSIC host<->hub<->Conventional USB devices
SMSC hub must be configured so that Conventional USB
devices can be connected to SMSC hub on 8960 liquid.

Change-Id: I261798de153d3c37f2fa2c4d7e15d96bb81c432f
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2011-11-04 14:09:57 -06:00
Ben Romberger
8f1dc4c732 ASoc: msm: Add support for multiple inputs to kcontrol
Adds the macro SOC_SINGLE_MULTI_EXT which allows the user
to pass the number of integer inputs accepted by the control.

Change-Id: I75009672568d1e0979ecd577031e72bd87f310d2
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-11-04 11:22:18 -07:00
Linux Build Service Account
e0d4643f8e Merge "dt: add empty of_get_property for non-dt" into msm-3.0 2011-11-04 11:04:37 -07:00
Linux Build Service Account
de09bc6240 Merge changes I3d56518b,I60f4e108 into msm-3.0
* changes:
  msm8960: defconfig: Enable CONFIG_MMC_CLKGATE
  mmc: core: Use delayed work in clock gating framework
2011-11-04 11:04:37 -07:00
Linux Build Service Account
c4658f2250 Merge changes Ic0dedbad,Ic0dedbad into msm-3.0
* changes:
  msm: kgsl: Add ION as an external memory source
  msm: kgsl: Fixup per-process memory statistics
2011-11-04 01:11:07 -07:00
Stephen Warren
76ee8d653f dt: add empty of_get_property for non-dt
The patch adds empty function of_get_property for non-dt build, so that
drivers migrating to dt can save some '#ifdef CONFIG_OF'.

This also fixes the current Tegra compile problem in linux-next.

Change-Id: I2b60b6b9172051e847a0b1e4cc38e80ffc147047
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2011-11-04 08:25:05 +05:30
Linux Build Service Account
30dbf3483f Merge "hwmon: pm8921-adc: Add reverse calibration for BTM" into msm-3.0 2011-11-03 15:35:08 -07:00
Linux Build Service Account
6b0d188d0f Merge "ASoC: wcd9310: Update legacy mode, txfe controls based on platform data" into msm-3.0 2011-11-03 15:35:08 -07:00
Linux Build Service Account
703a248eef Merge "Bluetooth: Fix Init sequence when device is restarted" into msm-3.0 2011-11-03 14:24:41 -07:00
Santosh Mardi
2292028c22 ASoC: wcd9310: Update legacy mode, txfe controls based on platform data
Based on tabla platform data update the legacy mode, txfe bypass and
txfe buff mode on tx path.

CRs-Fixed: 308208
Change-Id: I96df7a213578ed8e975030dc8d4b983d03eb6518
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2011-11-03 13:28:59 -06:00
Brian Gix
6e4531c6fb Bluetooth: Fix Init sequence when device is restarted
On some platforms, device state data can be left around, and some
commands may take longer than 1 second to execute. This change increases
the per command time-out, and reinitializes the features mask.

Change-Id: Ib707996b97139c97e9a0deacd4a11019cf75da8c
Signed-off-by: Brian Gix <bgix@codeaurora.org>
2011-11-03 11:17:15 -07:00
Azam Sadiq Pasha Kapatrala Syed
5156dd4235 msm: camera: Add update cmd support for Demosaic.
Add support for update command for demosaic module.

Change-Id: I06cc7c4e41cbc8c8486277151edc577097661cab
Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2011-11-03 11:12:30 -06:00
Linux Build Service Account
2424ef57c4 Merge "Bluetooth: Add API to set LE Connection Parameters" into msm-3.0 2011-11-03 10:08:52 -07:00
Linux Build Service Account
dc64092dc8 Merge "radio: iris: Implemen low power IOCTL's" into msm-3.0 2011-11-03 00:21:06 -07:00
Linux Build Service Account
9ab9097e32 Merge "msm: camera: Add support for YV12 image format." into msm-3.0 2011-11-03 00:21:06 -07:00
Linux Build Service Account
c478970dc7 Merge "power: pm8921-charger: use trickle time for trickle charging" into msm-3.0 2011-11-03 00:21:06 -07:00
Sujit Reddy Thumma
0d0bc29d8c mmc: core: Use delayed work in clock gating framework
Current clock gating framework disables the MCI clock as soon as the
request is completed and enables it when a request arrives. This aggressive
clock gating framework when enabled cause following issues:

When there are back-to-back requests from the Queue layer, we unnecessarily
end up disabling and enabling the clocks between these requests since 8MCLK
clock cycles is a very short duration compared to the time delay between
back to back requests reaching the MMC layer. This overhead can effect the
overall performance depending on how long the clock enable and disable
calls take which is platform dependent. For example on some platforms we
can have clock control not on the local processor, but on a different
subsystem and the time taken to perform the clock enable/disable can add
significant overhead.

Also if the host controller driver decides to disable the host clock too
when mmc_set_ios function is called with ios.clock=0, it adds additional
delay and it is highly possible that the next request had already arrived
and unnecessarily blocked in enabling the clocks. This is seen frequently
when the processor is executing at high speeds and in multi-core platforms
thus reduces the overall throughput compared to if clock gating is
disabled.

Fix this by delaying turning off the clocks by posting request on
delayed workqueue. Also cancel the unscheduled pending work, if any,
when there is access to card.

sysfs entries are provided to tune the delay as needed with default
value set to 200ms.

Change-Id: I60f4e1087c4f22bfe7817153c54a0c72ae22b6b6
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
2011-11-03 11:27:49 +05:30