Commit graph

599432 commits

Author SHA1 Message Date
Soumya Managoli
17544a820b dsp: codecs: use native API to configure PCM output block in multiaac
Usage of q6asm_enc_cfg_blk_pcm() does not trigger
PortSettingsChanged event which is required for multi aac component.
Configure the PCM output block using q6asm_enc_cfg_blk_pcm_native()
which ensures that the event gets triggered.

Change-Id: Ieefeead45435840c2ecc1c072e8095785fd4b583
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2018-05-16 12:13:56 +05:30
Xiaojun Sang
ad40ee7b44 ASoC: msm: check payload size before memory allocation
Buffer from mixer ctl or ADSP is composed of payload size and
actual payload. On a 32 bit platform, we could have an overflow
if payload size is below UINT_MAX while payload size + sizeof(struct)
is over UINT_MAX. Allocated memory size would be less than expected.
Check payload size against limit before memory allocation.

Change-Id: I0bf19ca7b8c93083177a21ad726122dc20f45551
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-05-16 14:28:32 +08:00
Vijay kumar Tumati
bdf1a6bd33 msm: camera: Update camera CDR mask setting for CPHY mode
Update the setting to match HPG on SDM660.

Change-Id: I12f7ac0127bf646cb7fb0095b6543a08e558fe4a
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2018-05-16 10:50:42 +05:30
Camus Wong
96d45e5dad [drm/sde/hdmi] move scrambler setup from mode-set to pre-enable
when mode-set is called, HDP core is not enabled yet and scrambler
is not working. Move scrambler setup to pre-enable stage will fix
this problem.

Change-Id: I85d0ac22c6b789a9c0f6288b06cabf3225c20b45
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-05-15 18:37:17 -04:00
Ajay Agarwal
fb863387e6 Revert "usb: core: Add helper function to return controller id"
This reverts commit c611d78437.

Remove helper function to return controller id.

Change-Id: Iadc085bf1dd9553c0805511f3cbafabdec8744f5
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 07:19:56 -07:00
Ajay Agarwal
09dc84033d Revert "usb: host: xhci: Add helper function to return controller id"
This reverts commit 97618148ce.

Remove helper function to return controller id.

Change-Id: I1c0f6cd5600630d77d986f9782e4b83e2919d22b
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 07:19:30 -07:00
Ajay Agarwal
c342078792 Revert "sound: usb: Provide controller number in QMI response"
This reverts commit 9730f9cdc0.

Remote entity does not require the controller number. Tunnel
mode audio will only work with the primary controller. Hence
remove support for providing controller num.

Change-Id: Ife8c0ca969334c57046a91bae428b5f89f9e0566
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 07:18:53 -07:00
Ajay Agarwal
74e61f1fd5 Revert "sound: usb: Pass device speed instead of dcba information"
This reverts commit 8177d0955d.

ADSP requires dcba memory information. Hence pass it from driver.

Change-Id: Ibaf120ba130a24329ef88c7755154e50ba3a7335
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 07:18:19 -07:00
Ajay Agarwal
d2b0c86b23 Revert "usb: core: Remove helper APIs returning dcba dma address"
This reverts commit 039bcf340e.

Add back helper APIs to return dcba dma address.

Change-Id: Ia65e98691d1a3c241694f07215c12605832f574d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 07:17:08 -07:00
Ajay Agarwal
ca3d15e44b Revert "usb: host: xhci: Remove helper API retuning dcba dma address"
This reverts commit 9c1d883952.

Add back helper API to return dcba dma address.

Change-Id: I769c42d53f19bbefb65d491823911b39ec620751
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2018-05-15 14:52:46 +05:30
Linux Build Service Account
fc81fdad87 Merge "asoc: sdm660: Add configuration for adaptive bitrate." 2018-05-14 19:56:24 -07:00
Linux Build Service Account
a7fd106f1a Merge "regulator: cprh-kbss: Add speed-bin 4 support for sdm660" 2018-05-14 19:56:23 -07:00
Linux Build Service Account
f957c365f1 Merge "diag: Initialize memory device memory pools" 2018-05-14 19:56:21 -07:00
Linux Build Service Account
0e9b2e997d Merge "Revert "defconfig: msm: Enable 802.11AD WiFi platform driver"" 2018-05-14 19:56:20 -07:00
Linux Build Service Account
90410eaf1d Merge "ARM: dts: msm: add hab device node into the msm8996 ivi LA vplatform" 2018-05-14 19:56:19 -07:00
Linux Build Service Account
0299331256 Merge "ARM: dts: msm: Use peripheral nodes from QRD630 on QRD636" 2018-05-14 19:56:16 -07:00
Derek Chen
125ff102eb ASoC: msm: qdsp6v2: return the proper LPASS status
Allow the LPASS status check API to return
the proper status code.

CRs-fixed: 2126725
Change-Id: I6c34036ec30c7d4ce8aaefb70d19b04b211f7355
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-05-14 17:28:59 -04:00
Soumya Managoli
1a9c85b25d asoc: sdm660: Add configuration for adaptive bitrate.
Add hostless front end DAI to trigger backend
configuration of BT backend dai required for
configuring BT ABR statistics. Add mixer ctrls
to independently configure TX and RX sample
rates to allow BT RX and TX backends.

Change-Id: I2370eccb10da666ecf267f2756b2efd66ecbf8f6
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2018-05-14 05:04:45 -07:00
Jiangen Jiao
c793b29774 ARM: dts: msm: Use peripheral nodes from QRD630 on QRD636
Include QRD630 device tree file to leverage peripherals nodes and
delete smb1351 node as it is not present on QRD630 board.

Change-Id: I91b6356bf7267d56af73eee1a1bea3fa5ae944f4
Signed-off-by: Jiangen Jiao <jiangenj@codeaurora.org>
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2018-05-14 15:46:46 +08:00
Sreelakshmi Gownipalli
a84cbe29cb diag: Initialize memory device memory pools
Initialize memory device memory pools for diag bridge
only during diag bridge initialization.

Change-Id: I6454ced55e020ade9e3bb99a266548f77f79e193
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-05-14 13:14:34 +05:30
Tirupathi Reddy
815bdaa1e4 ARM: dts: msm: Add speed-bin 4 support for sdm660
Add APC CPR configuration for sdm660 speed-bin 4
parts.

Change-Id: Iaeb5611218fbad22083f030a374db31c5774153b
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2018-05-14 11:18:58 +05:30
Tirupathi Reddy
b717c40ca9 regulator: cprh-kbss: Add speed-bin 4 support for sdm660
Update fuse combo count supported for sdm660 to 40.

Change-Id: I9ee2c15792c3f006db5969be42bce19a4ebc180c
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2018-05-14 11:18:50 +05:30
Yong Ding
4364ec12f0 ARM: dts: msm: add hab device node into the msm8996 ivi LA vplatform
HAB(Hypervisor ABstraction driver) is used to support
message tx/rx or buffer sharing between multiple OS in the
virtualization environment.
With such hab device node in the ivi LA vplatform's device
tree, hab driver will get its configurations dynamically.
So it will not use the default configurations any more.

Change-Id: Ie036799428bccac3685229c249b4943335807b68
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-05-14 09:36:43 +08:00
Zhiqiang Tu
59b0972a90 rh850: Add support to get irq type from device tree
Irq type may vary among targets, add support to get
it from device tree.

Change-Id: I60cb49a4c5fee3dda4ec5abc02966b0b961590da
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2018-05-12 15:26:16 +08:00
Vivek Kumar
1e2d077f01 Revert "defconfig: msm: Enable 802.11AD WiFi platform driver"
This reverts commit 976d5ca5dd.

Change-Id: I4b6bb0e3af39bcdf0238ca542ab3acfc584a5fd3
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2018-05-11 12:18:34 +05:30
Maulik Shah
9a56229f15 lpm-levels: Remove kfree for memory allocated with devm_kzalloc
Do not use kfree for memory allocated with devm_kzalloc during
failures as device memory will get freed in device release.

Change-Id: I6c4d3f8ed55ab02e3e70a1fe65452a8817c8b64e
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2018-05-11 11:40:52 +05:30
Yimin Peng
9401b69e1d spmi: pmic-arb: support updating interrupt type flags
Have the qpnpint_irq_set_type function clear unwanted high/low
trigger bits when updating the interrupt flags.

Change-Id: Ie55d6178ea94350ecf8c79714cb863ea63d76ea6
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-05-11 10:08:19 +08:00
Linux Build Service Account
d5b2406b66 Merge "soc: qcom: scm_qcpe: Add support for GHS" 2018-05-10 11:33:47 -07:00
Linux Build Service Account
390f993317 Merge "soc: qcom: hab: hold the message when the read buffer is smaller" 2018-05-10 11:33:45 -07:00
Timothy Sham
b613e31b6e ARM: dts: msm: support msm-pcm-dtmf on msm8996 adsp/cdp
Add msm-pcm-dtmf DAI for sound cards on msm8996
automotive ADP/CDP platforms.

Change-Id: I5015536ec7293892bb1da4547b2ea90b20d93123
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2018-05-10 11:30:31 -07:00
Linux Build Service Account
6e5dae3ae1 Merge "Merge android-4.4.131 (d5d6526) into msm-4.4" 2018-05-10 01:25:18 -07:00
Linux Build Service Account
d7521d9bb9 Merge "diag: Add new WLAN_RSN event id" 2018-05-09 13:54:14 -07:00
Sachin Bhayare
e9d6a3f0a7 msm: mdss: Increase fbmem buf ref count before use in mdp3
The reference count for fbmem buf is not increased before use,
which means it can be get freed unintentionally when the reference
count is decreased to "0". In this case, there is possibility of
use after free. Ensure that fbmem buf refcount is incremented
before use mdp3 driver.

Change-Id: I38787c27a26ae550c6fb28697a7583490ad19df8
Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
2018-05-09 05:32:43 -07:00
Linux Build Service Account
d718058109 Merge "drm: msm: improve early splash mechanism" 2018-05-09 05:09:47 -07:00
Yong Ding
c7e6dca757 soc: qcom: hab: hold the message when the read buffer is smaller
If the receive buffer in habmm_socket_recv() is smaller
than the message, it should be kept in the queue rather
than dropped.

Change-Id: Iabc1f73e5b443cc7ebdefc3961d5bec9049a265f
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-05-09 19:31:48 +08:00
Manoj Prabhu B
6241aeff0f diag: Add new WLAN_RSN event id
The patch adds new WLAN_RSN_INFO event as latest ID.

Change-Id: Ic76506632ea0aa61c79c52824556b6aaeb0b04e6
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2018-05-09 01:35:39 -07:00
Timothy Sham
6e3516ef4c ASoC: msm: qdsp6v2: increase max Rx DTMF duration
Increase the maximum value of the DTMF Rx Generate
mixer command and change the read to int16 to allow
for clients to be able to set '-1', infinite tone.

Change-Id: I44eed4712bb05a70b4464d9db38c348c131a3f61
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2018-05-08 14:27:20 -07:00
Linux Build Service Account
43fb4adbdc Merge "ipvs: use IPVS_CMD_ATTR_MAX for family.maxattr" 2018-05-08 13:46:00 -07:00
Linux Build Service Account
058359baba Merge "power: smb-lib: Enable TypeC crude sensor PBS WA based on PMIC type" 2018-05-08 13:45:59 -07:00
Linux Build Service Account
6b9ca47dab Merge "power: smb-lib: Add support for SW based OV detection" 2018-05-08 13:45:58 -07:00
Linux Build Service Account
4623da5bd0 Merge "smb-lib: add support of DP/DM pulsing for fix 5V, 9V and 12V" 2018-05-08 13:45:57 -07:00
Linux Build Service Account
49ff4084ee Merge "ion: Consider ion pool pages as indirectly reclaimable" 2018-05-08 13:45:55 -07:00
Linux Build Service Account
60fd114777 Merge "mm: treat indirectly reclaimable memory as free in overcommit logic" 2018-05-08 13:45:55 -07:00
Linux Build Service Account
d822f25d6d Merge "mm: treat indirectly reclaimable memory as available in MemAvailable" 2018-05-08 13:45:54 -07:00
Linux Build Service Account
c18ab0bcb7 Merge "soc: qcom: glink_smem_native_xprt: Move rx_worker in irq handler" 2018-05-08 13:45:53 -07:00
Linux Build Service Account
14effa597c Merge "diag: Add new Diag IDs" 2018-05-08 13:45:52 -07:00
Linux Build Service Account
78cb670fd2 Merge "input: touchscreen: synaptics_dsx: Fix buffer overflow" 2018-05-08 13:45:49 -07:00
Umang Agrawal
aa38c97b5e power: smb-lib: Enable TypeC crude sensor PBS WA based on PMIC type
Enable TypeC crude sensor PBS WA based on PMIC type since it is
required for PM660 and PMI8998 only.

Change-Id: Ib4f170ddba893e5b96372eecee9b9b74cb2a97e2
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
2018-05-08 17:16:01 +05:30
Umang Agrawal
d9749262e8 power: smb-lib: Add support for SW based OV detection
Add support for software based USBIN OV detection, once
OV condition is detected, software will force USBIN to 5V
and continue charging with 5V.

Change-Id: Ie8f00f69db4ac6330d9da82b3455e4efab43861a
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
2018-05-08 17:15:56 +05:30
Umang Agrawal
0d177827e0 smb-lib: add support of DP/DM pulsing for fix 5V, 9V and 12V
This change will enable userspace to control adapter's output
voltage. Userspace can force adapter's output voltage to
5V/9V/12V.

Change-Id: I4a60a681c136df6864294dbd19849503a2be2e7b
Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
2018-05-08 17:15:50 +05:30