summaryrefslogtreecommitdiff
path: root/qcom
AgeCommit message (Collapse)Author
2022-02-10db845c: Add rb5 support in db845c-userdebug build targetAmit Pundir
* Enabled multiple appended DTBs support to allow db845c boot.img/vendor_boot.img to boot on rb5 as well. * Introduced a vendor.hw property which will be used to run device specific services. * Folded Caleb's HDMI audio routing fix. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I779d01946ae359d5c405d959419e29460083e5df
2021-07-30init.common.usb.rc: Do not hardcode sys.usb.controller propertyAmit Pundir
Upstream commit eb9b7bfd5954 ("arm64: dts: qcom: Harmonize DWC USB3 DT nodes name") (v5.14-rc1) changed the DTS USB node names, breaking the sys.usb.controller property hardcoded in the platfrom specific init.usb.common.rc This script will get rid of the static/hardcoded proprty name and set the property to the available on-board USB controller from /sys/class/udc instead. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I1255cd9a3456510d93437989e7e378d9e6bc0c8b
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to device/linaro/dragonboardandroid-s-preview-1Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: audio/Android.mk libmemtrack/Android.mk Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT SPDX-license-identifier-OpenSSL legacy_by_exception_only to: Android.bp Added SPDX-license-identifier-BSD to: qcom/pd-mapper/Android.bp qcom/qrtr/Android.bp qcom/rmtfs/Android.bp qcom/tqftpserv/Android.bp Added SPDX-license-identifier-MIT to: gralloc/Android.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: If3396b5bd63553d0fcdb8cc7abb79b73cec46a7a
2020-11-18audio: Kang audio HAL from amlogic yukawa deviceAmit Pundir
Copied from device/amlogic/generic/hal/audio/ minus the speaker equalizer filter file. It is a generic and more feature rich HAL, plus it fixes the occasional static noise we hear on db845c and PocoF1. Removed the mixer control settings from qcom/init.qcom.rc and added HDMI out mixer control in etc/mixer_paths.xml to start with. ** Analog audio out is not tested yet. ** ToDo: 1. Fallback to Analog audio port if the monitor doesn't support HDMI audio out. 2. Mic AEC support is integrated deep in this HAL, so I didn't remove it. Might as well test and use that feature on Pixel 3 and Poco F1. Same with speaker EQ, though we may end up never using this equalizer feature at all. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I85614abdd684ab67f405f4c0e48380668ade4e06
2020-10-20Fix an out-of-bounds read in assoc_next.Peter Collingbourne
Found using HWASan. Also sent upstream: https://github.com/andersson/pd-mapper/pull/5 Bug: 171327997 Change-Id: I69d07d0228719abbffb38aa709de39c1d8190158
2020-07-09Revert "qcom: qrtr: Disable qrtr-ns and qrtr-cfg"android-r-beta-3android-r-beta-2Amit Pundir
This reverts commit 2cf92a4173d774ad491709f80fe8fe3aa1698e6a. Needed to get WiFi working on android-5.4 kernel. Otherwise we need to backport a chunk of in-kernel qrtr ns patches from upstream (v5.7-rc1) kernel. Userspace qrtr-ns tool is compatible with upstream kernel as well, check: https://android-review.googlesource.com/c/1286419 Change-Id: Icf9654ed415fe77c8f22592feccd7c68f46bd765 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-06-15Merge changes I44fdecfb,I1f2081e4Alistair Delva
* changes: db845c: Revert "audio: Set analog port as default audio out" db845c: audio: Fix HDMI mixer control
2020-06-12init.qcom.rc: Add a custom shutdown trigger to kill rmtfsAmit Pundir
There is a kernel bug uncovered in db845c modem shutdown path in v5.7-rc1, where "reboot" or "reboot bootloader" commands do not work as expected when the device is connected to a WiFi AP. The db845c hard crashes on reboot, resulting in the device getting stuck in the usb crash debug mode and not coming back up without a hard power off. There is no reboot regression when the board is not connected to any AP. This kernel issue is already reported upstream: https://lists.infradead.org/pipermail/ath10k/2020-April/014970.html https://lists.infradead.org/pipermail/ath10k/2020-June/015206.html For now here is a userspace workaround where we do not wait for modem to shutdown gracefully (SIGTERM during reboot), instead we stop the rmtfs service explicitly using the "on shutdown" init trigger, thereby sending a SIGKILL signal. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Ieb8b65ceb979b1f698ddf7ae48ce49652b99a9dc
2020-06-04db845c: audio: Fix HDMI mixer controlAmit Pundir
"QUAT_MI2S_RX Audio Mixer MultiMedia2" needs to be enabled for HDMI audio to work. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I1f2081e4354f039afd2a57a6a36d3afe021b420b
2020-04-25audio: Set Analog and HDMI mixer controlsAmit Pundir
Set Analog and HDMI mixer controls for db845c on boot completion using tinymix. Put a 1 second sleep in-between pd-mapper and tinymix to let sound/codecs initialized properly before setting mixer controls. Also made sure that audio out interface is ready before audioserver service get started. Change-Id: Ib321559815e5d22d224fc36a1fe6c21f52df3eec Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-04-25qcom: qrtr: Disable qrtr-ns and qrtr-cfgAmit Pundir
No need to run qrtr-ns and qrtr-cfg services explicitly. They are moved to kernel now starting from v5.7-rc1. We are keeping qrtr-lookup around for debugging. Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I02d72e73ef3d64fed1c024a97cec3560241aff22
2020-04-25qcom: qrtr: ns: Go dormant when exsting name server is foundBjorn Andersson
With the introduction of the in-kernel nameserver launching the user space qrtr-ns will fail, but typically other services depends on its presence. As such, go dormant instead of failing when noticed that the name service is already present. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I62aa002294e6980bab0b5e1b7282212b8d2c3d57
2020-04-25qcom: pd-mapper: Update Android.bp srcsAmit Pundir
Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I8b6f6907fd27e775fd399b109cd660372a6a6252
2020-04-25qcom: pd-mapper: Use /vendor/firmware path for AOSPAmit Pundir
Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I44f1d53cb16bc91e05be530c55e15a2657660be6
2020-04-25qcom: pd-mapper: Null terminate firmware_value stringAmit Pundir
Null terminate firmware_value string to prevent strlen() read past the end of buffer. Otherwise pd-mapper will crash: console:/ # pd-mapper FORTIFY: strlen: detected read past end of buffer Aborted 134|console:/ # Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: Id0b9e1dda2bae12e3a36f1ce40376d1161878894
2020-04-25qcom: pd-mapper: Syncup with upstream github projectAmit Pundir
Syncup with https://github.com/andersson/pd-mapper upstream project up to commit: ab5074fdd5e4 ("pd-mapper: Use remoteproc firmware to find jsons") Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Change-Id: I4ad3c07977c1e41a657c6c0479ad6dee9c154374
2020-03-17db845c: qcom: Fix pointer arithmetic warnings.John Stultz
Building the qcom tools, we see a lot of the following: warning: arithmetic on a pointer to void is a GNU extension Fix this by casting the void* ptrs to char* when doing pointer arithmatic. Change-Id: Id2b0098388406bfc434ee01344a39e3413cb281c Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: Add some __unused annotations to avoid compiler warningsJohn Stultz
Add __unused annotations to qcom remoteproc userland programs to avoid compiler warnings. Change-Id: Idd9405ff03afbeeb76433f14d24ee40eef42ed7e Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: Add init.qcom.rc to start up remoteproc services/wifiJohn Stultz
Adds the init.qcom.rc file to the build so the qcom remoteproc userland code can be started and wifi can be initialized. This pach was split out from earlier patch by Amit Pundir <amit.pundir@linaro.org> Change-Id: I2032e7c2d3d5d3a10b7afd387f97a93235a908cf Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: tqftpserv: Null terminate firmware_value stringJohn Stultz
Null terminate firmware_value string to prevent strlen() read past the end of buffer. Change-Id: I57cd01c4d0c58c6057872bc4b36129f09bc034a3 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: tqftpserv: Use /data/vendor for temporary filesAmit Pundir
On AOSP, /tmp is not available. Use /data/vendor instead for temporary files. Change-Id: I1d6ebd669573b3c3134e6da943ea9355ed83a3fe Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: rmtfs: Use -o option to override partition by-nameAmit Pundir
Instead of hardcoding BY_PARTLABEL_PATH for AOSP, reuse -o option as suggested by Bjorn to expand John's patch to find correct partition by-name on newer kernels (which is /dev/block/platform/soc*/*.*/by-name). For example: On db845c running v5.4+ kernel we run: rmtfs -o /dev/block/platform/soc@0/1d84000.ufshc/by-name -P -r -s Change-Id: I05a18566370aff1018a79ec2c83532a2849ca359 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-03-17db845c: qcom: rmtfs: Keep /dev/qcom_rmtfs_memX fd openAmit Pundir
/dev/qcom_rmtfs_mem0 fd is required to share the data. Change-Id: I62a2605cdf699047654f3a0b222be9610bae1085 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-03-17db845c: qcom: Add userspace tools to talk to dsp and modemAmit Pundir
Add Qcom userspace tools and their respective sepolicy rules. Userspace tools are downloaded from following github: To trigger loading of wlan firmware on SDM845 git clone https://github.com/andersson/pd-mapper Userspace reference for net/qrtr in the Linux kernel git clone https://github.com/andersson/qrtr Qualcomm Remote Filesystem Service Implementation git clone https://github.com/andersson/rmtfs Trivial File Transfer Protocol server over AF_QIPCRTR git clone https://github.com/andersson/tqftpserv Change-Id: Ic466af6fef010a9b71c90e38205f49a876b001e2 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>