Commit Graph

11 Commits

Author SHA1 Message Date
Aditya Bavanari
156a57fbb5 dsp: avtimer: Add adsp ready check before accessing avtimer registers
Add adsp ready check before accessing avtimer registers in
order to avoid NOC errors on these registers during SSR/PDR
usecases while querying offset.

Change-Id: I9246302f01906ab35095c76f729ea082b9756cc5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-09-18 20:46:44 +05:30
Ajit Pandey
2e285bf25d dsp: avtimer: validate payload size before memory copy
Check payload size to avoid out-of-boundary memory
access before attemptimg memory read.

Change-Id: I94723b526449aacfe7b2fe30990fb77cdd15c5da
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-08-26 16:10:20 +05:30
Surendar Karka
38d66474e1 audio-kernel: add support to query presentation position from DSP
Add support to query presentation position from DSP
in system time domain.

Change-Id: I42b4d234ddc256f93c01defbe2c74872a2a2cf3e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-07-05 16:03:04 +05:30
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Meng Wang
688a867091 asoc: Update file header to GPL-2.0-only
Update file header to GPL-2.0-only.

Change-Id: If16bf92f951c6d7521f56a3e9b91da2ca2ccf6f8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-01-29 13:43:33 +08:00
Meng Wang
61af6849e9 ASoC: switch audio drivers to SPDX identifier
Switch audio drivers to SPDX identifier on msm-4.19.

Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 15:47:32 +08:00
Laxminath Kasam
356b68c1e2 dsp: avtimer: Update function pointers for camera isp to use avtimer
After DLKM, avtimer functions cannot be invoked directly
from kernel driver. Camera driver exposes API to get the
function pointers to use avtimer. Update the function
pointers by calling respective camera set API.
AVTIMER_LEGACY config should be enabled in audio conf
to enable this support.

CRs-Fixed: 2201340
Change-Id: I165e7ea0226e174288f3e8b81ef01fce137e2e35
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-20 11:52:27 -08:00
Xiaoyu Ye
b424e05893 dsp: avtimer: add __user attribute to identify userspace address
Add __user attribute for avtimer_ioctl's input parameter ioctl_param
to explicitly identify user space pointer in copy_to_user.

Change-Id: I59fa9d39e5ec3ff9cde3a06af9da2d38e36d557d
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-04-26 15:31:12 -07:00
Asish Bhattacharya
5faacb3a7e ASoC: allow drivers to compile both static and dynamic
Based on where the code is synced the driver should allow
both static and dynamic linked compilation.
Also remove __exit for modules loaded from another common
init/exit functions.

Change-Id: Ib58f152002aba3af4446f9bbd9b82c279212bd0a
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2017-12-07 19:57:27 +05:30
Laxminath Kasam
8b1366a648 Audio: DLKM support for all audio modules
Switch to DLKM for all audio kernel modules.

Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-11-02 13:42:09 +05:30
Laxminath Kasam
d1f3619bef audio-lnx: Propagate changes from kernel for wdsp-glink/avtimer
Pick the WDSP-Glink and avtimer drivers from 4.9 kernel
at below cutoff -

(80be7d6a313 - "msm: ADSPRPC: Fix for NULL pointer dereference")

This changes are done to migrate wdsp-glink/avtimer drivers
to this new audio kernel techpack.
Also remove the CDSP loader from techpack audio as it is
non-audio related.

Change-Id: I4f55429c5cbcd24920fdcb8eb2fe3aec02af320e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-18 16:56:12 -06:00