Commit Graph

4595 Commits

Author SHA1 Message Date
Quinn Male b97aaaca58 configs: kona: Add ACDB device for headset SVA support
Add APE headset mic ACDB device to platform xml.

Change-Id: Ifb07023d437192a4e2c5cc8dc4bd12b0f3601c54
2019-02-26 11:09:32 -08:00
Xiaoyu Ye ee5139cfca hal: kona: update soundtrigger mixer paths and platform info
VA macro is used for soundtrigger use cases on Kona.
Add mixer paths for corresponding use cases.
Update ACDB devices and add LPI enable flag to platform info.

Change-Id: I01bf93bf505fee4443ca4f40388d4831a74151a0
2019-02-26 10:50:59 -08:00
Naresh Tanniru 4ab871b237 configs: Disabled custom policy
- Disable audio policymanager to fix
  compilation issues due to AOSP refresh

Change-Id: I47de0341f13524a7cef141f550c4ef2cc1a9c043
2019-02-25 03:18:40 -08:00
Linux Build Service Account 41c30f7ab1 Merge "hal: spk_prot: add custom support to trigger v-validation" 2019-02-23 16:30:44 -08:00
Linux Build Service Account 5338a0c657 Merge "configs: kona: Fix build error for a new SP" 2019-02-22 01:32:51 -08:00
Linux Build Service Account c0f32e1d81 Merge "qahw_api: increase sleep duration for 5sec to optimize power" 2019-02-21 21:05:24 -08:00
Linux Build Service Account 6c113a90b8 Merge "hal: Do not delete DEVICE_CONNECT and DISCONNECT params" 2019-02-21 21:05:23 -08:00
Aalique Grahame 9164219af3 configs: kona: Fix build error for a new SP
Temporarily disable custom audio policy

CRs-Fixed: 2396341
Change-Id: I332dc532d759cc304c868db7bd9811bc63fa25f3
2019-02-21 17:16:31 -08:00
Laxminath Kasam a9fe590c76 hal: spk_prot: add custom support to trigger v-validation
For v-validation thread can be invoked as part
of set param call.
Two setparams are required to be set :
    1. "fbsp_v_vali_wait_time=xxx;fbsp_v_vali_vali_time=xxx;"
       - to config v-vali params wait time(100 to 1000ms),
         validation time (1000 to 3000ms).
    2. "trigger_v_vali" to true - to start v-validation

Change-Id: I16ccc132242a21948beeceb0382c15ef88c0b431
2019-02-21 16:50:37 +05:30
Surendar Karka 809f69e677 qahw_api: increase sleep duration for 5sec to optimize power
- Close socket fd to fix test app hang issue and increase the poll
  time from 5msec to forever.
- Increase the sleep duration to 5sec to optimize power.

Change-Id: Ia3ce0121547d65617b52496b7cb6e37ef05c6ce3
2019-02-20 21:41:48 -08:00
Linux Build Service Account 4323029d51 Merge "config: Add a feature flag for QSSI compliance" 2019-02-20 06:05:06 -08:00
Linux Build Service Account 7ef4a40ff4 Merge "configs: trinket: Change ACDB ID of speaker to mono" 2019-02-20 06:05:04 -08:00
Linux Build Service Account 810a90312b Merge "hal: remove multiple offload flag in hw ext plugin" 2019-02-20 06:05:03 -08:00
Linux Build Service Account 2f30f637fc Merge "hal: retry all of un-detected sound card" 2019-02-20 04:56:07 -08:00
Laxminath Kasam c92f5c20ef hal: spk_prot: add custom support to trigger initial cal
For initial calibration thread can be invoked as part
of set param call instead of setting up at bootup.
Providing setprop option to choose whether bootup static way
or custom way to trigger calibration.
Two setparams are provided now :
1. "trigger_spkr_cal" - to start initial calibration process dynamically.
2. "apply_spkr_cal" - for every reboot, to apply initial cal from CALIB FILE.

Change-Id: I6e529d9b73f11ddfc165af4b2d30a24e927096ea
2019-02-20 17:45:18 +05:30
Linux Build Service Account 819c0a82fb Merge "hal: Fix NULL pointer dereference in get acdb snd card name" 2019-02-20 02:06:09 -08:00
Linux Build Service Account 0f683830f0 Merge "hal: sndmonitor: Add support for trinket sound card in sndmonitor" 2019-02-20 02:06:09 -08:00
Linux Build Service Account 1cf83734da Merge "hal: Enable stereo speaker config in trinket" 2019-02-20 02:06:07 -08:00
Linux Build Service Account dd53050258 Merge "hal: Add support for trinket soundcard" 2019-02-20 00:07:10 -08:00
Linux Build Service Account b45319837b Merge "configs: mixer path changes for ADSP SVA" 2019-02-20 00:07:06 -08:00
Aditya Bavanari 6e4faec888 hal: Fix NULL pointer dereference in get acdb snd card name
When mixer_get_name returns NULL, acdb snd card name
might be NULL leading to NULL pointer dereference. Fix
this by adding a NULL check for sound card name.

CRs-Fixed: 2390227
Change-Id: I53f83cc8277e1c0e35cb528993b6dd153139be10
2019-02-19 17:28:32 +05:30
Samyak Jain 83f00580ec configs: mixer path changes for ADSP SVA
Mixer path changes for ADSP SVA for trinket tasha codec.

Change-Id: Id8671cd83532978800a9004ff0ff47ac911261b0
2019-02-19 14:51:00 +05:30
Samyak Jain 271b2fb468 config: Add a feature flag for QSSI compliance
Add a feature flag for QSSI compliance.

Change-Id: I226e793ecc760f3052dcab59081455de307e389b
2019-02-19 00:58:20 -08:00
Aditya Bavanari c63a479ea3 hal: sndmonitor: Add support for trinket sound card in sndmonitor
Add support for trinket sound card variants in sndmonitor
to enable SSR and PDR in trinket target.

Change-Id: I4691c76362b626a2295727bb6b050fcfeaec791b
2019-02-19 14:17:35 +05:30
mpang faa7bae164 hal: retry all of un-detected sound card
In corner case, card 0 and card1 just were
registered successfully between validation
of card 0 and card 1,so card 1 was found
first, but card 0 will be bypassed forever
with current retry method.

Retry all un-detected sound card to avoid
the issue in such corner case.

CRs-Fixed: 2381078
Change-Id: I47211afec5559a25ccddfdfb1199549d8231d566
2019-02-19 00:00:00 -08:00
Aditya Bavanari 4875a261c9 hal: Modify logic to get acdb snd card name
If sound card name has tashalite or tasha9326
as substring in it, use tasha sound card name
to pick ACDB files.

Change-Id: I3318775696559eda54fa8c33a5d11651f167c2d7
2019-02-18 23:52:32 -08:00
Tanya Dixit 299ed546fe hal: Enable stereo speaker config in trinket
Enable stereo speaker config for tasha, tashalite
and tavil variants in trinket.

Change-Id: I4c4bd06efa5fa85273e3be62b4b66f0fe94d7696
2019-02-18 23:52:04 -08:00
Aditya Bavanari 3c8e3575bd hal: Add support for trinket soundcard
Add soundcard support for multiple variants
of trinket target.

Change-Id: Ic95986c2bbaa6be718c3f2ad55d3e775a09b9be7
2019-02-18 23:51:23 -08:00
Aditya Bavanari fa5ddb2579 configs: trinket: Change ACDB ID of speaker to mono
Change the ACDB ID of speaker to mono as trinket
internal codec variant supports only one speaker.

Change-Id: I8b1d59fe1df2ccc233c02242070acd66ccac591c
2019-02-19 12:55:36 +05:30
Aditya Bavanari a8a60b3255 configs: trinket: Update Tx DEC volume to 102
Update Tx DEC volume for all decimators to 102 from 84
in order to accommodate for the mic sensitivity and
tuning parameters.

CRs-Fixed: 2397002
Change-Id: Iaf627dc471d5dde02d1610cac948defbcae01b8e
2019-02-19 12:53:35 +05:30
Tanya Dixit 82e3751929 configs: trinket: Config changes on trinket
Config file changes for speaker protection and
handset gain on trinket. Add sound trigger
mixer paths for trinket tasha variant.

Change-Id: Id55a04f23e81693ee003d82ffa3323eb328606f3
2019-02-18 23:17:36 -08:00
Aditya Bavanari 7ae4a45bf9 configs: trinket: Add mixer paths for tasha variants
Add mixer paths for tasha and tashalite variants of
trinket target.

CRs-Fixed: 2378972
Change-Id: Idd023f947deb1c5678262007e028dc5eec6f7c05
2019-02-18 23:17:31 -08:00
Aditya Bavanari dffcdeff61 configs: trinket: Add config files for trinket target
Add config files for trinket target referred from
msmsteppe target.

Change-Id: I7db1cfbd4e99d840627bb169a78dc7b98ef5c75d
2019-02-18 23:17:22 -08:00
Hari Veerubhotla e56a5fa07a Initial Android target definition for trinket
Initial Android target definition for trinket
configuration files.

Change-Id: Ie1761dff7235a6625ebf4c378596c944a67d66ef
2019-02-18 23:17:10 -08:00
Linux Build Service Account 5c1a2fa7e4 Merge "Updated Module markings" 2019-02-18 08:04:34 -08:00
Linux Build Service Account d61b3cd707 Merge "hal: Mute other active streams while voice recognition is active" 2019-02-18 02:23:47 -08:00
Linux Build Service Account f8de683e38 Merge "hal: Add SSR/PDR handling in voice call" 2019-02-18 02:23:46 -08:00
Linux Build Service Account f4b4f16d54 Merge "hal: Set correct mono mode for TWS+" 2019-02-18 02:23:46 -08:00
Piyush Balwani 18c6b2d12d Updated Module markings
Change-Id: If0a388786d31f194f326a754b68a48240aa37e39
2019-02-17 23:36:42 -08:00
Dhanalakshmi Siddani 89b1b9cc7c hal: Do not delete DEVICE_CONNECT and DISCONNECT params
BT audio playback is not working as AUDIO_PARAMETER_DEVICE_CONNECT
param string is deleted by FFV module.
Do not delete AUDIO_PARAMETER_DEVICE_CONNECT and
AUDIO_PARAMETER_DEVICE_DISCONNECT strings as they are used by other
modules also.

Change-Id: Ice61399814f5f238afdb76b32bacfc316d839f3f
2019-02-14 22:38:07 -08:00
kunleiz ceb286c316 hal: set different echo reference based on output device
1. Set specific echo reference when using different
   output device.
2. Set default echo reference when specific echo
   reference route path does not exist.

CRs-Fixed: 2366229
Change-Id: I0b75bf2a0ee54bb5110b663fb86482b939793c98
2019-02-14 19:02:48 -08:00
kunleiz 70e5761630 hal: add support to check sva and audio echo reference
EC ref port can be simultaneously set and reset by
audio and SVA use cases. Synchronize enabling/disabling
of EC ref between sthal and audio hal by passing EC ref
enablement/disablement information to each other.
1. When closing input, EC ref does not stop if SVA EC ref
   is active.
2. Pass Audio EC ref status to STHAL, when stopping SVA,
   ensure EC does not stop if Audio EC ref is active.

Change-Id: I67f1f6316ea64e43a21cbf0add90d345a1108d3e
2019-02-15 10:54:49 +08:00
Derek Chen c7c873e8bc hal: remove multiple offload flag in hw ext plugin
Remove multiple offload usecase support feature
flag in hw extn plugin.

Change-Id: I4b1b71125d2a468c74b32d694588fb1d66f54624
2019-02-14 14:23:11 -08:00
Linux Build Service Account 130f18847a Merge "hal: remove LOCAL_ADDITIONAL_DEPENDENCIES from makefile" 2019-02-14 11:29:27 -08:00
Aditya Bavanari 59ebed402f hal: Add SSR/PDR handling in voice call
When SSR/PDR occurs, sometimes RIL/telephony
does not set the call state and mode accordingly due
to which the dapm widgets do not power down leading
to clock count mismatch and SSR failure. Set the call
state to CALL_INACTIVE for all active sessions and
mode to MODE_NORMAL to end the voice call and power down
the widgets within audio.

CRs-Fixed: 2383876
Change-Id: I907a62557ef6519aded98e85ef8811234a6c06c8
2019-02-14 16:12:55 +05:30
Manisha Agarwal 02a0b7f4c5 hal: Set correct mono mode for TWS+
Mono mode is reset during encoder configuration and wrong payload
value passes to ADSP.

After encoder configuration set tws mono mode value as sent by A2DP
during playback start.

CRs-Fixed: 2386942
Change-Id: I40f49addfa0f9dfceae9af2546512d0cca02fb99
2019-02-14 10:08:22 +05:30
Quinn Male f605036ce8 hal: Mute other active streams while voice recognition is active
In order to protect voice recognition data from other clients
in audio record concurrency usecases, mute all active non voice
recognition input streams.

Change-Id: I1002726699902952c8b8568d57aa1cb6dfc2ad2b
2019-02-13 18:37:23 -08:00
Meng Wang b2ab186202 hal: enable USE_XML_AUDIO_POLICY_CONF for compilation
USE_XML_AUDIO_POLICY_CONF is needed for both STUB HAL and
primary HAL. Enable it for both.

Change-Id: Id4e2e2b6eafc18f980a45e15a6a015ae11cefe1c
2019-02-12 16:29:46 -08:00
Divya Sharma a5ec61136d Fix build errors
- hal/Android.mk: set_sched_policy() was moved from libcutils to libprocessgroup

Change-Id: I97b04edc55e457c0572c67bf16801cc3b9366d06
2019-02-11 22:36:55 -08:00
Naresh Tanniru 6bcdccacb2 Fix build error for a new SP
Temporarily disable custom audio policy

Change-Id: I241618729d0d051f0097c94263a72d9a4ea35c42
2019-02-10 21:42:52 -08:00