summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-20mm-audio: Fix missing headersHEADsugisawa-8150alk3pInjection
Change-Id: Idddb10f4ea515379d9b866aeb43aa2534419301f
2022-01-20mm-audio: Kill redundant omx-testsalk3pInjection
This reverts commit 83382efdec0987d5262c7d3df65f1795b3483254. Change-Id: I87706777e58e1c027b1df9a52f6275d20435bc7a
2022-01-19Revert "audio: Use direct project pathmap"alk3pInjection
This reverts commit 232eb824d33a0cb1b5d2f83d4238d4dd0b009f69. Change-Id: I92a4e6fd19435d95698658d4559470096d7a6466
2022-01-13configs: msmnile: Do not enable dlkm by defaultalk3pInjection
Change-Id: I5c816006dfe87b4331768426b3d9adc4e254444f
2022-01-08ssr: Fix building with OSS materialsRicardo Cerqueira
Change-Id: I466816af5e1258f61401edf3eaf37ed7a862292e
2021-12-06Specify version for aidl_interface explicitlyJeongik Cha
Bug: 150578172 Test: m Change-Id: I9714cd4416fe0ce23e57cd7db162bfb45b0f84d5
2021-12-06Remove log spam when placing power hint callWei Wang
Bug: 154338876 Test: build Change-Id: I93b858a1991b18e281ca488351d2526d5f5dd4d8
2021-12-06Probe PowerHAL HIDL firstWei Wang
Right now AIDL doesn't provide an API for vendor code to query if the AIDL HAL declared. This will lead to 1) long blocking call for device doesn't have the AIDL HAL and also 2) potential problem if the service starts late after 5s timeout. This is a workaround for addressing 1) on devices having HIDL, but still affects device that doesn't have HIDL service. Bug: 149797408 Test: build Change-Id: I60aada1ab1a044db965987bca5f6eee5b6262b20
2021-12-06Support Power HAL AIDL serviceWei Wang
Bug: 148798433 Test: Build Change-Id: Ie14d90bf17faad68beb16a9916e2fab9627b1eb4
2021-12-06audio: Drop LOCAL_COPY_HEADERS usagePig
LOCAL_COPY_HEADERS is deprecated, so remove all its usages to avoid build warnings. Change-Id: I4c52508e9109c5f448653fd5613a8991d28bbb2e
2021-12-06audio: adsprpcd: Drop dependency on proprietary headers and fix build errorsLuK1337
Change-Id: Ibbcd009333337cd41f2e6bf70391914b75f8a3ba
2021-12-06hal: Support the audio amplifier hookDaniel Hillenbrand
* Original legacy HAL commit: Ib236598a5888b2af19bcfb81e285f644a0e84c0d * Example: http://review.cyanogenmod.org/38221 (cyanogen: Refactored to be an audio_extn) Change-Id: Ic944a9f7059c78b79322dae9c787cdd8bb029cff audio: add amplifier stream start/standby operations Change-Id: I5de7ad7a0467e7cf822c9c0870a755c03d05e884 hal: Convert libaudioamp to audio_amplifier HAL Change-Id: I1d0f63a46989d1792d7a5e08d2bdb6344ebafa31 hal: Notify amplifier of device enable/disable Change-Id: Ice808c9b55a9e3bc8bafe5ca3ff555377d38dd8f hal: enable amplifier earlier Change-Id: Id876e8f836e3ce1ee5f8186ca9c0e6ef5f37182c hal: only open the amplifier once Change-Id: Ie9bbff74123e90b71e95809a84dcb3bbe9ba82fe hal: notify amplifier of parameter changes Change-Id: Iecc020c0347ae7c43d27183186e06dcefef7a0dd hal: Clean up audio amplifier usage * Externalize it into an extension file similar to the rest. Change-Id: I03de7efa9bab8870099028170fa471dfffe1ce84 audio: add amplifier hooks for stream parameter manipulation hal: Use log/log.h instead of cutils/log.h Change-Id: I6e52524cc650eea234fbcf64ed17104dd8a3f001 [Pig]: Clang-format audio_amplifier: Add new hook for setting amp feedback Change-Id: I6de5e9c9dbbb6214b166f30628734aeb406c8a2a Change-Id: I16a76475cb58a710d229648d77024379bfc499d5
2021-12-06hal: Add missing includesAtman
* pthread.h include was missing so we add it. * Fixes compilation with BOARD_VNDK_VERSION. Change-Id: I297a0fc0cf4763b3550e1a8d37f2653b77b6e3a8
2021-12-06audio_extn: Allow skipping compilation of audio HAL extensionsBruno Martins
In case a device uses a prebuilt HAL it is rather likely that the extensions must match it. Change-Id: I0cb05030c9c7619513810362960a2e2a3306b3aa
2021-12-06audio: Skip libhdmipassthru on OSS buildsBruno Martins
Change-Id: I23e25aa8e6ae63fcb40a0a1bd3bc68565527d176
2021-12-06audio: Use direct project pathmapEthan Chen
Change-Id: If6d270bd92b42df1cdc9719774da768039054753
2021-11-02Merge b545d0cf648e1e1c9bce9fc7fa8632a11214466d on remote branchLinux Build Service Account
Change-Id: I9ddf9e699f75b61ec39433aae669a91b1396725a
2021-09-21audio_hal : remove voice call type from sco stream in checkAnver sadhique
During voice call, device switch from speaker to bt a2dp we are seeing crash in audio_hal due to invalid addrress passed to is_sco_in_device_type which cause voice call failed in bt a2dp. All voice call usecase routing request made based on stream output device, input device does not play any role hence removing voice call check from sco stream in check. Change-Id: Icaa71c8e461f26c913c0c637504824b848d87e95
2021-08-30audio_hal : examine SCO device in the stream list before routing to SCOAnver sadhique
when BT_SCO=ON arrive we are routing all usecase to SCO device but sometime SCO device not updated to stream list,so again device switched to previous device. To avoid that we check SCO device availability in the stream list then routing to SCO. Change-Id: I599e07b56527f0e087bb59254b16fcc9ca278520
2021-08-23Merge af30f0103a50df510a71a12047b5c68b4e3b8a72 on remote branchLinux Build Service Account
Change-Id: I49fe6a129867d3935776ae8398f95f01d9f465da
2021-08-04hal: Fix CFI errorsSujin Panicker
CFI check is failing due to difference in function signature during CVE-2019-10581 POC test. Fix the issue by matching the function signature in header file and function pointer type. Change-Id: I92ccb0871b09f5757195844984519d51367ed35f
2021-07-29Merge a540c9909548251cf6a5bd8cbe78027f7e9f1d2d on remote branchLinux Build Service Account
Change-Id: I01622ee2912d5dc611a8854337689aeffcd11466
2021-07-22configs: holi: change pcm id for afe proxy record-2Zhou Song
Change the pcm id of afe proxy record-2 to match the same in driver. Change-Id: I9b21d71b7231405cd04b19d7e8bb66f0ad861a08
2021-07-12Merge "hal: typecasting variable to avoid multiplication overflow error"qctecmdr
2021-07-11configs: New attribute in sound trigger xml to know support for second stage ↵Shalini Manjunatha
detection -> Introducing new attribute to know if second stage detection supported on given target -> By default it is supported on all targets -> Define only on those targets with value false where no support Change-Id: I1df2bc6bc7cb8e2f26077fbc1905fcc96978fa23
2021-07-11hal: typecasting variable to avoid multiplication overflow errorShalini Manjunatha
-> typecasting variable in order to avoid mul overflow leading to SIGABORT Change-Id: I58ccdd55908f4844d5228d1723f86bf569cbd4aa
2021-07-07a2dp : pcm prepare fail for input during a2dp suspend and reconfigLakshman Chaluvaraju
Start input is failing due to race condition in a2dp suspend and a2dp connection/disconnection. If a2dp suspend params are and then a2dp disconnection comes, reseting the suspended flag can cause a2dp_is_ready function return invalid value during start input and hence pcm prepare fails. Avoid setting a2dp suspend state to false if sco is still on. Change-Id: I83950ddd0d4d3bbe6f30846cba48f6eb88c14690
2021-06-27Merge 2cc132a765140dd64412d9f6578a449322e0dfc5 on remote branchLinux Build Service Account
Change-Id: I644654fca5ff49cf8cf35e908302df4afdaedd52
2021-06-16Merge "hal: Select same Tx device as voice call for VA after device switch."qctecmdr
2021-06-08Merge "configs : sdm845 : adding closing tag for mixport"qctecmdr
2021-05-31configs : sdm845 : adding closing tag for mixportAnver sadhique
adding missed closing tag for mixport to avoid xml parser error. Change-Id: I441bb563e7add06c86e85c975c81dc9303046a45
2021-05-16Hal: add voice call usecase to re-select device when SCO ON arrived.Mingshu Pang
Sometimes routing to bt-sco failed since of the connection status when setting force use to SCO, but then BT_SCO ON msg arrived, voice call can't be rerouted. Add voice call usecase to re-select device when SCO ON arrived to avoid voice call can't route to right device when SCO state changed. Change-Id: I1d090bd339817b5248e5d740d9b2956f0c9553e1
2021-04-24Merge b6dcb0dd1d450c90adafaa286b3db8b11f034cc4 on remote branchLinux Build Service Account
Change-Id: I06c82384ea6896dbbf21b92ed52edd83585bc52a
2021-03-22Merge 9eaecc7ff86ea4d522cf14790185f78bd32d729b on remote branchLinux Build Service Account
Change-Id: I611b378cf930bc3b5a00d563651b48c8af18bf0d
2021-03-10configs: sdm450: add support for VoIP over audio pathLakshman Chaluvaraju
Add path entries for VOIP playback and record usecases for internal and external codec variants. Change-Id: I2f25bc6b53336398cfa5b23de05f7dba0920d2af
2021-03-02configs : sdm845 :enable incall music and add incall music profileAnver sadhique
add incall music profile in audio policy configuration to provide incall music support from APM Change-Id: I1e6144eae5e1bb56c61da14eed83015223346e89
2021-02-24configs : add usb_surround_sound input profile for usb captureAnver sadhique
Use usb_surround_sound input profile for usb capture to avoid scenario of re-using an already opened input session during concurrent capture. Otherwise for second capture which does not support hifi-reocrd and use case can fail. Change-Id: Ic02a25e2643c1d8c008dee4c63cbcd8c4cb8eb4c
2021-02-22Merge 88bb65c9b6f7a96d035985d6f435d9ae3e936cb4 on remote branchLinux Build Service Account
Change-Id: I70b76397a2e2017048a4eaa060bf0a522123460e
2021-02-08audio-hal: fix a2dp mute issueLakshman Chaluvaraju
Playback usecase on a2dp path is muting if its enabled while usecase on bt sco mic is still active. To fix this, avoid enabling record usecase on SCO device when A2DP device is in ready state. Change-Id: Id6d926096fd35a1f0d3b60b3f10dc8c39f2cb225
2021-02-04Merge "hal: sampling rate mismatch during a2dp+spk combo usecase."qctecmdr
2021-02-02hal: sampling rate mismatch during a2dp+spk combo usecase.Lakshman Chaluvaraju
During a2dp+spk combo usecase, a2dp device is assigned with sampling rate of speaker though requested sampling rate of a2dp was different. Fix this by moving assignment of speaker sampling rate after the condition of a2dp+spk combo was validated. Change-Id: Iae02657bea51807191d864964865465e558b919d
2021-02-02hal: route use cases properly to SCO device when it arrivesShalini Manjunatha
When ever BT_SCO=ON arrives, make sure to route all use cases to SCO device, otherwise due to delay in BT_SCO=ON and lack of synchronization for create audio patch request for SCO device, some times use case not routed properly to SCO device during VOIP call Change-Id: I360d195858c26ace18e92fc0975ff3108ba866e4
2021-01-28hal: Select same Tx device as voice call for VA after device switch.Kamalakar Yalasiri
Enable Voice activation and Voice call over BT sco, Select same TX Device for both Voice call and VA usecases after switching from BT to other devices. Change-Id: I839c2ecf8a2b6919b767e00a70db645b9094ef35
2021-01-27hal: don't mute stream with combo device during a2dpsuspendedZhou Song
For active usecases on combo device, stream should still be audible on the non-a2dp device, so don't mute stream if it has combo device. Change-Id: Ib03dd7761d4e972233c633850bb480119ad6b503
2021-01-27hal: switch to current active device when a2dp suspendedZhou Song
When SCO profile is disabled, during voice call, device can be switched to handset first and followed with a2dpsuspended param, device will be switched to speaker and if it shares backend with handset, voice call can be eventually switched to speaker which is unexpected. Check if there's any other active usecase and switch to the same one during check_a2dp_restore. Change-Id: I2cabccffc5d2601362a5da16b9793c218a009822
2021-01-24Merge 8b0868f1df77b9feba1aa8a2b24a003c919d7608 on remote branchLinux Build Service Account
Change-Id: I8fa355478963954f1e93ff00985ade00a592b3e7
2021-01-21AHAL: raise the priority for configuration of voip usecaseMingshu Pang
It's not really necessary to configure voip call to fast track though app sets fast flag. As AOSP design, fast track applies to recoder apps, not voip apps. In general, fast recorder app can pause and resume by itself, but fast track will be invalidated continually if the voip app kept IDLE state(in the background), it goes into an infinite loop "invalidate->restore->invalidate", if it reaches the maximum retry time, it will quit the thread permanently. Raise the priority for configuration of voip usecase to make apps of voip type select voip path. Change-Id: I32471aa4adb4e306088930591309618529ced291
2021-01-12Merge "hal: re-route VOIP TX path for enabling correct VOIP EC port"qctecmdr
2021-01-11hal: re-route VOIP TX path for enabling correct VOIP EC portShalini Manjunatha
If VOIP TX path is enabled before RX path when connecting headset or other device, it will enable echo-reference-voip with default port, because out device hasn't been enabled and won't be corrected. Re-route VOIP TX path for enabling echo-reference-voip with correct port Change-Id: Iad1270a98f9b16a60f2a79f3be3651e11c48fa79
2020-12-29hal: deadlock with pause and SSR for compressed offloadGautam Manam
For compress offload playback, during SSR offline callback will hold out and latch lock and set offload state to idle and wait on compress offload thread state to be marked as unblocked. In the mean time pause is triggered and it acquires out lock and waits for out_latch lock. And in another thread compress_wait completes and wait for out lock causing dead lock. Fix this by moving latch lock to protect only offload_state, so that latch lock can be released. Change-Id: Iec42eaf6c18477b4f87bb5bafe54fb346c7af73b