Commit Graph

945 Commits

Author SHA1 Message Date
qctecmdr 3acae22b3b Merge "hal: Update paths for calib files" 2019-04-03 23:09:58 -07:00
qctecmdr f36336ef32 Merge "hal: fix no sound issue when using some USB headset." 2019-04-03 23:09:58 -07:00
Manisha Agarwal c36714f98a hal: Update paths for calib files
Update paths to point to /data/vendor/audio
for calib files for speaker protection.

CRs-Fixed: 2418789
Change-Id: Icf0487178aed568511747925cf8dbe2e9471583d
2019-04-02 18:36:16 -07:00
Naresh Tanniru 66cf06cf17 a2dp: Add new API for QC extension
- Implement new API for HIDL 2.0
  to support BT service registry

Change-Id: Ib10ced4cefc26403999fdd1b42b6be650b6cb823
2019-04-01 15:36:59 -07:00
qctecmdr 2c78321145 Merge "hal: audio_extn: fix LOCAL_ADDITIONAL_DEPENDENCIES in makefile" 2019-04-01 06:43:54 -07:00
Mingshu Pang 8ffbcf8db4 hal: fix no sound issue when using some USB headset.
The RX bit-width is overwritten when getting the RX and
TX capabilities with same memory.
Use different variables to fix the issue.

CRs-Fixed: 2426606
Change-Id: Ib254eaa3ff3ce04eb77299757ff3cbfaeff9e57a
2019-04-01 16:36:21 +08:00
Aalique Grahame 182676bdd2 hal: audio_extn: fix LOCAL_ADDITIONAL_DEPENDENCIES in makefile
LOCAL_ADDITIONAL_DEPENDENCIES must only contain paths and
should not be dependent on module names.

CRs-Fixed: 2423819
Change-Id: I15019a68a92666b26a2027dc86a8b795e44663e4
2019-03-26 15:52:17 -07:00
Ashok Kundurthi ecbe97d4ad hal: Add sdm710 target for audio_extn libs
Change-Id: I936d19dd773742c9b0264ec4f74a28ea6154df19
2019-03-26 00:40:50 -07:00
Linux Build Service Account 791e006852 Merge "hal: Retrieve ahal feature flags from audioconfigstore" 2019-03-25 05:47:50 -07:00
Aniket Kumar Lata b91e4cf627 hal: Retrieve ahal feature flags from audioconfigstore
Update ahal_config_helper to fetch feature flags from
audioconfigstore.

Change-Id: I91c6c21df8f781420d03c027f54d8a7529e746fd
2019-03-21 11:33:54 -07:00
Derek Chen f939fb7330 hal: add support for HAL API 3.0 to utilize AudioPatch
Add audio HAL version property to support audio HAL
API 3.0 for audio patch and audio port configuration.
Add basic device and  mixer routing support in audio
patch as audio stream set_parameters for ROUTING and
INPUT_SOURCE will be replaced with audio_path in
AudioFlinger for audio HAL API 3.0 and above.

Change-Id: I0a16982ff5115b3475ae302e8653f02657437e28
2019-03-19 10:08:49 -07:00
Linux Build Service Account a09ca3a505 Merge "Initial Android target definition for lito." 2019-03-19 01:16:38 -07:00
Aalique Grahame af9ce1a5ae hal: audio_extn: update start of voice_extn features
Update the start of the voice_extn features in the extn
features list. Compress metadata feature is skipped over
otherwise.

CRs-Fixed: 2416677
Change-Id: Iddb59dc55c0370e0ccaace1c6bbfd6dc9ac271e3
2019-03-15 17:43:19 -07:00
Linux Build Service Account 58fb562f33 Merge "hal: Update TX capabilities when adding USB output device as well." 2019-03-14 10:04:54 -07:00
Linux Build Service Account 1f40f2fcc5 Merge "audio: introduce dedicated adev->cal_lock for gef interfaces" 2019-03-14 06:55:17 -07:00
mpang 2a5075eb47 hal: Update TX capabilities when adding USB output device as well.
Currently USB TX capability is only updated when input device is
connected. Check USB TX capabilities when the output device as well
to avoid unnecessary device switch between USB-headset and USB-headphone.

CRs-Fixed: 2403502
Change-Id: I4caf3a967c8da7f6eebe4a5ac8d41a3d314a26d9
2019-03-13 07:24:57 -07:00
Linux Build Service Account 1153fd5570 Merge "hal: add support for automotive audio hal extension" 2019-03-12 04:10:38 -07:00
Weiyin Jiang fa65d3e5d7 audio: introduce dedicated adev->cal_lock for gef interfaces
Audio device lock is not suitable for GEF operations, so add a dedicated
calibration lock for GEF.

CRs-Fixed: 2413132
Change-Id: Ic1e840c02e9d7f1bce5d3cb12702366af1c07f01
2019-03-11 10:58:50 +08:00
Laxminath Kasam b3625f6f33 hal: spk_protection: fix compile error
Initialize adev handle to avoid compile error.

Change-Id: I2a806c604f9a2d0b6008112bb5a1a5f4fca91519
2019-03-07 19:36:58 +05:30
Linux Build Service Account 49cd230d2b Merge "hal: update copyright and snd device validation in ext plugin" 2019-03-06 23:32:37 -08:00
Derek Chen ae7b0349a1 hal: add support for automotive audio hal extension
Add support for automotive audio HAL extension to
handle automotive specific feature enablement and
interface implementation.
Move hostless setup into auto hal module.

Change-Id: I5032433263b3cacc579da6a8a40389d1f783e49c
2019-03-05 23:17:22 -08:00
Linux Build Service Account 450f6f90e6 Merge "hal: add hostless disable upon deinit" 2019-03-04 01:17:01 -08:00
Linux Build Service Account f30ef818be Merge "hal: spk_prot: Update lock for v-validation and timestamp calculation" 2019-03-04 01:16:54 -08:00
Derek Chen ea19728b45 hal: update copyright and snd device validation in ext plugin
Update copyright year and snd device validation
for ext hw plugin start/stop call.

Change-Id: I3e3ce4d366fbff74d1c6ccb12049e4ee9595fa98
2019-03-02 09:47:48 -08:00
Derek Chen 65c764b10e hal: add hostless disable upon deinit
Add adev hostless session disable upon
ext hw plugin driver deinitialization.

Change-Id: Icbaac82e951a7e2826bcad17b42bcc2c85ec3cce
2019-03-02 09:44:02 -08:00
Laxminath Kasam 701704a96b hal: spk_prot: Update lock for v-validation and timestamp calculation
Ensure take adev lock before v-validation thread calls spkr_calibrate,
since spkr_calibrate() caller expected to take it. Update
timestamp calculation for nsec for v-validation based on
added value.

Change-Id: I1b4004eb1e809219e36b9c3f733a9b484cf1e8a4
2019-03-01 12:13:05 +05:30
Arun Mirpuri 5dc778085f hal: Fixes for initalizing audio_extn features
1) Fixes for initializing audio_extn features such as speaker_prot,
fm,etc.
2) Runtime detection using vndk_fwkdetect lib has been
changed to dynamic loading instead of static linking

Change-Id: I4deef5e9ffefc17e427ecf5a271ed7bcd18dbb0f
2019-02-28 12:11:51 +08:00
Linux Build Service Account d3b6813171 Merge "hal: Add kona target for audio_extn libs" 2019-02-27 17:24:44 -08:00
Manisha Agarwal 888e97628c Initial Android target definition for lito.
Initial Android target definition for lito.

Change-Id: I3ec264577ecef549bb7c3c355cea40b68161bed7
2019-02-27 22:18:49 +05:30
Linux Build Service Account a6735d32e1 Merge "hal: support automotive card in snd monitor" 2019-02-27 04:23:59 -08:00
Arun Mirpuri 5a54af3467 hal: Add kona target for audio_extn libs
Add kona target override to msm8974 for audio_extn libs

Change-Id: I7e714fc64300bd0294d07425fa3d2c52c16343dc
2019-02-26 17:06:54 -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 6c113a90b8 Merge "hal: Do not delete DEVICE_CONNECT and DISCONNECT params" 2019-02-21 21:05:23 -08:00
Derek Chen b77ae92ce2 hal: support automotive card in snd monitor
Add support for automotive sound card
SAx155 in snd monitor driver for sound
card state callback during SSR.

Change-Id: I73ef050588ee61aa58c4896eed2c2c05fbd40fde
2019-02-21 15:07:59 -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
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 0f683830f0 Merge "hal: sndmonitor: Add support for trinket sound card in sndmonitor" 2019-02-20 02:06:09 -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
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 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 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
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