Commit Graph

6471 Commits

Author SHA1 Message Date
Saurav Kumar c14116653c hal: Add change to fix speaker and headphone concurrency.
After the device switch from headset to the speaker, lag in playback
was observed.
The issue was seen because both the speaker and headphone was
configured using the native clock.
Add change to configure headphone to 48Khz sample rate before enabling
the use case on speaker.

Change-Id: I8ad1f2690e94a960f61fb7f36f49e8f6e5cace60
2020-10-22 17:17:21 +05:30
qctecmdr a334969383 Merge "hal: Add support for In-Car Communication usecase" 2020-10-12 10:10:29 -07:00
qctecmdr a45f55f465 Merge "hal: add voice stereo speaker(-protected) with vbat" 2020-10-12 10:10:29 -07:00
qctecmdr 75550e9e9f Merge "configs: correct the mixer path value for voip Low latency headphones" 2020-10-12 10:10:29 -07:00
qctecmdr ec1573ad1b Merge "config: Add legacy specific default/common audio policy conf file" 2020-10-12 10:10:29 -07:00
qctecmdr 38ff4d3b51 Merge "Revert "configs: lahaina: enable bcl feature by default"" 2020-10-12 10:10:29 -07:00
qctecmdr fa1e6e28c2 Merge "configs:sdm429: Add mixer ctl for Headphone and WSA combo" 2020-10-12 08:55:34 -07:00
qctecmdr 4967cdbb3f Merge "hal: fix trailing sound heard during a2dp codec switch" 2020-10-12 08:55:34 -07:00
qctecmdr 1621759c36 Merge "configs: allocate dedicated pcm node for in call recording" 2020-10-12 08:55:34 -07:00
qctecmdr c4e1553c91 Merge "configs: add default controls for sva handset/headset usecases" 2020-10-12 08:55:34 -07:00
Derek Chen a30a5f4ec9 hal: Add support for In-Car Communication usecase
* Add ICC library functionality in icc.c
* Add support in audio_extn to open and initialize icc library
* Add platform changes for device selection in ICC usecase
* Add support for sending ICC audio calibration/app type cfg

Suggested-by: Tahir Dawson <dawson@qti.qualcomm.com>
Change-Id: I26937da282fcdd31d59a54b180dca5d7740fbfb0
2020-10-08 18:45:33 -04:00
Vignesh Kulothungan d3a67a5c7e hal: add voice stereo speaker(-protected) with vbat
Add voice stereo speaker vbat and voice stereo speaker protected vbat.
Update "get output device" function to use stereo speakers for voice
call when vbat/bcl and voice stereo speaker are enabled.

Change-Id: I5b91f2c133e8d9d39b14d60c35f0df2eb1454e73
2020-10-08 09:14:14 -07:00
Vignesh Kulothungan b18a6d0e20 configs: add mixer paths for voice speaker vbat
Add device mixer paths for voice call using stereo
speaker protected(vbat).
Add audio route mixer paths for voice call using
speaker(stereo) vbat device.

Change-Id: I427b98e24931db38f3b7af3a6e8d0db22f637147
2020-10-07 22:14:24 -07:00
Deru Wang 4e47521a1c hal: fix the compile error due to undefined macros
compile errors due to undefined macros on other platforms

Change-Id: I21278ddcb7ac53aacb3b3643d9236486a76533e5
2020-10-07 09:24:56 -07:00
Revathi Uddaraju 711549dcc4 configs: correct the mixer path value for voip Low latency headphones
correct the mixer path value for voip Low latency headphones.

Change-Id: Id67078845f0eb51f3c958b7f53ad94db9b62b36f
2020-10-07 18:24:40 +05:30
qctecmdr 3758ddca4b Merge "configs: 8937: update supporting configuration for voip profile" 2020-10-07 01:50:03 -07:00
qctecmdr 9239c27198 Merge "configs: msm8937: add support for VoIP over audio path" 2020-10-07 01:50:03 -07:00
qctecmdr 414194b3a1 Merge "configs: lahaina: change dedicated SVA path to false" 2020-10-07 01:50:03 -07:00
qctecmdr c1512b7c30 Merge "configs: holi: enable sound trigger hidl hal 2.3" 2020-10-07 01:50:03 -07:00
Sujin Panicker 2ea62268d3 config: Add legacy specific default/common audio policy conf file
Legacy SPs(8953 & 8937) does not support split A2DP.
BT registers with AOSP A2DP HAL rather than with
vendor BT HAL as the common audio policy conf has only
support for split A2dp and a2dp module(for BT input).
Changes is to support vendor BT HAL and remove split A2DP
by localizing audio policy conf files for these targets
rather than using common audio policy conf file. Same
applies for USB Hal as well.

Remove unsupported mixport profiles from policy conf
for these SPs.

Change-Id: Iba83b88480e998fae0c246b5f176ec27d1834578
2020-10-07 11:39:03 +05:30
Zhou Song d01e7a2108 hal: fix trailing sound heard during a2dp codec switch
When a2dp reconfig comes for pcm offload usecase, path
can be disabled without switching to speaker, which
leads cached PCM data rendered out after switching to
new codec, so trailing sound can be heard first and then
followed with mute, and finally when unmute is issued,
the mute period can sound like a glitch.

Change-Id: I8dc4349d0cb334252f1f9bbb27713e71a0bc7fb3
2020-10-06 04:40:26 -07:00
Amarnath Vangala 973be51748 Revert "configs: lahaina: enable bcl feature by default"
This reverts commit 0312174f35.

Change-Id: Ibf00722c9a73749d3bb6a7ce13dde5ca8efe3e82
2020-10-06 14:19:27 +05:30
Harshal Ahire eed2727454 configs: add default controls for sva handset/headset usecases
Add default mixer controls for in soundtrigger mixer paths
make sure they are reset after audioserver restart.

Change-Id: I081fd8969c197fa8350021639218d537546b2cd8
2020-10-06 09:30:15 +05:30
qctecmdr fdf3b0180d Merge "configs: fix incorrect spv4 feedback channel" 2020-10-03 00:12:11 -07:00
qctecmdr ff02946fd4 Merge "configs: Adds detection event type id for SVA" 2020-10-03 00:12:11 -07:00
qctecmdr e0a98e4c8f Merge "configs: sdm660: Enable Stereo channel support for voip" 2020-10-03 00:12:11 -07:00
qctecmdr 92f46edc33 Merge "audio_hal_plugin: Add VOICE_ACTIVATION usecase for SVA enable" 2020-10-01 22:12:23 -07:00
qctecmdr 6999d5aa38 Merge "config: lahaina: update SPKR DMIC broadside config for Lahaina QRD device" 2020-10-01 22:12:23 -07:00
qctecmdr d31eca48cf Merge "config: Remove 2 instance support for "primary input"" 2020-10-01 22:12:23 -07:00
qctecmdr 0c73bcff2d Merge "hal: Enable dynamic logging in audio_ext." 2020-10-01 22:12:22 -07:00
qctecmdr 95fc5a6024 Merge "configs: Add built-in/Back mic and remove TelePhony Rx from primary input" 2020-10-01 22:12:22 -07:00
qctecmdr 78b4cb228d Merge "config: lahaina: add ftm config file for Lahaina HDK device" 2020-10-01 22:12:22 -07:00
Shalini Manjunatha 210da358c6 configs: allocate dedicated pcm node for in call recording
Allocate dedicated pcm node for in call recording, this can
avoid conflicting with generic audio recording for concurrent
recording scenarios

Change-Id: I1ec4e428d7962a19fc6d5168071dc81bbd7ea5ac
2020-10-01 01:07:11 -07:00
Harshal Ahire f754365e9c configs: holi: enable sound trigger hidl hal 2.3
Change-Id: I344ff0b81cfb3b07acc3d88f962e26d938ff6971
2020-09-30 15:04:18 +05:30
Lakshman Chaluvaraju 5dd6d1ae6c configs: 8937: update supporting configuration for voip profile
Update supporting sampling rate and channel configuration
for voip profile

Change-Id: I42112ec1445c5885448f1d7cbc71d9c27e4d144b
2020-09-30 00:20:46 -07:00
Lakshman Chaluvaraju 9fe4cc09a9 configs: msm8937: add support for VoIP over audio path
Add path entries for VOIP playback and record usecases
for internal and external codec variants.

Change-Id: I0557a03e7efaea043a2f9d33bbc639799c03e82a
2020-09-30 00:15:40 -07:00
qctecmdr f18eb0c720 Merge "configs: shima: Use TX3 SWR master port instead of TX2 in TMIC and QMIC recording" 2020-09-29 20:16:30 -07:00
qctecmdr 88f256d404 Merge "configs: lahaina: fix audio not heard over speaker for haptics" 2020-09-29 20:16:30 -07:00
qctecmdr 7229a21f12 Merge "configs: lahaina: enable bcl feature by default" 2020-09-29 20:16:30 -07:00
qctecmdr e4ad0148b9 Merge "configs: Modify ST EC REF to use QUIN TDM TX for Talos" 2020-09-29 20:16:30 -07:00
Anver sadhique 8e3de6877b configs:sdm429: Add mixer ctl for Headphone and WSA combo
-Add mixer control for WSA speaker and Headphone combo

Change-Id: I97507a35b1bdac2e1dba449dbe4e81da97541252
2020-09-29 17:02:58 +05:30
Xiaoyu Ye 492620a1ce configs: lahaina: change dedicated SVA path to false
The current soundwire digital MIC's configurations
require dedicated_sva_path to be set to false in
sound_trigger_platform_info.xml so that SVA TX
concurrency use cases can work normally.

Change-Id: I05cc8f8e68227b6670f75d2a31cc9b078771e205
2020-09-28 20:42:24 -07:00
Timothy Sham a103159f00 audio_hal_plugin: Add VOICE_ACTIVATION usecase for SVA enable
Add AUDIO_HAL_PLUGIN_USECASE_VOICE_ACTIVATION to usecase enum
to support SVA usecase enable and disable

Change-Id: If15d8eeb62756c7af3d43fdb7665573b63961e37
2020-09-28 00:54:05 -07:00
Susan Wang 92b47662a2 configs: Adds detection event type id for SVA
Adds to sound_trigger_platform_info the det_event_type_ids.

Change-Id: I5b9c22baa12d0b4a45bdddcde7db62d2e8e1ff4c
2020-09-28 00:47:14 -07:00
qctecmdr 643059a9c5 Merge "a2dp: fix race condition during a2dp suspend and reconfig" 2020-09-27 03:07:28 -07:00
qctecmdr 617e19b1f0 Merge "hal: New mixer xml for wcd938x on holi" 2020-09-27 03:07:28 -07:00
qctecmdr 00d9a5f18d Merge "config: lahaina: reduce 15DB for swr dmic lp mode" 2020-09-27 03:07:28 -07:00
qctecmdr 4da91c1c18 Merge "hal: Pick correct platform info for scuba IDP and QRD" 2020-09-27 03:07:28 -07:00
qctecmdr 7ad4c2e439 Merge "configs: update microphone assignment after tuning" 2020-09-27 03:07:28 -07:00
qctecmdr 4b1ea38366 Merge "hal: add lpi enable support for voice call" 2020-09-27 03:07:27 -07:00