Commit Graph

256049 Commits

Author SHA1 Message Date
Kiran Kumar H N
0fb9dcfbc6 msm-camera: configure preview and recording buffers
seperately.

decouple preview and recording path configuration
by configuring the buffers during preview start
and recording start respectively.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>
2011-10-03 10:26:29 -07:00
Mingcheng Zhu
9812bd34ec msm camera: migrate to videobuf2 framework
add necessary changes in camera driver to
migrate to videobuf2 framework.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Signed-off-by: Mingcheng Zhu <mingchen@codeaurora.org>

Conflicts:

	drivers/media/video/Makefile
2011-10-03 10:26:28 -07:00
Subhash Jadavani
7323b78c60 msm: 8x60: remove always ON vote for eMMC VCC rail
eMMC card can be put in sleep by sending CMD5 during suspend
so we can turn off the eMMC VCC rail to save power.

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2011-10-03 10:26:28 -07:00
Subhash Jadavani
f614c7221e msm: 8960: remove always ON vote for eMMC VCC rail
eMMC card can be put in sleep by sending CMD5 during suspend
so we can turn off the eMMC VCC rail to save power.

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2011-10-03 10:26:27 -07:00
Balaji T K
8df15da661 mmc: core: put eMMC in sleep (cmd5) mode before suspend
Put MMC to sleep if it supports SLEEP/AWAKE (CMD5) in the mmc suspend
to minimize power consumption.

Signed-off-by: Balaji T K <balajitk@ti.com>
Acked-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2011-10-03 10:26:27 -07:00
Mona Hossain
09fd3ad1c6 hw_random: msm: Remove PRNG hardware configuration
LSFR and CONFIG registers are configured by secure domain
code and XPU protected.

CRs-Fixed: 284133
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 10:26:26 -07:00
Mona Hossain
650c22c765 crypto: Fix race conditons and synchronization issues
- Fix locking mechanism: Add ref count for locking and
  protect ce lock reference count
- Fix race conditions with processing sha request.

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2011-10-03 10:26:25 -07:00
Rajesha Kini
f925817226 msm: audio: voicepcm: Added snd pcm client driver
Added support for snd pcm client driver. Which
provides interface to write pcm samples to voice path.

Signed-off-by: Rajesha Kini <rkini@codeaurora.org>
2011-10-03 10:26:25 -07:00
Sahitya Tummala
7661a450d9 mmc: msm_sdcc: Add debug prints to runtime suspend/resume
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2011-10-03 10:26:24 -07:00
Kiran Kumar H N
5a19c68d63 Revert "msm: camera: YV12 video support"
This reverts commit 66882a5046143601429632a0b589d9ffeeb3c668.
This change will be submitted later.

Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-03 10:26:23 -07:00
Jeffrey Chuang
373d1d02ff Revert "Revert "msm: 8960: Enable bus scaling on 8960"."
This reverts commit 133580fadbade969050b2a8dd9f7e9451397bfa7.

Signed-off-by: Jeffrey Chuang <fchuang@codeaurora.org>

Conflicts:

	arch/arm/configs/msm8960_defconfig
2011-10-03 10:26:22 -07:00
Gagan Mac
c7c0db6840 msm: msm_bus: Interleaving related corrections
Fix the division of bandwidth between slaves with multiple ports.
Since, interleaving changes involve exposing multiple ports for
a given master, config functions need to be changed for
halting/unhalting the right ports.

Signed-off-by: Gagan Mac <gmac@codeaurora.org>
2011-10-03 10:26:22 -07:00
Eugene Seah
d9040ad205 msm: rpm: Update System Fabric ARB RPM-id mapping on 8960
System Fabric ARB RPM resource was changed from 27 to 29 4-byte words,
update the RPM-id mapping to reflect this.

Signed-off-by: Eugene Seah <eseah@codeaurora.org>
2011-10-03 10:26:21 -07:00
Larry Bassel
b4126da5e8 msm: automatically size unstable memory on 8960
On 8960, all memory banks except the lowest one
(where the kernel lives) are unstable (i.e. may
be powered off under DMM).

This patch temporarily hard codes the bank
size to 512M, a later patch will allow us to
obtain this from shared memory.

Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
2011-10-03 10:26:21 -07:00
Gregory Bean
f1fdaffaa7 checkpatch: remove 'static const char * const' check
While this check is valid in theory, it generates a plethora
of false positives on ALSA drivers and ends up causing more trouble
than it saves.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
2011-10-03 10:26:20 -07:00
Laura Abbott
675b31fc19 msm: Allow iova address alignment specification
Some clients have specific alignment requirements for
iova addresses. Allow those requirements to be specified
via the upper bits of the flag field. Since all iommu
alignment must be at least 4k, the lower bits can specify
other options while the upper bits specify the alignment.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 10:26:19 -07:00
Hemant Kumar
d3fb9bb50c usb: gsmd: Add platform driver corresponding to smd channel
USB shared memory DUN(dial up networking) driver re-tries multiple times
to open smd channel, due to delay in smd driver initialization and modem
load during boot up. Instead, register a platform driver with smd channel
name. Whenever specific SMD channel is opened by modem, a corresponding
platform device would be added resulting in probe of platform driver being
called. In the probe function, DUN driver opens up SMD channel

Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2011-10-03 10:26:19 -07:00
Helen Zeng
29eb744d8d ASoC: msm: qdsp6: Add out of band calibration in voice driver
Add codes to send physical address and memory size to
q6 on out of band calibration.

Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 10:26:18 -07:00
Vamsi Krishna
c6299dea34 msm: sdio_dmux: Clear pending write queue after reset notification
Fix issue where clients can get notifications of failed
writes before they are notified that a reset has occurred.

Signed-off-by: Vamsi Krishna <vskrishn@codeaurora.org>
2011-10-03 10:26:17 -07:00
Matt Wagantall
ee1840950a msm: clock-8960: Remove unnecessary halt_check initialization
The halt_check field defaults to HALT. Remove explicit
initialization to this default value.

Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
2011-10-03 10:26:17 -07:00
Karthikeyan Ramasubramanian
ff6fbae218 msm: ipc: Add support for subsystem restart in MSM_IPC Router
When a remote processor restarts, the transport corresponding to that
node notifies the MSM_IPC Router of that event. MSM_IPC Router cleans
up the data structures corresponding to that transport and notifies
the local clients/servers of removal of all the concerned remote
servers/clients respectively. When the remote node comes up and
broadcasts the server information, local clients will be notified of
the arrival of the server so that they can continue communication with
the server.

Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2011-10-03 10:26:16 -07:00
Azam Sadiq Pasha Kapatrala Syed
7ff0cf4999 msm: camera: YV12 video support
Support for color format YV12.

Signed-off-by: Azam Sadiq Pasha Kapatrala Syed <akapatra@codeaurora.org>
2011-10-03 10:26:16 -07:00
Laura Abbott
d42d120608 msm: charm: Don't complete charm_boot on power up
The first time the target boots up, complete(charm_boot) is
called. Subsystem restart assumes that complete(charm_boot)
has never been called before the first time. This can result
in the charm code getting into a bad state. Fix this by not
calling complete on bootup.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 10:26:15 -07:00
Trilok Soni
a416c4953a msm: board-msm7x27a: Move misc initialization to init_machine
Move msm7x2x_misc_init() to init_machine stage because
acpuclock initialization should not happen before timer
driver initializing the lpj.

CRs-Fixed: 295455
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2011-10-03 10:26:14 -07:00
Helen Zeng
bc9034da68 ASoc: msm: Add mixer command to set tty mode
Add mixer command for setting tty mode in voice platform
driver.

Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 10:26:14 -07:00
Helen Zeng
cc65b5bf5a ASoc: msm: qdsp6: Add APIs for setting and getting tty mode
Add setting and getting tty mode APIs in voice native driver.

Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 10:26:13 -07:00
Marek Szyprowski
4eb0293d54 [media] v4l2: vb2: one more fix for REQBUFS()
Return immediately if the target number of buffers is the same as
the current one and memory access type doesn't change.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
2011-10-03 10:26:12 -07:00
Patrick Lai
9f4b429eb3 ASoC: msm: Change channel mode mixer control to enumeration
Change existing mixer control to enumeration type so range
is fixed and input value is more readable.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-10-03 10:26:12 -07:00
Jay Wang
4fa2ee4cb9 ASoC: qdsp6: Sets the proper sampling rate for Fluence topology
The sampling rate of Fluence topology is either 16K or 8K. Therefore,
we need to reduce the ADM sampling rate to 16K during recording with
Fluence topology

Signed-off-by: Jay Wang <jaywang@codeaurora.org>
2011-10-03 10:26:11 -07:00
Ben Romberger
c49b85db0b msm: audio: qdsp6v2: Support for RX & TX ADM topology
This adds support to store separate RX & TX topology for
the audio device manager (ADM).

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 10:26:11 -07:00
Mansoor Aftab
6d6ff5e495 msm: camera: Correct mount angle, sensor type values
Correct the sensor type value for the IMX074 sensor.
Set the mount angle value for this sensor on 8960,
also made sure that the values obtained for angle,type
from probing are recorded in the structure which used
to retrieve this information during device query.

CRs-fixed: 296576
Signed-off-by: Mansoor Aftab <maftab@codeaurora.org>
2011-10-03 10:26:10 -07:00
Manoj Rao
f74d2edd79 msm: display: HDMI: ISR not triggered when HPD occurs during power_off
During power off we disable 5v, power down core, by turning off the
TX channels one by one. When a HPD is triggered the driver has a
software debouncing timer during which interrupts are disabled to
be able to read stable HPD status from the register. When HPD is
detected while the core is being turned off/powered down the driver's
software disables the interrupt and this was making the core to go
into off state. So the fix was to keep the interrupt bit enabled through
the register even during the debounce timeout (this doesn't trigger
unnecessary interrupts due to appropriate clearing and masking of HPD
interrupt bits).

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
2011-10-03 10:26:09 -07:00
Larry Bassel
61fe47257a msm: arch_add_memory should only perform logical memory hotplug
The function arch_add_memory() should only perform logical
memory hotplug, but it was also improperly performing
physical memory hotplug. Even worse, it was adding pages
to the free list before the memory bank they were in
was powered on.

Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
2011-10-03 10:26:09 -07:00
Ben Romberger
b4f562ae36 msm: audio: qdsp6v2: Support for out-of-band calibration
To support sending of calibration in physical shared memory
the number of voice volume steps is only sent in the first
voice volume calibration block. This means that all products
that do not support out-of-band calibration have to pull
the number of voice volume steps from the first buffer and
place it into the rest of the buffers.

Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2011-10-03 10:26:08 -07:00
Santosh Mardi
d828aeac5f msm: audio: qdsp5v2: Handle the VOICE_START event
Handle VOICE START event when voice state is in voice change
Consider the following case
B calls A (A accept the call), voice state in voice acquire
C calls A (A accept and B in hold) in this scenario following series
Of events issue to voice driver
VOICE_END (this event issues a device change command to modem, in turn
Modem changes the voice state from voice acquire to voice change)

VOICE_START (this event is not changing the voice state from voice change
To voice acquire as a result mismatch in the voice state maintained by
Voice proxy driver)

This patch change the voice state from voice change to voice acquire
When VOICE_START event received and voice state is in voice change

CRs-Fixed: 295375
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2011-10-03 10:26:07 -07:00
Stephen Boyd
86ea12c180 msm: clock-local: Remove rcg_clk_set_max_rate()
If this function doesn't exist the generic clock layer returns
-ENOSYS which should be sufficient enough to signal that it isn't
supported.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2011-10-03 10:26:07 -07:00
Bradley Rubin
229c6a5dc0 ASoC: WCD9310: Add Active Noise Cancellation support
ANC is a feature which reduces noise on the near-end
by pushing anti-noise onto the audio stream heard
by the user.  ANC mixes the anti-noise signal
inside of the WCD9310 codec.

Signed-off-by: Brad Rubin <brubin@codeaurora.org>
2011-10-03 10:26:06 -07:00
Kiran Kandi
a21d6bc64b ASoc: msm8960: Enable Physical DMIC1(on Fluid and MTP) and DMIC4(on Fluid).
Physical Digital MIC 1 on Fluid and MTP is there on Front Bottom Left.
It is connected D_DMIC1_2_data pin on Tabla and drives data on right
channel which is treated as DMIC2 input. Physical Digital MIC 4 on
Fluid is there on Back top. It is connected D_DMIC3_4_data pin on
Tabla and drives data on left channel which is treated as DMIC3 input.

Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2011-10-03 10:26:05 -07:00
Rahul Kashyap
e8698c6756 board: msm7x27a: BT GPIO is not toggled when I/O Expander fails.
Bahama's SYS RESET GPIO is put in LOW state in bahama shutdown,
 only when the GPIO is available from the I/O expander.

Signed-off-by: Rahul Kashyap <rkashyap@codeaurora.org>
2011-10-03 10:26:05 -07:00
Karthikeyan Ramasubramanian
4b85a2f2f2 msm: rpc: Reset modem_reset flag in SDIO xprt's probe function
Always reset the modem_reset flag in rpcrouter_sdio_remote_probe function.
Else repeating failed modem restart attempts, cause the probe to free the
already freed resources and hence cause a crash.

CRs-Fixed: 295677
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2011-10-03 10:26:04 -07:00
Ravishangar Kalyanam
49a83b2caa msm_fb: display: Fix 8960 HDMI resolution switch issue
Fix 8960 HDMI resolution switch issue by removing core
reset via clock branches. This helps in retaining the
HDMI PLL register values for subsequent cable
disconnect/connect scenarios.

CRs-Fixed: 296879
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
2011-10-03 10:26:04 -07:00
Patrick Lai
2c79e3d914 ASoC: msm: change playback closing sequence
Currently, ASM buffers are freed before closing
ASM stream in the closing function. ASM in QDSP6
can still be actively accessing buffers. Existing
sequence can result in QDSP6 crash. Adjust
the closing sequence.

Signed-off-by: Patrick Lai <plai@codeaurora.org>
2011-10-03 10:26:03 -07:00
Willie Ruan
0d9acd9735 misc: pm8058-pwm: add pr_fmt to simplify debug messages
Adding pr_fmt with __func__ to simplify the debug messages which
need to print out __func__.

Signed-off-by: Willie Ruan <wruan@codeaurora.org>
2011-10-03 10:26:02 -07:00
Laura Abbott
a267ea929e msm: charm: Wait to start monitoring GPIOS
Wait until the external modem has completely booted up
before monitoring the GPIO lines. Otherwise, there could
be noise on the lines which cause erroneous interrupts.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
2011-10-03 10:26:02 -07:00
Taniya Das
d06ac74275 power: msm_battery: Disable DEBUG option to reduce log messages.
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2011-10-03 10:26:01 -07:00
Kiran Kandi
cf45f6adec ASoC: WCD9310: Enable DMIC2 and DMIC3 inputs
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2011-10-03 10:26:00 -07:00
Bhalchandra Gajare
cc6ffa0665 ASoC: WCD9310: Enable Analog Input 3 and 4
Adds logic to enable analog input 3 and analog
input 4. These inputs use external microphone
bias 3 and 4 respectively on the CDP only.
Adds all possible routes in the codec for each
of the inputs.

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2011-10-03 10:26:00 -07:00
Bhalchandra Gajare
0d77e1b6f1 ASoC: WCD9310: Enable Analog Inputs 5 and 6
Adds logic to enable the analog Input 5 and 6.
These inputs do not need a microphone bias to
be enabled.

Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2011-10-03 10:25:59 -07:00
Helen Zeng
69b0096584 Asoc: msm: qdsp6: Update MVM commands
Update MVM commands from depreciated APIs to the new APIs.

Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
2011-10-03 10:25:59 -07:00
Eric Holmberg
3ff8daeeee msm: sdio_dmux: do subsystem restart client notification earlier
Perform the receive_cb(NULL) notification before cleaning
up any pending write skb's.  This allows clients to update
their cached reset status based upon the
receive_cb(NULL) in case they need to do special
handling of the cancelled write skb's.

Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
2011-10-03 10:25:58 -07:00