Commit Graph

1535 Commits

Author SHA1 Message Date
Linux Build Service Account
e848e37cb2 Merge "dsp: asm: validate ADSP data size before access" 2019-03-14 06:55:35 -07:00
Linux Build Service Account
766e57f94b Merge "ipc: apr: check for packet size to header size comparison" 2019-03-14 06:55:34 -07:00
Linux Build Service Account
f8222a77eb Merge "ASoC: codecs: Add support for soundwire clock for VA usecase" 2019-03-14 06:55:31 -07:00
Linux Build Service Account
48d488c18c Merge "asoc: sm6150: Remove zdet gpio callback for tasha variant" 2019-03-14 06:55:30 -07:00
Linux Build Service Account
8d44b4ee14 Merge "asoc: Stream_open issue fix for gapless playback" 2019-03-14 06:55:29 -07:00
Linux Build Service Account
fb966ab3ae Merge "dsp: q6voice: Check size of payload before access" 2019-03-14 06:55:27 -07:00
Linux Build Service Account
3d5756e60a Merge "uapi: wcd-spi-ac: add interface for client driver" 2019-03-14 06:55:25 -07:00
Linux Build Service Account
ba543e1f8f Merge "dsp: q6voice: Check size of payload before access" 2019-03-14 06:55:22 -07:00
Linux Build Service Account
7b786004c0 Merge "asoc: Reorder list used in topology search" 2019-03-14 06:55:20 -07:00
Linux Build Service Account
ae8bc1e1f2 Merge "dsp: q6voice: Check size of shared memory buffer before access" 2019-03-14 06:55:16 -07:00
Linux Build Service Account
59342f5264 Merge "asoc: avoid excessive logging" 2019-03-14 06:55:13 -07:00
Linux Build Service Account
cd01483c9d Merge "asoc: msm-lsm-client: stop lab during lsm close" 2019-03-13 14:32:05 -07:00
Linux Build Service Account
28cf96f41d Merge "asoc: add support to configure MFC in ec ref path" 2019-03-13 13:13:46 -07:00
Linux Build Service Account
7994527b64 Merge "dsp: add support to configure MFC in ec ref path" 2019-03-13 13:13:45 -07:00
Linux Build Service Account
8fd4a210ab Merge "msm: vote for LPASS core while access LPASS registers" 2019-03-13 03:33:04 -07:00
Vatsal Bucha
0714ffdfcb dsp: q6voice: Check size of shared memory buffer before access
Check buffer size in qdsp_cvs_callback before access in
ul_pkt.

Change-Id: Ic19994b46086709231656ec747d2df988b7a512f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-03-12 22:42:21 -07:00
Haynes Mathew George
4728d6b2b5 asoc: Reorder list used in topology search
Routing driver searches CAL_TYPE list for a matching
topology and then searches the LSM_CAL_TYPE list if
no entry is found in the first list.
If it so happens that a capture type cal block is
present in the CAL_TYPE list, it will be picked even
though the correct entry is present in the LSM_CAL_TYPE list.
Flip the order to give priority to LSM_CAL_TYPE list.
We expect only LSM clients to populate this list and
also enforce exact match for LSM clients.

CRs-Fixed: 2250684
Change-Id: I2ab3481b43a5d8b059a20cb919ff097fc8cf2774
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2019-03-12 22:38:33 -07:00
Xiaoyu Ye
f74e89bd89 asoc: avoid excessive logging
Excessive logging by pr_err() could cause audio thread to stuck
in the printing session which results PD down notification timeout.
This eventually can cause ADSP PDR failure. Fix this issue by using
pr_err_ratelimited and dev_err_ratelimited to limit the number of
error messages during the ADSP PDR.

Change-Id: I68b617fef53ebd03ba79fd919bffd8c35e6eb048
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-03-12 22:28:30 -07:00
Tanya Dixit
be0391da6c dsp: q6voice: Check size of payload before access
Check size of payload array before access in qdsp_cvp_callback.

Change-Id: Ic5ea6686a1a09df75ddd5e6fdcdfbd74efff83d8
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2019-03-12 22:22:02 -07:00
Bhalchandra Gajare
c36b0b9752 uapi: wcd-spi-ac: add interface for client driver
The wcd-spi-ac (access control) driver exposes character
device to userspace to indicate information regarding
WCD SPI usage. Add uapi header file with the commands
and data expected by the character driver.

Change-Id: I41dfc3181041c7e7a1bad8695fa723d3a965036b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2019-03-12 22:20:25 -07:00
Tanya Dixit
d591f497ce dsp: q6voice: Check size of payload before access
Check size of payload array before access in qdsp_mvm_callback.

Change-Id: I81d945f963cfb4a3cb26155700b82880d891ec5e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-03-12 22:15:55 -07:00
Nidhisha Dhananjayan
d84669e428 asoc: Stream_open issue fix for gapless playback
msm_compr_trigger for next track is updated with
q6asm_stream_open_write_v5 depending on the
avcs_api_version.

Change-Id: I6b3862a7b8e0480fffdcddc2ff0949cf5399d7a6

Signed-off-by: Nidhisha Dhananjayan <nidhis@codeaurora.org>
2019-03-12 22:11:07 -07:00
Dhananjay Kumar
242b5b060a asoc: add support to configure MFC in ec ref path
Add support to process ec at channel count other than the
playback channel count by providing ability to set downmixed
channel count and downmixing weights to be used to downmix
ec ref data obtained from playback path.
These configs would be used to explicitly configure MFC module
present in ec ref path, for usecases where ec processing cannot
be done at playback channel count due to algorithmic or resource
limitations.
Also increase the ec ref channel count support to Sixteen from
current max of Eight.

Change-Id: I2297508aedd177580b1c9b2bed3c7c8421507629
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-03-12 22:05:45 -07:00
Dhananjay Kumar
4303439281 dsp: add support to configure MFC in ec ref path
Add support to process ec at channel count other than the
playback channel count by providing ability to set downmixed
channel count and downmixing weights to be used to downmix
ec ref data obtained from playback path.
These configs would be used to explicitly configure MFC module
present in ec ref path, for usecases where ec processing cannot
be done at playback channel count due to algorithmic or resource
limitations.

Change-Id: Iaa80a0f0da3697c55751b2201578252d6466d3b5
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-03-12 22:04:58 -07:00
Chaithanya Krishna Bacharaju
52bb6616c1 asoc: msm-lsm-client: stop lab during lsm close
Buffering is not stopped during lsm close due to
which lab buffers can be queued during teardown of
session. This leads to read being issued even after session
close. Stop lab during close to avoid this. Use correct
return value to indicate errors during lsm start and stop.

Change-Id: I52fa33cebaa3ee6ae60eb2a60bb1e833f2a9d0d6
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-03-12 22:02:10 -07:00
Aditya Bavanari
350d51c06a asoc: sm6150: Remove zdet gpio callback for tasha variant
Remove impedance detection gpio callback function for tasha
variant as gpio control is not required for zdet.

Change-Id: Ic038d11c078241ca438cdff756fd666f6106d509
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-03-13 09:41:48 +08:00
Vignesh Kulothungan
52b8722a94 dsp: asm: validate ADSP data size before access
Check the size of ADSP payload before accessing it.
Validate buffer index obtained from ADSP token before using it.

CRs-Fixed: 2372302
Change-Id: I3f5e1b6f515935a10a8c59c324452be0a71f9473
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-03-12 11:42:59 -07:00
Linux Build Service Account
8766446f90 Merge "asoc: add support for assigning SLIMbus device ID dynamically" 2019-03-12 02:58:38 -07:00
Banajit Goswami
4052afe2c7 asoc: add support for assigning SLIMbus device ID dynamically
SLIMbus device ID can be different for SLIMbus ports on different
targets. Add support for dynamically assigning SLIMbus device ID
at bootup time from device tree.

Change-Id: I5a3b0812085ee53e8cd3bfac96eaaa939fda4106
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-03-10 20:40:17 -07:00
Banajit Goswami
83a370dce7 asoc: kona: add back support for Slimbus 7 for BT use cases
BT use cases on Kona target uses Slimbus 7 ports. Add back
support for Slimbus 7 port for BT.

Change-Id: Iaa5128738106fdafabe84831237947c3880de214
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2019-03-09 13:18:26 -08:00
Linux Build Service Account
0b1af544c3 Merge "Initial Android target definition for lito." 2019-03-08 00:25:05 -08:00
Linux Build Service Account
d08a1a3fba Merge "kona: move display port mixers to common block" 2019-03-07 23:33:37 -08:00
Sudheer Papothi
a1351b945f ASoC: codecs: Add support for soundwire clock for VA usecase
Add support for soundwire clock for VA usecase.

Change-Id: I1f56678ad36e4ae6c8dd458c0b7e96e847694050
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-03-07 18:55:11 +05:30
Karthikeyan Mani
eca1a399c4 ipc: apr: check for packet size to header size comparison
Check if packet size is large enough to hold the header.

Change-Id: I7261f8111d8b5f4f7c181e469de248a732242d64
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-06 16:57:48 -08:00
Linux Build Service Account
c38af66a58 Merge "dsp: codecs: fix range check for audio buffer copying" 2019-03-06 02:55:37 -08:00
Linux Build Service Account
572dec3fcd Merge "asoc: Add TRUEHD format to list of codes" 2019-03-05 22:25:18 -08:00
Linux Build Service Account
51b0cb7c71 Merge "dsp: Handle media fmt update events" 2019-03-05 22:25:17 -08:00
Linux Build Service Account
c3119154d5 Merge "asoc: Add API for capture path channel cfg" 2019-03-05 22:25:14 -08:00
Linux Build Service Account
a8b5946ade Merge "asoc: Add new channel ID to mark unused channel map slots" 2019-03-05 22:25:13 -08:00
Linux Build Service Account
9728ee8567 Merge "dsp: Add new channel ID to mark unused channel map slots" 2019-03-05 22:25:10 -08:00
Linux Build Service Account
a7377a88c6 Merge "asoc: qcs405: Add devices for concurrent audio record" 2019-03-05 22:25:08 -08:00
Mangesh Kunchamwar
cdd68dbe72 msm: vote for LPASS core while access LPASS registers
When ADSP is in power collapse or island state, it would fail
to access LPASS codec register.Vote for LPASS core to avoid
LPASS power collapse with pmruntime approach while accessing
LPASS registers & TLMM.

Change-Id: I74d037e499fb6f1245b9a1bd1b0a77200608c27b
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2019-03-06 08:50:31 +08:00
Linux Build Service Account
fcafe38f3a Merge "asoc: msm: fix FM hosteless capture" 2019-03-05 15:24:53 -08:00
Linux Build Service Account
8de838acd3 Merge "asoc: codecs: bolero: enable gpio and clk in right sequence" 2019-03-05 14:17:18 -08:00
Linux Build Service Account
ecb1c25ff1 Merge "asoc: msm: fix data port collisions for Kona" 2019-03-05 14:17:17 -08:00
Linux Build Service Account
4ef6a037b5 Merge "asoc: check payload length against structure size" 2019-03-05 02:43:27 -08:00
Linux Build Service Account
e354ac3138 Merge "soc: pinctrl-lpi: add changes to support slew rate config" 2019-03-05 02:43:25 -08:00
Salendarsingh Gaud
341574f12b Initial Android target definition for lito.
Initial Android target definition in kernel for lito

Change-Id: I2257391a2265abb4b25c8d2a4ad8823b15cd795d
2019-03-05 01:23:27 -08:00
Linux Build Service Account
cc79d879b8 Merge "asoc: routing: add widget connection for FM playback" 2019-03-04 21:40:01 -08:00
Linux Build Service Account
e816c925e4 Merge "asoc: kona: update pcm id for Kona FE" 2019-03-04 21:39:59 -08:00