summaryrefslogtreecommitdiff
path: root/audio
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-09-14db845c: audio_hal: Select the output/input card a bit more dynamicallyJohn Stultz
This patch changes the output/input card selection from being hard-coded to chosen at runtime. The selection process is a bit "simple" in that it will try each card in order and pick the first available. Eventually, we probably need a fancier HAL to handle more dynamic audio configs (without colliding with the in-framework usb headset handling, for instance). It would be nicer to actually check the /sys/class/sound/card*/id values and be able to have a preferred name that is selected, but I figured this was a start. With this patch, adding a usb web cam (which reorders the card numbers) no longer breaks HDMI audio output. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I9504a1c50da09dfed116c32247fc79255ae5646e
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
2021-02-11audio: Clean up missing memory free's when opening devices/streamsAlden DSouza
Signed-off-by: Alden DSouza <aldend@google.com> Change-Id: Iae726f0818464fc09d809120cbba1eb8b109e031
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-06-05db845c: Revert "audio: Set analog port as default audio out"John Stultz
This reverts commit 1641199f230d7926891a9c6a9d09b6c9b8f411db. This sets the default audio device back to HDMI Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I44fdecfbcf3e189ddd97f8f95dfa69968fcfc8ac
2020-04-25audio: Set analog port as default audio outAmit Pundir
For db845c, set Analog stereo speakers port as default audio out since HDMI audio out is WIP. "PCM_DEVICE 0" corresponds to HDMI audio out (WIP). "PCM_DEVICE 1" is 8 Ohm Analog speakers. Change-Id: I818fe380ab0f4094f7364aa4357045b1927dc56b Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2020-04-01audio: Copy generic HAL and bt-audio configs from CuttlefishAmit Pundir
Existing HAL copied from goldfish days seem to be obsolete and didn't work as expected with both analog speakers (WIP) and BT audio profiles. So copied generic audio HAL from Cuttlefish and verified BT and analog audio playback. Change-Id: Ib7fbea1c02240663e3406865f3a21544b1aec793 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2019-09-24db845c: Add support for AOSP on dragonboard db845cAmit Pundir
Boots dragonboard db845c to console. HDMI display broken due to missing firmware files. Change-Id: I820aeb7b7ab2536a362f9ae37cc44906be0a6190 Signed-off-by: Amit Pundir <amit.pundir@linaro.org>