Commit Graph

4799 Commits

Author SHA1 Message Date
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 610bd7fa3b Merge "hal: config: Update PCM ID for different usecases" 2019-03-05 17:24:54 -08:00
Banajit Goswami eab9ad2eb7 hal: kona: update soundtrigger mixer paths to fix compilation error
Update the soundtrigger mixer paths file to fix parser errors during
compilation.

Change-Id: I3c5d82308a5e330a30443fcb68ddee4f38867391
2019-03-04 21:10:42 -08:00
Sudheer Papothi 2d39e3d044 hal: config: Update PCM ID for different usecases
Update PCM ID for different usecases for Kona target.

Change-Id: I7086c3b02a1a0b1ca1f38921c8cbc1a19a1f6f6a
2019-03-04 18:59:39 -08:00
Linux Build Service Account c8f3fddf87 Merge "config: remove USB devices in policy config file" 2019-03-04 01:17:02 -08:00
Linux Build Service Account a17b380afe Merge "config: update acdb dev id for primary playback" 2019-03-04 01:17:02 -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 cc08e187b3 Merge "configs: conditionally disable audio device overlay." 2019-03-04 01:17:00 -08:00
Linux Build Service Account 8209d47726 Merge "hal: Avoid setting wrong sample rate for headset device" 2019-03-04 01:16:59 -08:00
Linux Build Service Account dd4dfb6d04 Merge "hal: Resolves rewound and restart issue during SSR/PDR." 2019-03-04 01:16:58 -08:00
Linux Build Service Account 36250a4f78 Merge "hal: Deinit EC reference loopback" 2019-03-04 01:16:57 -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
Linux Build Service Account d0d780d41f Merge "config: update pri pcm sample rate for hfp-sco-wb" 2019-03-04 01:16:52 -08:00
Linux Build Service Account d3328d3cf9 Merge "hal: Fixes for initalizing audio_extn features" 2019-03-03 23:50:26 -08:00
Meng Wang 267816fff0 hal: kona: update missed audio properties for kona
Update missed audio prperties for kona.

Change-Id: Iea2ef376be5642a5ea2b7443f8829b778fde6b71
2019-03-04 10:09:03 +08:00
Linux Build Service Account 9341c03a96 Merge "configs: kona: Add mixer controls for headset SVA" 2019-03-02 20:12:49 -08:00
Linux Build Service Account 49326fd7b3 Merge "configs: kona: Add new common params and lsm_usecase for MD" 2019-03-02 20:12:48 -08:00
Linux Build Service Account 3b8b64a79a Merge "hal: update max channel count" 2019-03-02 20:12:48 -08:00
Linux Build Service Account 6efec777ec Merge "hal: update headphones mixer controls on Kona" 2019-03-02 20:12:47 -08:00
Derek Chen ccf24898b4 config: update pri pcm sample rate for hfp-sco-wb
Update primary AUX PCM sample rate configuration
for HFP SCO WB usecase.
Update custom xml configurations to align with adp.

Change-Id: I33454f969d8b84f8e7eab4c50c60100a63b8f9d7
2019-03-02 09:53:43 -08:00
Derek Chen ab6a1a5518 config: remove USB devices in policy config file
Remove USB device in audio policy configuration
files for USB Tunnel Mode support in automotive
targets.

Change-Id: I0ec43208457c5b362b24961dfb99269dadb27ff5
2019-03-02 09:48: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 2bacf8b5ef config: update acdb dev id for primary playback
Update ACDB device ID for primary playback
usecase to use default 6CH RX CoPP topology.

Change-Id: I5f19c1e306b6916a3ed3cb4216322ec557305c61
2019-03-02 09:46:16 -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
Meng Wang 30e970e618 hal: kona: update device setting for kona
Update mic, headphone and speaker setting for Kona MTP
and QRD devices.

Change-Id: I9459cfcda2b52363e120bb6bfca5613a61bbdb1d
2019-03-01 17:40:56 -08:00
Karthikeyan Mani bc05fa00ef hal: update headphones mixer controls on Kona
Headphone record uses ADC1 of internal codec and
needs power mode settings on play back path on Kona.

Change-Id: Id055c31425a20b23862c67fa03741bef6055b412
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-03-01 17:31:07 -08:00
Linux Build Service Account f9550f85d4 Merge "hal: Fix reconfigA2dp set parameter failure" 2019-03-01 16:33:27 -08:00
Linux Build Service Account b5dc6873f1 Merge "configs: Disable 3D Audio project" 2019-03-01 15:43:04 -08:00
Manisha Agarwal 0173f7e0c3 Initial Android target definition for lito.
Initial Android target definition for lito.
Add config files.

Change-Id: I30e0dabb9a66b85dc0611bc25be05c278b650e18
2019-03-01 14:36:26 +05:30
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
kunleiz 83c0b4f0bc hal: set default sample rate during voice/voip call
During voip call, backend sample rate is changed from
48Khz to 44.1Khz when starting 44.1Khz playback. This
is due to voip call using audio path is failed to check
to cause backend sample rate is changed.

Add voip call using audio path usecase condition check to
ensure default sample rate is set.

CRs-Fixed: 2405457
Change-Id: I9001abc059b554be6dda132a3a6b2c54227effd2
2019-03-01 10:57:33 +08:00
Dallas Delaney 8e3899a09b configs: kona: Add mixer controls for headset SVA
Add mixer controls to enable headset SVA detections

Change-Id: Ie8f27675d811f7583f05f16aa4e7e63186313add
2019-02-28 16:11:47 -08:00
Quinn Male f355507225 configs: kona: Add new common params and lsm_usecase for MD
New common params:
 - transit_to_non_lpi_on_battery_charging: Barge-in support flag
   for car mode.
 - disable_lpi_budget: Remove budget restrictions for LPI
   configuration.
LSM usecase for music detection:
 - Music detection needs to run on ADSP so it needs lsm_usecase
   params.

Change-Id: Iae3ade1afbe9388899c3eeddac614a8c5cfdd430
2019-02-28 11:20:57 -08:00
Linux Build Service Account 87fdadcd86 Merge "audio: Add supported encoding formats to A2DP devicePort" 2019-02-27 23:29:26 -08:00
Manisha Agarwal 7b3e377e71 hal: Resolves rewound and restart issue during SSR/PDR.
Audio playback after SSR/PDR gets rewound or restarts.

The issue occurs because of two scenarios:

1.out_get_render_position returns 0 when card status goes from offline
to online and out->compr is NULL.So,getPosition returns default 0 dsp
frames and anchorTime gets updated to mAudioFirstAnchorTimeMediaUs,
making it seek to the wrong position.

2.out_get_presentation_position returns 0 when out->compr is NULL,
even for offload usecase.

To solve the first issue introduce a flag which is true if the card
was offline previously and out_get_render_position checks the flag,
which if true return invalid value.For the second issue return failure
from out_get_presentation_position when out->compr is NULL and it is
offload usecase.

CRs-Fixed: 2392929
Change-Id: Ic0718bc2d62e4b05a6166efeb33ccf658d6cad2d
2019-02-28 11:15:29 +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
Aalique Grahame ee8c0ed9f6 hal: update max channel count
Update target specific max channel count for kona

CRs-Fixed: 2405781
Change-Id: Ic5f8d0ee95d8f332e6fc466789a68de37aba368e
2019-02-27 16:23:04 -08:00
Aniket Kumar Lata 2330032c94 hal: Fix reconfigA2dp set parameter failure
Fix reconfigA2dp set param failure in audio HAL.

Change-Id: I478be1f0e34a5da1155e82803d03cd2fe3e963c9
2019-02-27 10:38:12 -08:00
Aniket Kumar Lata d4747c473a audio: Add supported encoding formats to A2DP devicePort
Add tag to define supported encoded formats by devices
on a HwModule.

Change-Id: I73f4e88ab55739a2e1d13af74ff586f5e634fb45
2019-02-27 10:37:16 -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
Linux Build Service Account 4088895837 Merge "configs: kona: Add ACDB device for headset SVA support" 2019-02-27 04:23:57 -08:00
Linux Build Service Account 17fb25d35b Merge "hal: kona: update soundtrigger mixer paths and platform info" 2019-02-27 04:23:41 -08:00
Dhanalakshmi Siddani af4bd62e44 hal: Deinit EC reference loopback
EC reference loopback is enabled for FFV recording but not disabled
which is causing failure in EC session initialization for second FFV
record usecase.
Add check to call deinit EC reference loopback for Quad mic as part
of disable device to fix the issue.

CRs-Fixed: 2379310
Change-Id: Iaa9e21a8499fdbd7870a026456803b8f7c1fd705
2019-02-27 16:41:58 +05:30
Linux Build Service Account 12b55bcffc Merge "kona: enable audio hal extn" 2019-02-27 02:24:09 -08:00
shoudil b5e44a6a35 configs: conditionally disable audio device overlay.
Use macro TARGET_USES_RRO to conditionally disable build-time
audio specific device overlays to support QSSI on kona.

Change-Id: I66c509893305e6646300c1a25ae6fda503b091a1
CRs-Fixed: 2405916
2019-02-27 10:16:07 +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
Arun Mirpuri 77ce795dc5 configs: Disable 3D Audio project
Disable 3D Audio project temporarily until upstreamed changes
are available in AOSP

Change-Id: I12da2ca2a69f5a857389c8b94b77d1f4d170a216
2019-02-26 16:14:59 -08:00
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