Commit Graph

913 Commits

Author SHA1 Message Date
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
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
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
Aalique Grahame 6e7637151a hal: Fixes for dynamic audio HAL feature enable
- Update audio and voice feature init sequence
- Update API names for querying whether feature is enabled
- Fix A2DP audio_extn APIs
- Fix compress VOIP set parameter default return val issue that
  was causing no other set param to be processed
- Fix dynamic primary usecase check

Change-Id: I08fa3bc369ec197932347b01491588d42655797c
2019-02-05 16:34:45 -08:00
Linux Build Service Account 061c53353b Merge "Bluetooth: Load BT host ipc lib based on build" 2019-02-05 04:07:21 -08:00
Srinu Jella da99a59805 Bluetooth: Load BT host ipc lib based on build
- Changes made to load the BT host IPC library
  based on build type.

- Due to common vendor image, QTI build's IPC
  library got renamed.

CRs-Fixed: 2373792
Change-Id: I2fcc5da9600a0a4b65f70603835a16913aeb0562
2019-02-01 16:28:57 -08:00
Meng Wang ef2f6e180b hal: add audio support for kona
Add audio support for kona.

Change-Id: Ib1eb05209ce3220e00fa15cddc5338b3f62871f9
2019-01-31 23:14:42 -08:00
Weiyin Jiang e6ce631fc8 hal: add AHAL hidl registration entry
Add AHAL hidl registration entry, and register AHAL extension service
from adev_open().

Change-Id: Idce42ba6da97a26fde6c88d23b7be71b886e376f
2019-01-31 22:47:48 -08:00
Aniket Kumar Lata 808e8d62c1 hal: Add support for audio feature manager
Fetch feature flags from audio config store.
Provide an interface for audio_extn, platform
and hal code to check if a feature is enabled
or disabled at runtime.

Change-Id: I35d873c787258aee75481de343fcbcbc51cb9e91
2019-01-31 18:03:28 -08:00
Arun Mirpuri b1bec9c80b hal: enable dynamic audio HAL feature extensions
Move audio and voice extension feature to seperate
dynamic libraries. Loading these libraries will be
controlled from config store based on target. These
flags can be changed at runtime

Change-Id: I042450768243124ea80945efac0821984f96b9bf
2019-01-30 17:36:06 -08:00
Aalique Grahame 5ce7fbe767 audio: update feature files
Update the source files for ma_listener, cirrus_playback and
maxxaudio to latest versions.

CRs-Fixed: 2388992
Change-Id: I62eecf0356ee942d085ee94b848225a91704e688
2019-01-29 10:55:55 -08:00
David Lin edac635451 HAL: CS35L36: Add support for speaker protection
This patch adds the audio HAL extension hook for supporting per-device
speaker calibration file loading as well as enabling hostless pcm stream
needed for the ADSP to obtain I/V/VP feedback from the CS35L36 boosted
amplifier codec.

Bug: 69005593
Test: Run cirrus_sp_status test tool on B1 P1.1
Change-Id: I511818fee7d15327619fec6d17b8fe55d54f1866
Signed-off-by: David Lin <dtwlin@google.com>
(cherry picked from commit 84e262b0a5ac2703bd35f766c62fb0017039dbe1)
2019-01-29 02:52:17 -08:00
jasmine cha 75fa6f02fb audio: porting MAXXAUDIO
- use effect module to monitor stream's volume
  - the control(maxxaudio) monitors active device and
    changed volume from HAL, and send audio calibration
    to acdb via acdb_loader.
  - support specific USB headset

  Enabled function:
  - LR channels swap
  - load external tuning table for volume preset feature

Bug: 74360112
Test: manual effect test, usb headset test
Change-Id: I9b35436d6abebcfa250beb4857dfa0be9248f2b5
(cherry picked from commit 270b7762c1c6c7b69400ba28a2ea2bed7af1906a)
2019-01-28 14:13:21 -08:00
Aalique Grahame 22e4910d3d audio: unify hal
Unify audio hal components

CRs-Fixed: 2380934
Change-Id: Iacafdc44d935de5f343240421a1572a0a3241bd0
2019-01-25 15:15:46 +05:30
Linux Build Service Account b52ea0c6a9 Merge "hal: Restore fm volume whenever enable fm usecase" 2019-01-08 23:21:10 -08:00
Linux Build Service Account 5da55b2a29 Merge "hal: Fix build error for battery listner module" 2019-01-03 08:17:53 -08:00
Linux Build Service Account 6303662927 Merge "hal: add support for FFV get params" 2019-01-03 03:28:32 -08:00
Linux Build Service Account 465605630d Merge "fm: Add getparameter to check FM status" 2019-01-02 23:13:10 -08:00
Naresh Tanniru 9fd59a8074 hal: Fix build error for battery listner module
- Build error is observed with -Wimplicit-fallthrough
  compile time flag enabled

- Add explicit fallthrough in switch statement

Change-Id: Icea383983e689fcbf5579a5d8de1cc0fa65f610f
2019-01-02 06:52:50 -08:00
Linux Build Service Account 3aa2473fc2 Merge "audio: Fix APTX Adaptive latency value." 2019-01-01 23:12:04 -08:00
Preetam Singh Ranawat 3fcfa268fc fm: Add getparameter to check FM status
-FM audio is not working after FM app is killed and
  launched back.
 -add getparamter to let app know FM status and start/stop it.

Change-Id: I295fad5baee838f32d741cdfe874576d55b66957
2019-01-01 22:55:28 -08:00
Sidipotu Ashok aa4fa6a614 hal: add support for FFV get params
-Audio HAL to support FFV get_paramters via sound trigger
callback.

-FFV needs clients to pass down the SM handle info to get a few
paramerters with respect to the given SM handle but standard
get_parameters doesn't support kvpairs for input keys, it does
support for return of kvpairs, add support for a new delimiter
which will be used while sending keys in get_parameter.

-Enable Keep alive for Red Dragon

-Adjust volume gains based on the systems team tuned values

Change-Id: I96c7214b4a084568862e3550eaabbb9d51e253d9
2018-12-28 15:20:28 +05:30
Deeraj Soman 4f9158588d hal: Add hdmi-arc support in transcode loopback usecase
Add support for HDMI-ARC source for transcode loopback
usecase.

Change-Id: Ie61a782f53483b63804a543b7d09ca84a2c4f9ff
2018-12-25 21:12:25 -08:00
Linux Build Service Account fe6b37c5e3 Merge "hal: Fix compilation error" 2018-12-21 07:42:24 -08:00
Linux Build Service Account 293e907f02 Merge "hal: Fix compilation errors" 2018-12-21 07:42:23 -08:00
Ramu Gottipati 02809689b0 hal: Fix compilation errors
- To fix compilation errors, remove unused
  variable in codebase
- Fix KW issues by adding mutex unlock

Change-Id: I392f4abf53e07524ca28c4559271b153f4190b34
2018-12-20 18:31:30 +05:30
Ramu Gottipati b729cf83c8 hal: Fix compilation error
- To fix compilation error, update aptx adaptive name.

Change-Id: I8de50a2868992f8ee219b0927b28dae42c6bd35a
2018-12-20 15:36:46 +05:30
Soumya Managoli 6993b76547 hal: Restore fm volume whenever enable fm usecase
During fm playback if there is a device switch
happening due to enable of another usecase, then fm volume
set by policy is lost when fm is resumed back. This is due to
disable and enable of the fm usecase and fm device resulting in
setting of default volume set from mixer_paths.

Change is to handle this scenario by resetting the actual fm
volume whenever fm usecase is enabled.

CRs-Fixed: 2256201
Change-Id: Ib11ab0fbbe6e038d41f53675adf3c4ca509692d0
2018-12-20 11:09:21 +05:30
Ramu Gottipati 08d82e72d3 hal: Fix compilation errors
- Fix compilation erros on LE code base for qcs40x

Change-Id: I37b5b455690353c612ca6b6014160056cae8cb67
2018-12-19 16:50:25 +05:30
Preetam Singh Ranawat 79c514e758 audio: Fix APTX Adaptive latency value.
-latency value returnd for aptx adaptive is not proper as it uses
 default value in case statement, add break to return proper value.

Change-Id: I5a910c3fbd85474562c7b959b3b855679177a60f
2018-12-18 09:07:45 -08:00
Linux Build Service Account e0614a0812 Merge "hal: add support for aptx adaptive encoder mode" 2018-12-18 04:01:32 -08:00
Linux Build Service Account 3aa1c23232 Merge "hal: reset service interval if burst mode is not supported" 2018-12-17 00:20:25 -08:00
Sharad Sangle e378afe0cd hal: add support for aptx adaptive encoder mode
The change add support for sending APTx Adaptive
 encoder mode, High Quality or Low Latency to LPASS.

 Update latency for APTx Adaptive format, BT IPC
 will return the latency according to current mode
 the encoder is working in.

CRs-Fixed: 2272312
Change-Id: Iab4e5b43ac7a0385444aa22c88f01ee72e45055d
2018-12-16 05:30:24 -08:00
Surendar Karka 2febd45858 Merge commit 'd34f05cb6e67e28a4955332173950466edf0be3e' into audio-hal.lnx.5.1
Change-Id: I4656a1a78c2b1d4b4834b2fd538699f96e2aa90e
2018-12-13 17:57:12 +05:30