ASoC: WCD9304: Fix pop level during start of recording

When recording is started, it is observed that the pop level is
much higher than expected. Fix this issue by enabling the High
Pass Filter on microphone path with a cut off frequency of 150Hz
when recording starts and reprogram the cut off frequency back
after a timeout of 300 millisecond.

CRs-fixed: 380966
Change-Id: Ife79ce45c7f2d8c80224fb11aab60d9e4e551357
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
msm: kgsl: Set aggressive HW clock gating for A330v2

Set the recommended settings to enable HW clock gating for the A330v2
GPU.

Change-Id: Ic0dedbad43e581d1ab996a86159d0aa2671401b3
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
block: row: Prevent starvation of regular priority by high priority

At the moment all REGULAR and LOW priority requests are starved as long as
there are HIGH priority requests to dispatch.
This patch prevents the above starvation by setting a starvation limit the
REGULAR\LOW priority requests can tolerate.

Change-Id: Ibe24207982c2c55d75c0b0230f67e013d1106017
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
block: row: Update sysfs functions

All ROW (time related) configurable parameters are stored in ms so there
is no need to convert from/to ms when reading/updating them via sysfs.

Change-Id: Ib6a1de54140b5d25696743da944c076dd6fc02ae
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
msm: pil: Don't free dynamic allocations

We don't want to free the dynamic allocations for an image's
relocatable area because we can't guarantee there won't be
internal fragmentation. Reuse the region if it has already been
allocated and be sure to not free it when reinitializing the
memory map for an image.

Change-Id: Ibb7402a1a418d455572bfa6111336b3cfa312640
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
arm/dt: msm8610: Add PM8110 RTC device

Add device tree information for RTC device found on PM8110
PMIC chip. The device tree entry corresponds to the bindings
already defined for qpnp-rtc.

Change-Id: I046601a29ffbd4d8fcbb23bff763d5317a6e1fa5
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
wcnss: add 5-wire interface for msm8610

Configure and install GPIOs used for 5-wire interface. This
interface is used by wcnss to communicate with external RF chip.

Change-Id: I183a7e30d22e721a2f291723182ad0a72e797f26
Acked-by: Rajesh Chauhan <rajeshc@qca.qualcomm.com>
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
arm/dt: msm8610: Add iris_fm device in msm8610 device tree.

Add iris_fm device in msm8610 device tree to enable FM driver.

Change-Id: I40463e25920c75bab7e3b482fe2c61c30545bc8a
Acked-by: Rajesh Chauhan <rajeshc@qca.qualcomm.com>
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
msm: audio: qdsp6v2: Don't reset mmap ref_cnt in RESET_EVENT

Only session open/close should increment/decrement mmap ref_cnt.
On receiving RESET_EVENT, mmap ref_cnt should not be reset to zero.
There could be open sessions when RESET_EVENT is received. The mmap
ref_cnt for open sessions will be decremented when user space issues
close for corresponding open sessions.

Change-Id: I3bfc7cebf11b8d363d11af2a938625d926a21788
Signed-off-by: Ravishankar Sarawadi <crsaraw@codeaurora.org>
msm: wfd: For secure WFD add support to use video39

The commit changes the interface by which userspace clients can use
secure WFD.  Previously, /dev/video38 was opened and client set
V4L2_CID_MPEG_VIDC_VIDEO_SECURE.  Now, the wfd driver also makes use of
the already existing /dev/video39 which is always in secure mode.  This
interface aligns the driver more closely with the interface on A-family
chipsets.

Change-Id: Iab6f4f77b4ee73eada9ec7542e4e456e6d502248
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
msm: clock: Add helper functions to use when changing clock parent

Any clock op (such as set_rate and set_parent) that changes the parent of a
clock needs to transfer the prepare and enable requirements of the clock
from the old parent to the new parent. Provide a generic pair of APIs,
__clk_pre_reparent() and __clk_post_reparent(), that take care of this.

The pair of APIs require the prepare lock to be held the entire duration
between and including the calls to the two APIs. Since __clk_pre_reparent
grabs a spin lock and __clk_post_reparent releases the spin lock, only
atomic operations can be performed between calls to the two APIs.

Change-Id: I1dc3905655652b2c58841f0b4e65ea6d2ab5020e
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
msm: clock: Refactor clk_set_rate()

The refactor makes the code more readable and maintainable. Also, it avoids
sending out a clk_set_rate() trace point when rate change does not occur
due to an invalid argument.

Change-Id: I848301a2fc5ddc4080e75daaaf53163db2588736
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
msm: kgsl: Add support for VBIF and VBIF_PWR performance counters

These 2 counter groups are also "special cases" that require
different programming sequences.

Change-Id: I73e3e76b340e6c5867c0909b3e0edc78aa62b9ee
Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
arm/dt: msm8974: Set PMIC GPIOs to recommended settings for MTP

Set PMIC GPIOs to recommended default settings to minimize
idle power consumption.

Change-Id: Ic750c717b7191628f10dbeed87b9197bb66221a9
Signed-off-by: Pawan Kumar Nimmagadda <pawan@codeaurora.org>
msm: mdss: clear function pointers after releasing control path

Once control path is freed, the function pointers associated as part of
the control interface should be cleared to avoid them being called when
the control path is assigned to a different interface.

Change-Id: I635a00657341c06f3c52a4b264bd87b8bb20d783
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
arm/dt: msm8226: Correct analog mic settings for ANC left and right

ANC left mic uses AMIC5 and ANC right mic uses AMIC4 on 8226 cdp
platform.

Change-Id: I48302c9e95be6af51cda555deac0ad883c4b7ed0
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
arm/dt: vidc: Specify max load supported by hardware core

List the max load supported by Q6 firmware on msm8974.
Without this change, Q6 driver probe will fail on msm8974.

Change-Id: Iaf1a49a6d81fdfdd5952ce86ce0261270ec0f0e1
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
ASoC: wcd9xxx: Add ANC headset and handset support for Tapan codec

Add ANC widgets to tapan codec driver to support ANC feature.

Change-Id: I83bd2324275934f39a1723825604011802d4c703
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
arm/dt: msm_bus: Update the active-only property to Boolean type

Active-only flag is a boolean property that was wrongly set for
being used as an integer. Correct this and update the client code
and documentation.

Change-Id: Ief360581f7d9374b09e7a0ee5628cea352800ab8
Signed-off-by: Gagan Mac <gmac@codeaurora.org>
msm: clock-8610: Add WCNSS clocks

Add the lookup entries for XO and XO buffers needed by the
WCNSS driver.

Change-Id: I87da0b2902b9a4b8605d15d89c9adca2ec043002
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>