Commit graph

23 commits

Author SHA1 Message Date
Linux Build Service Account
ce631fb608 Merge "drivers: qcom: ultrasound: Lock async driver calls" 2016-11-03 06:24:02 -07:00
Sudheer Papothi
c8c16b7406 drivers: qcom: ultrasound: Lock async driver calls
Adds lock to ioctl and other external calls to driver.
Adds missing null check in __usf_set_stream_param.

Change-Id: I142f31c6bb46d6a394ad012077e1703875a120ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-11-02 16:40:43 -07:00
Surendar karka
57260dab56 ASoC: msm: qdsp6v2: Change audio drivers to use %pK
Change all qdsp6v2 audio driver to use %pK instead
of %p. %pK hides addresses when the users doesn't
have kernel permissions. If address information
is needed echo 0 > /proc/sys/kernel/kptr_restrict.

CRs-Fixed: 1052832
Change-Id: Id6d45982cbe42a113e58c9b6509eb6ef8064aeef
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-10-26 21:07:26 +05:30
Linux Build Service Account
32ed0e480d Merge "ASoC: msm: lock read/write when add/free audio ion memory" 2016-10-14 03:40:32 -07:00
Haynes Mathew George
c9579e0a6b misc: qcom: qdsp6v2: Add missing initialization
Use vars in driver context after proper initialization

Change-Id: I3e59e27534b8e1088d74b42c72e0075d2fe910e6
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
CRs-Fixed: 1049521, 1049615
2016-10-12 15:24:22 -07:00
Walter Yang
b71a087daa ASoC: msm: lock read/write when add/free audio ion memory
As read/write get access to ion memory region as well, it's
necessary to lock them when ion memory is about to be added/freed
to avoid racing cases.

CRs-Fixed: 1071809
Change-Id: I436ead23c93384961b38ca99b9312a40c50ad03a
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-10-12 12:58:13 +08:00
Dhanalakshmi Siddani
a605f4fab2 misc: qcom: qdsp6v2: SSR recovery support for NT decoder
Post ENETRESET error to omx component during SSR.

CRs-Fixed: 1044635
Change-Id: I8c5b8ffc62d34a44bfb47ec4f11477d4320d30a8
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2016-09-16 03:18:20 -07:00
Karthik Reddy Katta
287879c3be ASoC: msm: Add Buffer overflow check
The overflow check is required to ensure that user space data
in kernel may not go beyond buffer boundary.

CRs-Fixed: 1064411
Change-Id: I54c28a8942cf1a6a47a4e8272f3159b35d753ead
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
2016-09-10 04:49:15 -07:00
Linux Build Service Account
981a0eae00 Merge "ASoC: qdsp6v2: Add proper dependency for audio driver" 2016-09-09 01:26:10 -07:00
Linux Build Service Account
39dfe0cc0a Merge "misc: qcom: qdsp6v2: initialize config_32" 2016-09-09 01:26:02 -07:00
Asish Bhattacharya
8702e196da ASoC: qdsp6v2: Add proper dependency for audio driver
Add qdspv6v2 and snd_soc_compress dependencies for
audio driver to fix compilation issues on msmfalcon_32.

CRs-Fixed: 1061427
Change-Id: Iac276eeec710a11e5feeb6899da121ca6324e19b
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2016-09-07 11:58:22 +05:30
Laxminath Kasam
4e13ee8d6f misc: qcom: qdsp6v2: initialize config_32
Not all memebers of config_32 are set before they are used which
might lead to invalid values being passed and used. To fix this issue
initialize all member variables of struct config_32 to 0 before
assigning specific values individually.

CRs-Fixed: 1058826
Change-Id: Ifea3a6e8bf45481c65a4455ee64318304798fee2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-09-01 16:35:36 +05:30
Siena Richard
94cae80780 misc: qcom: qdsp6v2: initialize wma_config_32
Not all memebers of wma_config_32 are set before they are used which
might lead to invalid values being passed and used. To fix this issue
initialize all member variables of struct wma_config_32 to 0 before
assigning specific values individually.

Change-Id: Ibb082ce691625527e9a9ffd4978dea7ba4df9e84
CRs-Fixed: 1054352
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-08-18 14:37:57 -07:00
Siena Richard
5feda7e458 ASoc: msm: fix out of bounds array access
Check that the array index value is less than the max array size
to avoid an out of bounds array access.

CRs-Fixed: 1037903
Change-Id: I2e357fd60c03833aed48a815794729fabfcfcf93
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-07-14 12:43:56 -07:00
Ben Romberger
ad4a2b5368 misc: qcom: qdsp6v2: Return flush errors to user space
Return errors from the flush function including
the caller of the flush ioctl.

CRs-fixed: 1027784
Change-Id: I7ec578b42f50b6ce2f2738193c622c8a2f01ecd8
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-06-27 19:53:06 -07:00
Weiyin Jiang
7966b0d08e ASoC: msm: audio-effects: fix stack overread and heap overwrite
Fix overwrite of updt_params allocated in heap, and stack overread
where param pointer is passed from user space.

CRs-Fixed: 989628
Change-Id: Ida8bdb7da2fcb97023dce3b6eafe4b899a51cb66
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2016-05-06 12:06:24 -07:00
Vidyakumar Athota
d886b34289 msm: ultrasound: Various static analysis fixes
Remove potential null dereference.
Remove dead code from impossible error check.
Set upper bound for user-provided buffer size.

Change-Id: I212f3edfa31e9168d11e0782da7f3fd8c2b98c5d
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-05-06 12:06:20 -07:00
Weiyin Jiang
9847f9ca84 ASoC: msm: audio-effects: misc fixes in h/w accelerated effect
Adding memory copy size check and integer overflow check in h/w
accelerated effect driver.

Change-Id: I17d4cc0a38770f0c5067fa8047cd63e7bf085e48
CRs-Fixed: 1006609
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2016-05-03 15:52:37 -07:00
Shiv Maliyappanahalli
8bc5414b74 ASoC: msm: qdsp6v2: use session id for token value
Read commands are currently assigning 64bit physical address
to 32bit token. There is a possibility that this physical address
may have same lower 32bit values which could cause errors. Fix
by assigning session id as the token value.

Change-Id: Ie704e34338201ecec191b2031d20552691aed3ea
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-04-12 15:49:49 -07:00
Shiv Maliyappanahalli
6a9927bfd7 ASoC: msm: qdsp6v2: use token for tracking no wait cmd
Use tokens to track all active no wait commands.
In ASM driver, certain commands are waited on to get response
from ADSP. There is a possibility that certain no-wait
commands can be improperly recognized and woken up leading
to time outs.

Change-Id: I2030a354493845b63cf92d35ca4eaadef38cfb79
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-04-12 15:49:48 -07:00
Phani Kumar Uppalapati
f6c9eb5139 msm: ultrasound: USF stays awake after each event
Give upper layers enough time to turn on screen before
falling back into SUSPEND.

Change-Id: I162f25dffdbbeb783d0bca673d6e6db8de412aac
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-03-23 21:15:54 -07:00
Laxminath Kasam
6d4b0deeb6 ASoC: audio: update API name for populate upper 32bits
In audio ion driver, append msm_audio_ to API
populate_upper_32bits to maintain consistency
across other API names in this driver.

Change-Id: I72aace56bf8e80c6dd83f768876253d2c7f334bb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-03-23 21:13:03 -07:00
Sudheer Papothi
be1a516dcb ASoC: msm: Add Audio drivers for MSM targets
Add snapshot for audio drivers for MSM targets. The code is
migrated from msm-3.18 kernel at the below commit/AU level -

AU_LINUX_ANDROID_LA.HB.1.3.1.06.00.00.187.056
(e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1)
(Promotion of kernel.lnx.3.18-151201.)

Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 20:11:25 -07:00