Add qcom,subsys-name for apr driver. Based on the property,
registration of notifier is done for the right co-processor,
from which notification needs to be received.
Change-Id: Id492c8b24d1a4cf0bcab37700a1e9c61c9067041
Signed-off-by: Meng Wang <mengw@codeaurora.org>
waitqueue dsp_wait is not used anymore.
Remove it from apr driver.
Change-Id: Iab16d37cdc8dd495e2289acec3ee5625421465e4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Use of_platform_populate to add child node of apr.
Change-Id: I9f0ded5e39deaf37c79ecda4d960d64c9c14eec9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Use CONFIG_ARCH_SM6150 for Talos to enable
proper compilation.
Change-Id: I14e06122116c431bf4b99da3a061d165f68e0d4f
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
Add MSMSTEPPE in the makefile rules to enable
compilation for SDM640.
Change-Id: I36437404d98229c8b292fd63304498122d8c8687
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
Update all audio drivers to use updated chipset name in
files, functions, architecture specific configurations
and the device tree compatible strings.
Change-Id: I507948866213ddb8806edea71a57c1f29ce7e71b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Update all audio drivers to use updated chipset name
in architecture specific configurations and the device
tree compatible strings.
Change-Id: Ib1abe643c6914c1b0b57ef110c7b60e23e356d97
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
The current logic that checks pointer "rpdev" for NULL is not
correct. Fix it to prevent potential NULL pointer dereference.
Change-Id: Ieaad98396ff43b66b0dd41efbfbf9f6ae923a2bb
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Change APR driver to platform driver and add any child
device only after ADSP up notification is received.
The idea is to have machine driver as a child device
under APR, and add the platform device for machine
driver only after ADSP is up. This will help invoke
audio drivers waiting with deferred probe and eventually
should help sound card registers successfully.
Change-Id: Ib0c0f7ec1d7dd93a1b54a9a66260861223d55c67
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Parse the right channel name property to get the number
of wdsp channels supported.
Change-Id: I77d367aeab759c3eaf4a42b56f8fcb1261fe6e44
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Update module symbol folder from PRODUCT_OUT to OUT.
Change-Id: I4542c3d2b5e9e39b69f15954ef425c1915a58456
Signed-off-by: Meng Wang <mwang@codeaurora.org>
The UAPI headers will be copied from the include/uapi directory.
Remove support to copy the header files from ipc location.
Change-Id: Ie7e92942e476fdfd16c0b0d226c40e90ae9da0c4
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Add support for wdsp communication over rpmsg to enable
inter process communication between application processor
and codec DSP.
Change-Id: I6679e9d8b104bbd41e19bbf788a41129dc97da88
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Add support for apr communication over rpmsg to enable
inter processor comuunication b/w APPS and ADSP for
audio usecases.
Change-Id: I834ded7f1dd709e1d9e835b852c2edc25e8607e0
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
For some time critical tasks, the thread priority
might need to be upgraded to Real-Time Thread
priority level. Expose an interface from APR layer
so that clients can vote for a priority upgrade
whenever needed.
Change-Id: Ieb4afa914905750eccdf7672020a8751fdcf6462
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Add boundary checks for APR port received from ADSP.
CRs-Fixed: 2143207
Change-Id: I9a7fa39ee223e1859323caa6eb74c1c8a26a041d
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
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>
Update make files to extend dlkm support for qcs605
Change-Id: Icf736fb66ca12966f4c6cd72bb906eb32899868a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Switch to DLKM for all audio kernel modules.
Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add EXPORT_SYMBOL to symbols used by codec driver.
Codec driver is built as separate module and requires
symbols called to be exported.
Change-Id: I3d1bc6c8cbfc1b92f790b700ecfeaff211ddcff0
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
If userspace sends non-null terminated channel name then
out of bounds read is possible while printing channel name.
Fix this issue by validating channel name before use.
Change-Id: Ide270a54be14b280e87360836a0fad1302075660
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
There is a chance that glink channel memory pointer is used
after free if WDSP_REG_PKT and WDSP_CMD_PKT are received at
the same time from different threads. Fix this issue by
initializing glink link state to GLINK_LINK_STATE_DOWN.
Also limit error logs to avoid watchdog timeout issues.
Change-Id: I07c4e6f12eb057405eb59f1c0d04b890fa964ce8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Propagate the changes based on latest snapshot
for audio kernel source tree at below cutoff of
kernel msm-4.9 -
(040750bfa78 -
"Revert "ARM: dts: msm: Add DT node for aop-qmp
clock controller on SDM845 v2"")
CRs-Fixed: 2104096
Change-Id: I0927c40b3a188dbf892e7ec4c1c7810953724929
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
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>