Commit graph

586247 commits

Author SHA1 Message Date
Laxminath Kasam
9c53a155cc ASoC: wsa881x: Add mixer control to set WSA PA mute
Add mixer control to allow set WSA speaker PGA mute
when required for any usecase.

Change-Id: Ic02a5973ec25b4c5b613b42129fdab9c0d7a2133
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:52:09 -07:00
Laxminath Kasam
145923d535 ASoC: sdm660_cdc: Fix 44.1 clip mute first time after boot
After boot, insert headphone and play 44.1 clip fails to play
first time sometimes. Since at bootup MCLK is acquired at
9.6MHz and not reset. And for 44.1MHz, request for 11.2896MHz
is done causes overwrite of frequency request at DSP which is not
allowed and causes playback to fail. At bootup regacache call for
digital codec result in additional vote for MCLK if int_mclk0_enabled
flag is false. Change the order in device_down call from analog codec
and also avoid notifier call for SUBSYS_DOWN at bootup.

Change-Id: Ifc0540826d38c5adf8b068ea87d5a5f71a4ac674
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:51:47 -07:00
Laxminath Kasam
bd01dc59f2 ASoC: swr-wcd: Reduce latency for cold start on speaker
In SDM660 WSA speaker using MSM over soundwire version,
observe high cold start latency. As interrupt is disabled,
broadcast ack is not received which results in 200ms higher
latency. Reduce latency impact by blocking only for 10ms
for MSM over soundwire version.

Change-Id: Ic0e659d7c443c1462aba4da2f8bf9471031d02d2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:51:02 -07:00
Laxminath Kasam
78bbe3cbe5 ASoC: sdm660_cdc: fix HPH CnP on sdm660 internal codec
Enable digital clock bits before digital codec reset.
Also update HD2 settings as per latest HW sequences.

CRs-Fixed: 2018603
Change-Id: I270a324ffebc8b84ef23ff6b209efcde724f9b37
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:42:11 -07:00
AnilKumar Chimata
223fd81f3a hwrng: Add quality parameter to msm-rng driver
With the recent changes in upstream, certain parameters
are updated in the core random number generator driver.
So update HW rng driver to provide the quality estimation
of true entropy in RNG's bitstream. Value 700 corresponds
to 70% an arbitrary value, which is taken from 3.10.

Change-Id: I0d27e44a05473bcbc84af82c79565f87329b9ae7
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2017-03-22 13:12:05 +05:30
Laxminath Kasam
9fab026308 ASoC: msm_sdw: Fix random mute on speaker when device switch
Observe random mute on speaker during device switch on
secondary images. Avoid reading previous register
read when SWR slave read and overwrite of previous register
when SWR slave write, by adjusting delays in respective APIs.

Change-Id: I302968ad8e774598c8414e05ba669f90bf39b82c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:37:24 -07:00
Laxminath Kasam
9c6cccf6b8 ASoC: msm_sdw: Fix compander register setting for speaker
Observe compander for one speaker is not working.
Update offset in config compander API to set compander registers
as expected.

CRs-Fixed: 2019754
Change-Id: Ib75e01016e6a9fd39a953da40f36babc3beaec13
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:33:37 -07:00
Laxminath Kasam
f4a76fca6b ASoC: wcd-mbhc: Fix list del entry issue on mbhc variable
Without re-init timeout completion of btn_press object
waiting in correct_plug_swch work, if mbhc_deinit and mbhc_start
happens again, it results in crash. In mbhc_deinit,
cancel correct_plug_swch work to handle this.

CRs-Fixed: 2018976
Change-Id: Ic26edea18f5a8554f4dff3bf6ad49ec039493a64
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:33:07 -07:00
Meng Wang
eeba4974b8 pinctrl: qcom: correct register offset for lpi_gpio_16/17 on sdm660
Register offset for LPI_GPIO_16/17 should be 0x5040/0x5050.
Correct the offset to make sure LPI_GPIO_16/17 work.

CRs-Fixed: 2019608
Change-Id: Iac0bc2b434b23094c297e69eabea4d72bfd1eb8b
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-03-22 00:30:23 -07:00
Meng Wang
3f99ccf50d ASoC: audio-ext-clk: correct pinctrl info for lpass mclk
Pinctrl info is set to ap mclk for all the client. Remove
the wrong assignment.

Change-Id: I95fb16367157fa0cb47a1a25290eadb4472abb51
CRs-Fixed: 2015665
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-03-22 00:29:43 -07:00
Meng Wang
d5e2207b82 ARM: dts:msm: correct clk setting for native playback on SDM660
LPI GPIO 18 is used as a clock for native playback for wcd9335
on SDM660. Correct it as lpass mclk, not ap clk.

CRs-Fixed: 2015665
Change-Id: I1fa5f2dc314a73d139aacbb9689e9a161b9a54ef
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-03-22 00:29:23 -07:00
Bhalchandra Gajare
554b0acd0a ASoC: wcd-spi: pre-allocate buffers used for transfers
Currently, the buffers used for transfers are allocated each time
the transfer is requested. This causes memory allocation failure
for higher order allocations possibly due to fragmentation or no
higher order blocks being available. Fix this by allocating the
buffers during the component bind and re-use the buffers across
transfers.

CRs-fixed: 2014478
Change-Id: I48212678e39d089fbb903d195faf45436f358f4b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-03-22 00:29:01 -07:00
Laxminath Kasam
1650f182b6 ASoC: sdm660_cdc: Fix no headset remove event after SSR
Restart mechanical detection as part of SSR device_up
functionality to receive headset events after SSR.

CRs-Fixed: 2015351
Change-Id: I359c701b8c7c086c087ab5fa7714b6bd3f7c4708
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-22 00:25:34 -07:00
Meng Wang
0ba15ea7a7 ASoc: msm: remove capture property for SLIMBUS_6 Hostless playback
Backend SLIMBUS_6 Hostless Playback only supports playback, not capture.
Remove capture property to avoid invalid access.

Change-Id: I7cc426a4badb50fbd7e83454fa89e3a0f2a89c23
CRs-Fixed: 2014489
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-03-22 00:23:51 -07:00
Devesh Jhunjhunwala
96e7d2f66e clk: msm: gcc-8996: Add pinctrl clk for ln_bb_clk
Add the pinctrl clock for ln_bb_clk to the GCC driver
for MSM8996.

CRs-Fixed: 1063062
Change-Id: If85a0dbb26e350588cbd6614c032bf208a205be2
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2017-03-22 00:23:24 -07:00
Deepak Katragadda
ab0349c601 clk: msm: clock-gcc-8996: Add additional frequencies for QSPI clock
Add support for additional frequencies for the qspi_ser_clk_src
on msm8996.

Change-Id: I4efa0ad4dc3f68a0c54bd4cf7ee77b4c78be4be1
CRs-Fixed: 994014
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2017-03-22 00:17:10 -07:00
Rakesh Pillai
fa3bbdac23 ath10k: change log level for unknown wmi event print to debug
Unknown WMI events are being printed with log level warning.
Change the log level for the unknown wmi event print to debug.

CRs-Fixed: 2019156
Change-Id: Ice39487c698462d6c845dab2ede93f5c856364c0
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2017-03-21 22:46:56 -07:00
Linux Build Service Account
630218f710 Merge "diag: Add mutex protection while closing diag channels" 2017-03-21 21:30:35 -07:00
Linux Build Service Account
e084f910fc Merge "firmware: qcom: tz_log: update datatype for int_count" 2017-03-21 21:30:33 -07:00
Linux Build Service Account
afc27e8460 Merge "drivers: soc: qcom: Remove prints from the idle path" 2017-03-21 21:30:32 -07:00
Linux Build Service Account
db71be31d5 Merge "soc: qcom: Do not clear segments if pil boot failed in memory allocation" 2017-03-21 21:30:30 -07:00
Linux Build Service Account
6887b6aad3 Merge "qseecom: check img_len and mdt_len against ion buf len" 2017-03-21 21:30:29 -07:00
Linux Build Service Account
63739565ad Merge "ARM: dts: msm: Change ipa polling parameter in SDM660/630" 2017-03-21 21:30:28 -07:00
Linux Build Service Account
c65465727b Merge "pmic-voter: move to common header location" 2017-03-21 21:30:26 -07:00
Linux Build Service Account
0529101684 Merge "soc: qcom: spcom: spcom_device_read() check filp->private_data" 2017-03-21 21:30:24 -07:00
Linux Build Service Account
0fb8a4413c Merge "usb: pd: Determine dual_role writeable based on PD capability" 2017-03-21 21:30:23 -07:00
Linux Build Service Account
13ad7308cb Merge "msm: mdss: Add lock to avoid release of active session in rotator" 2017-03-21 21:30:22 -07:00
Linux Build Service Account
6d794adaa2 Merge "ARM: dts: msm: Add DDR52 bus speed mode for SDM660" 2017-03-21 21:30:21 -07:00
Linux Build Service Account
fd3a1144c5 Merge "ARM: dts: msm: Enable midframe sampling timer on SDM630" 2017-03-21 21:30:20 -07:00
Linux Build Service Account
79e992c149 Merge "ASoC: msm: add CPE widgets to ignore suspend list" 2017-03-21 21:30:11 -07:00
Linux Build Service Account
2d2b57cdd0 Merge "ASoC: msm8998: add mixer controls for MI2S bit format" 2017-03-21 21:30:10 -07:00
Linux Build Service Account
aba133a2c4 Merge "wil6210: add sysfs for thermal throttling configuration" 2017-03-21 21:30:09 -07:00
Linux Build Service Account
dbc5507289 Merge "wil6210: align to latest auto generated wmi.h" 2017-03-21 21:30:08 -07:00
Linux Build Service Account
c3bae3e0a6 Merge "security: pfe: Adapt ICE engine setup call for eMMC" 2017-03-21 21:30:07 -07:00
Linux Build Service Account
9bcb914dd2 Merge "clk: msm: clock-cpu-8996: Allow interrupts during alt_pll set_rate" 2017-03-21 21:30:06 -07:00
Linux Build Service Account
719effa8a2 Merge "regulator: cpr3-hmss: Increase fuse combo count" 2017-03-21 21:30:03 -07:00
Linux Build Service Account
321fb5e48e Merge "regulator: cpr3-mmss: Increase fuse combo count" 2017-03-21 21:30:03 -07:00
Liangliang Lu
41dcf70d69 usb: phy: qmp: Add support for fpc re-drive chipset
In the cases that have FPC cable between main board and sub-board, USB
connector located on sub-board, add re-drive chipset on sub-board to
make sure the signal of rx/tx for super-speed is good enough.

Change-Id: I4a778b0eb6ba43a35a88425f2279041ba038da95
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-03-22 09:14:07 +08:00
Abhijeet Dharmapurikar
ecbdcaa216 iio: adc: tadc: fix leakage problem
There is a leakage path in the TADC block while the device is shutdown
or is in deep sleep mode. To fix this hw problem, the driver needs to
disable hw conversions and enable direct test mode while charger is
plugged out, kernel goes to suspend or device shuts down. The driver
needs to undo those changes when charger is plugged in, kernel resumes
or device powers up.

Moreover while disabling hw conversions it is advisable to wait until
the current conversion is complete.

To realize this
* create a tadc_disable_votable, where the three usecases viz. charger
  presence, suspend/resume and shutdown will vote. Enabling it will
  disable hw conversions and enable direct test mode and vice versa for
  disabling case.
* update complete to complete all since the disable path may be waiting
  for conversion to complete.
* create a power supply notifier hook to get the usb presence/absence
  notifications.
* add suspend,resume and shutdown driver callbacks that vote for
  enabling/disabling tadc.
* prevent more requests coming in when the tadc is disabled.
* skip printing an error reading a channel for requests coming after
  tadc is disabled. Return -ENODATA error for these situations.
* since we are introducing a secure write well beyond 0x3652, update the
  code to treat everything beyond 0x3652 as locked.

CRs-Fixed: 2021456
Change-Id: Ifa92764d11f0b717558f3b7169313f5bcb1f507e
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-03-21 17:22:16 -07:00
Linux Build Service Account
c1ef16be6d Merge "profiler: Add a communication interface between userspace and tz services" 2017-03-21 13:29:06 -07:00
Linux Build Service Account
0cbb4359bb Merge "msm_11ad: enable PCIe L1/L1SS during 11AD device reset" 2017-03-21 13:29:04 -07:00
Linux Build Service Account
5a54ca071c Merge "drivers: GICv3: Check IRQ state in gic_set_affinity()" 2017-03-21 13:29:03 -07:00
Linux Build Service Account
09ddd6a693 Merge "NFC: Disable i2c write failure log" 2017-03-21 13:29:03 -07:00
Linux Build Service Account
b4c85a83b1 Merge "iommu: interchange the vmid order passed to hyp_assign" 2017-03-21 13:29:02 -07:00
Linux Build Service Account
202f816129 Merge "msm: mdss: fix race condition in mdp debugfs" 2017-03-21 13:29:01 -07:00
Linux Build Service Account
f4ec231edf Merge "regulator: cpr3: Use scaled gate count for aging measurements" 2017-03-21 13:29:00 -07:00
Linux Build Service Account
020e6e02af Merge "ARM: dts: msm: set VDD_APCC CPR IRQ affinity for CPU0/1 on msm8996pro" 2017-03-21 13:28:59 -07:00
Linux Build Service Account
bf0c24864a Merge "ARM: dts: msm: reduce CPU LDO headroom voltage for msm8996pro" 2017-03-21 13:28:58 -07:00
Linux Build Service Account
b88bf593cd Merge "ARM: dts: msm: update APCC/GFX CPR regulator configuration for msm8996pro" 2017-03-21 13:28:55 -07:00
Linux Build Service Account
3ba6a45bc5 Merge "ARM: dts: msm: Add APC CPR configuration for MSM8996 speed-bin 2" 2017-03-21 13:28:54 -07:00