summaryrefslogtreecommitdiff
path: root/hal
AgeCommit message (Collapse)Author
2019-04-09audio: hal: do not convert zoom value in audio haljustinweng
Bug: 125191693 Test: set parameters successfully Change-Id: Idcc0944fac882a0204fe2ac7f9210a6524c61a44 Signed-off-by: justinweng <justinweng@google.com>
2019-04-01Merge "qcom/audio/hal: add offset to MMAP output time"TreeHugger Robot
2019-03-28qcom/audio/hal: add offset to MMAP output timePhil Burk
Try to fix glitches on AAudio MMAP output on some devices. The DSP is returning a position/time pair that is too soon. Bug: 122680738 Test: Should see glitch.count = 0 when you run this test. Test: adb shell aaudio_loopback -tm -b999 -s20 -x -X Change-Id: I7bc9924a7aaa34d2e721365aa8ee0b69de5936f8
2019-03-28Merge "audio_hw: clean up mmap input delay"TreeHugger Robot
2019-03-28audio_hw: clean up mmap input delayPhil Burk
Set default offset to zero if no property used. Remove unneeded FIXME. Improve comments. Cleanup adding of offset. Bug: 122680738 Test: adb shell aaudio_loopback -tm -s20 Change-Id: Idd85f8978443e036ba4c5fb6440320a8578a74fd
2019-03-26Merge "audio: hal: support audio zoom interface for qdsp"Justin Weng
2019-03-24audio: hal: support audio zoom interface for qdspjustinweng
The interface parse audio zoom parameter and then send to QDSP via ACDB-LOADER Bug: 125191693 Test: set parameters successfully Change-Id: I7a1a74deb5d7dade7faa59c5ec8e2dc3e5648537 Signed-off-by: justinweng <justinweng@google.com>
2019-03-21hal: re-select input device after dropping callHW Lee
Bug: 124841974 Test: repro steps described in the bug Change-Id: I5d7dfe402bb98893ebefad92edcdf2ffa8ff2661 Signed-off-by: HW Lee <hwlee@google.com>
2019-03-18Refine the property that audio HAL uses to not select the new HALCheney Ni
Use single property to force disable the Bluetooth Audio HAL, the newer is the same with the Bluetooth stack and the audioserver. - persist.bluetooth.bluetooth_audio_hal.disabled Bug: 128825244 Test: check audioserver / audio HAL and the Bluetooth stack can work Change-Id: I8d963a3ed90dea4825d8e1cf44e6357c72618673
2019-03-08Merge "audio: correct setting sequence"Jasmine Cha
2019-03-06Merge "audio: remove soft mute to avoid muting unexpected sound"TreeHugger Robot
2019-03-06audio: correct setting sequenceJasmine Cha
Persist audio calibration delta data should be set before sending audio calibration. Bug: 127239681 Test: two scenarios - LR swap real time, LR swap offline - preset change real time, preset change offline scenario#1 1. playback and set preset with low volume 2. reboot or kill audioserver 3. playback again and current preset is loud setting scenario#2 1. playback and set loud or low volume preset 2. pause and standby thread 3. change volume to different preset setting (ex. low -> loud or loud -> low) 4. resume playback and current preset is incorrect. Change-Id: Idca3c617d03056b770dbfe8f4b9ab3080e200113 Signed-off-by: Jasmine Cha <chajasmine@google.com>
2019-03-05audio: remove soft mute to avoid muting unexpected soundJasmine Cha
- remove soft mute - add debug log to monitor stream volume Bug: 124836757 Test: manual test Change-Id: I54c8b76525d2c2b44f131d7f4f9ea9e08308e429 Signed-off-by: Jasmine Cha <chajasmine@google.com>
2019-02-27Reland BluetoothAudio HAL: flip to be enabled by defaultCheney Ni
Check property to know whether BluetoothAudio is disabled or not, and use old bthost_ipc when disabled. Bug: 126304229 Test: Switch BluetoothAudio HAL and A2DP offload manully (cherry picked from commit 409f07c01620b69aed09b993273242b37642d1e0) Change-Id: I96dcd64ff26a4d95dc55389f6db16c12d32b3280
2019-02-27Merge "qcom/audio/hal: add offset to MMAP time"Eric Laurent
2019-02-27Revert "BluetoothAudio HAL: flip to be enabled by default"Hansong Zhang
This reverts commit 409f07c01620b69aed09b993273242b37642d1e0. Reason for revert: Broke test Change-Id: I3d8ca90767a708807f649f17d4cb8fca95bc10cb
2019-02-26qcom/audio/hal: add offset to MMAP timePhil Burk
Try to fix glitches on AAudio MMAP input on some devices. The DSP is returning a position/time pair that is too soon. Bug: 122680738 Test: Should see glitch.count = 0 when you run this test. Test: adb shell aaudio_loopback -tm -s20 Change-Id: Ib4c5b773702923ef76da124a5c6f4773e004ed7e
2019-02-26BluetoothAudio HAL: flip to be enabled by defaultCheney Ni
Check property to know whether BluetoothAudio is disabled or not, and use old bthost_ipc when disabled. Bug: 126304229 Test: Switch BluetoothAudio HAL and A2DP offload manully Change-Id: I0edc7edc69a18d8df550335b4649c06c5b95a281
2019-02-20Merge changes from topic "audio stat"Andy Hung
* changes: Add startup time from idle statistics Track alsa buffer underruns
2019-02-19Add startup time from idle statisticsAndy Hung
Test: audioflinger dumpsys Bug: 124765214 Change-Id: I443f18fc80595810cf10d990a237139f8d35241c
2019-02-19Track alsa buffer underrunsAndy Hung
Test: audioflinger dumpsys with instrumented sleeps Bug: 124764221 Change-Id: I43e21c03320ec598d970914d4569e404878a7894
2019-02-18audio: support custom acdb for external deviceCarter Hsu
add the specific external device setting in audio_platform_info.xml For example: <external_specific_dev> <ext_device name="SND_DEVICE_OUT_USB_HEADSET" usbid="18d1:5034" acdb_id="10" /> </external_specific_dev> Bug: 117336751 Test: manual test ok Change-Id: Ie9abcadd9bcd6d06c5d8f0a9807c3935ee4a1d35 Signed-off-by: Carter Hsu <carterhsu@google.com> Signed-off-by: Robert Lee <lerobert@google.com>
2019-02-18Merge "A2DP Offload HAL v2.0 support"TreeHugger Robot
2019-02-15Merge changes from topic "enhance_hearing_aid"Stanley Tng
* changes: audio: use SinkMetaData to route voice call with hearing aid. audio: Enhance latency and tuning in voice call with hearing aid
2019-02-15A2DP Offload HAL v2.0 supportSunny Kapdi
Bug: 119490165 Change-Id: I8651a6b322b88fe38900c663eb7c7ad55a4ba517
2019-02-15audio: use SinkMetaData to route voice call with hearing aid.juyuchen
Bug: 121173695 Test: manual audio test Change-Id: Ib8c0d4f9fdd637e0daa73ca76526d1802ad944d2
2019-02-14audio: Enhance latency and tuning in voice call with hearing aidjuyuchen
1. Reduce microphone latency in voice call 2. Use specific acdb tuning Bug: 120869034 Test: manual audio test Change-Id: Ifabd1ce2cce5bb4285cc33cd792070c0c3b20f1a Signed-off-by: juyuchen <juyuchen@google.com>
2019-02-08hal: Add support for haptics audio usecaseVignesh Kulothungan
Add support to create haptics and audio pcm streams for haptic audio usecase. Separate haptic and audio data from audio buffer and write it to respective pcm streams. Bug: 112439981 Test: make Change-Id: Id59179461edf695fd4794c51426e6fcae6c2e8dc
2019-01-29switch sm8150 to msmnileCyan_Hsieh
Bug: 123059966 Change-Id: I37b9461240551037812b35d96d0b2db5e30bae5f
2019-01-19hal: Add libprocessgroup dependency to set_sched_policy usersSuren Baghdasaryan
Add libprocessgroup dependency to audio hal that uses set_sched_policy. Include sched_policy_ctrl.h header which now contains set_sched_policy definition. Exempt-From-Owner-Approval: janitorial Bug: 111307099 Test: builds, boots Change-Id: I8286daed7065c405ca06e87c1b8f6f6c301dc388 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-01-17Merge "Adding Audio HAL V5: Direction API"Paul Mclean
2019-01-11audio: MAXXAUDIO supports orientationjustinweng
Add function to supports orientation audio setting Bug: 122332770 Test: playback and rotate device Change-Id: I3ce40ce6b2f9658353f6cf18cf3d5993b1683159 Signed-off-by: justinweng <justinweng@google.com>
2019-01-07Merge "hal sndmonitor: add support monitor sm8150 sound card"Robert Lee
2018-12-27hal sndmonitor: add support monitor sm8150 sound cardRobert Lee
Bug: 122050238 Test: manual test adsp ssr ok Change-Id: I2ce84f3ec7640738360ac9ab1bc58f2a33d03581 Signed-off-by: Robert Lee <lerobert@google.com>
2018-12-24audio: restrict the force route conditionCarter Hsu
select_devices should only force route the capture usecase(s) with snd_device that shares the same backend with current usecase. For example, the "voice-call afe-proxy" doesn't need to force route the device of audio-record to be "voice-rx". Bug: 113700667 Test: manual Change-Id: I144c9b8e201b2331064cac62367b2839ceec9c9a Signed-off-by: Carter Hsu <carterhsu@google.com>
2018-12-21Merge "hal: Add dynamic enablement of AEC/NS for VoIP"Carter Hsu
2018-12-20Adding Audio HAL V5: Direction APIPaul McLean
Bug: 119137468 Test: With testbed app Change-Id: I74263e8b638b3ddc7020d6510a9408b8a455ff07
2018-12-18Merge "audio: enable waves effect on usb headset"Robert Lee
2018-12-17hal: Add dynamic enablement of AEC/NS for VoIPVignesh Kulothungan
Add capability to dynamically enable or disable AEC/NS audio effects on DSP for a VoIP call. Bug: 70805651 Test: manual Change-Id: I16f1f6664b39afaedfca92afbc87002685f6e369
2018-12-14audio HAL: support multiple active input streamsEric Laurent
Implement support for more than one active input streams. New implementation is limited to one active stream per capture use case as there is one PCM ALSA device per front end and use case. Note that the number of active sound trigger sessions is limited by the soundtrigger implementation, not the number of PCM ALSA devices. We do not enforce a max number of open streams per use case as this is done by the audio_polcy_configuration file. Bug: 111438757 Test: manual audio smoke tests for capture. Change-Id: I1a372bca154d1ee034526f2b6b3ddeeae93a71f2
2018-12-14audio: enable waves effect on usb headsetRobert Lee
Enable waves effect on usb headset. Use usbid to recognize specific usb headset. Apply lr_swap only on speaker path. Bug: 119649124 Test: manual test waves effect on usb-headset ok Change-Id: I599e751d9a670f3144d858d550621ae1b6e4e26b Signed-off-by: Robert Lee <lerobert@google.com>
2018-12-12audio: fix potential messy offload state.juyuchen
Bug: 119035383 Test: manual audio test Change-Id: Ie87e1fa330bb7904fde2c429db5392ab24001510 Signed-off-by: juyuchen <juyuchen@google.com>
2018-12-11audio: fix memory corruption.juyuchen
Race condition: There is a race condition between audio primary hal thread and soundtrigger hal thread when they want to get snd_card number. Memory leakage: my_data.kvpairs in platforom_info_init function doesn't be destroyed when use str_parms_create(). Bug: 119328981 Test: manual audio test Change-Id: Ib86b3cf986a7213007bf9f073ef714a02b28a111 Signed-off-by: juyuchen <juyuchen@google.com>
2018-11-29audio: correct ACDB configration structurejustinweng
ACDB configration structure is different from SDM845 and before. Correct it for SM8150. Bug: 113308178 Test: send ACDB parameter successfully Change-Id: Ia3cf3d7d2b98c6386f5600b8ecb251476b70d590 Signed-off-by: justinweng <justinweng@google.com>
2018-11-09audio: select camcorder snd device according to camera orientation am: ↵Eric Laurent
5f4ca9505d am: 8cf22e49ee Change-Id: I5823f2cd393c34cc35faefb1aedf67813dcd833d
2018-11-09audio: enable 24bits camcorder am: be5c67e731juyuchen
am: 100497f6ac Change-Id: If68ea7dc5c71482557a6bc2cf4e178b017e4bd7c
2018-11-06audio: select camcorder snd device according to camera orientationEric Laurent
Add audio parameter indicating use of front or back camera to select proper input path tuning in camcorder mode. Also take device orientation for stereo channel swaping. Bug: 118022272 Test: verified with camera service patch sending camera facing parameter Change-Id: If24b47d922aeedaaa144f4a5f4cacddce2c9eeaf
2018-11-05audio: update maxx new API (1.281.0.0)Jasmine Cha
- update new API for libmaxxaudioqdsp with version 1.281.0.0 - adding soft mute to avoid click while turn on/off bass effect Bug: 117506164 Bug: 116183049 Test: preset/LR swap/LR mix/ maunal audio test Change-Id: I39f9f157232963f3d5f37572e2d1878aea23fb50 Signed-off-by: Jasmine Cha <chajasmine@google.com>
2018-10-31Merge "Mute RX device according to volume in set_voice_volume"Nadav Bar
2018-10-29Add USB input channel index masksAndy Hung
Test: Attach various multichannel USB devices, check audio policy dumpsys Bug: 74110332 Change-Id: I9a2d8ab235efcebc129a060d2ee6d6519d5e53dd