Commit Graph

6471 Commits

Author SHA1 Message Date
qctecmdr 5c087d7c58 Merge "hal: handle null primary output scenario" 2020-09-27 03:07:27 -07:00
Kunlei Zhang 94b0383245 config: lahaina: update SPKR DMIC broadside config for Lahaina QRD device
Update SPKR DMIC broadside config for Lahaina QRD device.

Change-Id: Ie4cf5db592e7df7743f208589e7f370978cd7ef4
2020-09-27 09:17:58 +08:00
Shalini Manjunatha c7ecd35d0c config: Remove 2 instance support for "primary input"
As advanced concurrent capture meaning support for more
than one input session open in AHAL is not supported on
this target, removing corresponding variables

Change-Id: Iaea5f4d55025a622c106a4b17fce122301993f69
2020-09-25 16:00:44 +05:30
Zhou Song 913aac348d configs: lahaina: fix audio not heard over speaker for haptics
For parsing paths in xml file, libaudioroute will break if
a duplicated ctl is found, this can cause the ctl of audio over
speaker skipped, so for combo device usecases, audio will be
lost on speaker.
Fix it by removing nested path, replace with single mixer ctl
for combo device usecases.

Change-Id: Ibe74ed8ed28b3a5534b8b44edd211b5bb6bb8583
2020-09-25 14:35:44 +08:00
Faiz Nabi Kuchay c43d2dd382 configs: shima: Use TX3 SWR master port instead of TX2 in TMIC and QMIC recording
Use TX3 SWR master port instead of TX2 in TMIC and QMIC concurrent capture.

Change-Id: I957cb23170fe9b245d1700ec4561c69f170d5af0
2020-09-24 19:04:14 +05:30
Jaideep Sharma cb40251895 hal: Enable dynamic logging in audio_ext.
- Define C_FLAGS in audio_extn's make file so underlying files
can use dynamic logging.

- Add log related to sound card state change in audio_hw.c

Change-Id: Idbc937576ff9f444809c0241996d8996ae1d0e8f
2020-09-24 17:51:12 +05:30
Ramjee Singh 4afe311da0 hal: Pick correct platform info for scuba IDP and QRD
- Voice call does not work after switching to speaker
  as BE interface is not shared for handset and speaker
  in platform info xml.
- Fix is to load correct platform info with proper BE
  interface

Change-Id: Ic8fa1233e57f444a9daed336453e812588600b6d
2020-09-23 22:31:15 -07:00
qctecmdr 132fe6348c Merge "hal: add input voip entry to be aligned with config file" 2020-09-23 21:57:10 -07:00
qctecmdr 7b4b129f19 Merge "hal: Add initial definition for lahaina" 2020-09-23 21:57:10 -07:00
qctecmdr 0e0d8c1d19 Merge "configs: add hifi backend path and property for shima" 2020-09-23 21:57:10 -07:00
qctecmdr 6579decff4 Merge "configs: holi: update acdb id for speaker device" 2020-09-23 21:57:10 -07:00
qctecmdr 60b6403159 Merge "configs: lahaina: Add property for timecheck timeout duration." 2020-09-23 21:57:09 -07:00
qctecmdr 004a72f4d7 Merge "config: shima: add haptics usecases" 2020-09-23 21:57:09 -07:00
qctecmdr bd7df3e87a Merge "Add Secure compilation flag to voice processing library" 2020-09-23 21:57:09 -07:00
qctecmdr 6b9f2de6d1 Merge "config: lahaina: initialize wsa rx0 mm16 mixer" 2020-09-23 21:57:09 -07:00
qctecmdr 999c70314f Merge "hal: configs: swap channel for speaker dual mic" 2020-09-23 21:57:09 -07:00
qctecmdr 0c66934e31 Merge "ahal: send audio route instance to sthal when init done" 2020-09-23 21:57:09 -07:00
xsangh 08fa270560 configs: fix incorrect spv4 feedback channel
Mono speaker always uses left channel for VI feedback
regardless of right or left speaker.

Change-Id: I22f484d5bd1a127240c7b23bc259a3108fe3131d
2020-09-24 12:10:39 +08:00
Derek Chen e7b74bf24d configs: Modify ST EC REF to use QUIN TDM TX for Talos
* Use QUIN_TDM_TX_0 for sound trigger echo reference
  as SEC_TDM_TX_0 does not connect to mercury codec
  on automotive Talos platform.

Change-Id: I51ad6716efdc4c8bd6c848e66664fadf85f413a2
2020-09-23 20:41:07 -07:00
Amarnath Vangala 2e663cfc27 hal: New mixer xml for wcd938x on holi
Introduce new mixer paths xml for wcd938x
with AATC variant on holi.

Change-Id: If7571ba8131627c9367b0be45b23340994ce3fa5
2020-09-23 20:57:00 +05:30
Xiaojun Sang 5f5903bbbb configs: update microphone assignment after tuning
Change microphone assignment to follow tuning result.

Change-Id: Ifc10b360fec5ae885a3bf1102b44ac9ba589917f
2020-09-23 16:04:44 +08:00
Kunlei Zhang 91c4b33132 hal: add lpi enable support for voice call
Add lpi enable support in tx device for voice call

Change-Id: I9574858870f4ddcb7fe43d2d1fff3ad43ba8d3db
2020-09-23 00:46:04 -07:00
Meng Wang d9f0495560 config: lahaina: reduce 15DB for swr dmic lp mode
Reduce 15Db for SWR DMIC LP mode on lahaina device.

Change-Id: Iaf8f1a6dd9f01986ac78af7ffc2aad3ba449cbc1
2020-09-23 10:39:18 +08:00
Vignesh Kulothungan 0312174f35 configs: lahaina: enable bcl feature by default
Enable bcl aka vbat monitor feature by default on lahaina.

Change-Id: I4d0be93a38fd40f768217c5db3e7df2b151d7281
2020-09-22 11:31:03 -07:00
Lakshman Chaluvaraju d28b76c021 configs: sdm660: Enable Stereo channel support for voip
Add changes to support stereo channel configuration
for voip over audio path

Change-Id: I1b03f3b6bdcb1949cdc227a9b1e47cf60129f66a
2020-09-22 18:25:20 +05:30
Weiyin Jiang 96b96f72df hal: handle null primary output scenario
Handle NULL primary output scenario to avoid crash.

CRs-Fixed: 2782413
Change-Id: I4c1ba663bb21583b6fa76d68461d5e16248aec90
2020-09-22 17:41:08 +08:00
Weiyin Jiang 280ea745d3 a2dp: fix race condition during a2dp suspend and reconfig
Device lock is released during a2dp suspend and re-config scenario,
which results into race condition.

Introduce a latch lock for the following reasons.
- We don't have to hold the out->lock that is too large granularity,
  if we only care about certain fields in stream structure.
  latch lock is of small granularity.
- out->lock can only be held after adev->lock, which makes it impossible
  to loop through the adev->usecase_list and operate on usecase streams.
  latch lock can be held after out->lock and adev->lock.

CRs-Fixed: 2770070
Change-Id: I58584820f924ce4c7e723899cb2595aa3adfd5b3
2020-09-22 12:39:45 +05:30
Shalini Manjunatha 85084ede49 configs: Add built-in/Back mic and remove TelePhony Rx from primary input
Built-in mic and Built-In Back Mic aren't in supported devices
list of primary input, Add them to primary input sources to
reuse input to avoid to open extra input stream in AHAL
Also remove Telephony Rx to make in call record use case through
different front end pcm device when sva enabled to solve concurrency
capture issue

Change-Id: I0f0bf7581a252734bea0a799122d203e3a3eea11
2020-09-22 10:51:42 +05:30
Mingshu Pang 2c3f36429d hal: Add initial definition for lahaina
Add initial definition for lahaina.

Change-Id: I46408ef30f22791ef495506cc23d4680867ca073
2020-09-20 22:36:46 -07:00
Zhou Song a876622fac hal: redundant audio_extn callings clearance
Remove redundant callings to audio_extn.

Change-Id: Ia736d5f95b60d07213d297a61074ef27f4f67d7d
2020-09-20 19:46:38 -07:00
George Gao 3d477080ef hal: add input voip entry to be aligned with config file
Added audio input voip flag so that the same voip flag in config file
can be recognized and mapped to according value.
Added flag of mmap, av sync, and direct for future use.

Change-Id: I408b2f84ebee4fe84665827e8fdd832fde44141a
2020-09-18 11:40:57 -07:00
qctecmdr acd5abec5b Merge "Configs: update TTY-HCO Headset mic settings" 2020-09-18 10:41:25 -07:00
qctecmdr cbd0990241 Merge "configs: sdm660: add support for VoIP over audio path" 2020-09-18 10:41:25 -07:00
Prasad Kumpatla 5c9e154b88 configs: add hifi backend path and property for shima
Add backend updation and property for shima
for Hifi filter resampler.

Change-Id: I3893ed08ec1d5885ce30ea4932cfb2bcd33d5711
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-09-18 14:57:00 +05:30
Meng Wang 65c6d5eb35 config: lahaina: add ftm config file for Lahaina HDK device
Add ftm config file for Lahaina HDK device.

Change-Id: Ib79c9b9d39fc814aeed7d4b0c6612c3f0b5be8c4
2020-09-18 15:05:40 +08:00
Amarnath Vangala 91a06df5e7 configs: holi: update acdb id for speaker device
Update acdb id for speaker device.

Change-Id: I2962f1de401ee3144ec68fed2d6e0f71a171a6ea
2020-09-18 09:17:50 +05:30
Kunlei Zhang 9cbd3b42c7 configs: lahaina: add lpi enable support for voice call
Add lpi enable support in tx device for voice call

Change-Id: I5e4d976bdd70d3cc0f735d56e794672426fbbf6e
2020-09-16 14:20:10 +08:00
Jaideep Sharma 603ca64871 configs: lahaina: Add property for timecheck timeout duration.
Timecheck timeout set to 20sec based on the property
vendor.audio.hal.boot.timeout.ms before system is ready.
It updates to default timeout of 5sec, once the system
is ready.

Change-Id: I651fea37fc7093e196fc2f5e540e6d9447f88b71
2020-09-16 08:43:47 +05:30
Vignesh Kulothungan ababa9e3f7 config: lahaina: initialize wsa rx0 mm16 mixer
Initialize "WSA_CDC_DMA_RX_0 Audio Mixer MultiMedia16" mixer control.

Change-Id: I796ac7c1095dd7b8cc28e454e7851bce7553a173
2020-09-15 17:05:14 -07:00
qctecmdr da080f5629 Merge "config: lahaina: update SPKR DMIC setting for Lahaina QRD device" 2020-09-15 10:44:14 -07:00
qctecmdr e5371d66f9 Merge "config: shima: update mixer controls for Shima QRD" 2020-09-15 10:44:14 -07:00
qctecmdr 8b79353866 Merge "config: supplement the supported format into compress_offload_24" 2020-09-15 10:44:14 -07:00
qctecmdr 60d9c81fc5 Merge "config: holi: update pcm id for RECORD_COMPRESS2" 2020-09-15 10:44:14 -07:00
qctecmdr 306fe77cfb Merge "hal: close compress record resource when starting fails" 2020-09-15 10:44:14 -07:00
qctecmdr 7fc2762280 Merge "configs: holi: Add default controls for ADC2 mixer" 2020-09-15 10:44:14 -07:00
qctecmdr ed7f78c36e Merge "config: lahaina: update SWR DMIC controls for CDP device" 2020-09-15 10:44:14 -07:00
qctecmdr a29d281f25 Merge "config: holi: update mixer control for mono speaker" 2020-09-15 10:44:14 -07:00
qctecmdr 29372d33a1 Merge "hal: Add support for 1MB SKU holi variant" 2020-09-15 10:44:13 -07:00
Lakshman Chaluvaraju e93f79023f configs: sdm660: add support for VoIP over audio path
Add path entries for VOIP playback and record usecases
for internal and external codec variants.

Change-Id: Id9e2730a276887a77f5cc8ca517302ab9fba35dd
2020-09-15 11:08:45 +05:30
Akhil Karuturi 9aa2928dba Configs: update TTY-HCO Headset mic settings
update TTY-HCO Headset mic mixer path settings for capture usecase
on Lahaina target.

Change-Id: Id06191cedceb9535aa4e92dbe8bee0a5b3ec29fb
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-09-14 10:49:48 -07:00