Commit Graph

6703 Commits

Author SHA1 Message Date
Susan Wang 6dd13096c1 hal: Remove in_get_stream and out_get_stream
Remove in_get_stream and out_get_stream and
add in_ctxt and out_ctxt members to stream_in/out
structs to track and directly access stream contexts.
Mitigate race conditions with the active_in/outputs_list
when in/out_get_stream reads the list.

Change-Id: Iefc77d3c862b16dce8086e1afba15cf0210155b4
2021-02-23 17:14:40 -08:00
qctecmdr 82a2664ca6 Merge "hal: audio_extn: Build auto_hal only for automotive" 2021-02-22 21:31:47 -08:00
qctecmdr c234ce4df9 Merge "audio-hal: fix a2dp mute issue" 2021-02-22 21:31:47 -08:00
qctecmdr f045ed6d3b Merge "audio_policy:fix vts test fail." 2021-02-15 21:34:29 -08:00
qctecmdr 7dbb3213d3 Merge "configs: msm8937: add VoIP over audio path for wearable" 2021-02-15 21:34:29 -08:00
qctecmdr 9df68b07c9 Merge "configs: msm8937: Enable split a2dp property for wearables" 2021-02-15 21:34:29 -08:00
Lakshman Chaluvaraju 87f53aac88 audio-hal: fix a2dp mute issue
Playback usecase on a2dp path is muting if its enabled
while usecase on bt sco mic is still active.
To fix this, avoid enabling record usecase on SCO device
when A2DP device is in ready state.

Change-Id: Id6d926096fd35a1f0d3b60b3f10dc8c39f2cb225
2021-02-12 06:01:34 -08:00
sriram kumar e6fed7e6ab configs: msm8937: Enable split a2dp property for wearables
Enable split a2dp property for wearables on sdm429w

Change-Id: Ia03f26483eb6d94177c3455c3293740bc56d5c60
2021-02-10 19:42:49 +05:30
ronghuiz 9a34452611 audio_policy:fix vts test fail.
Change-Id: Ia3346fc7e80af9b57c24bfaf626f72364a465042
2021-02-09 18:50:16 +08:00
Harshal Ahire dba1b4b8e7 hal: Update the front end DAI for voice call record
Update the front end Up-link and down-link DAI as
MultiMedia9 for voice call record.

Change-Id: Ic166e908676f00ec43994771b3db66405cef85d5
2021-02-08 21:27:24 -08:00
Xu,Baochu 9281bc5d6c configs: msm8937: add VoIP over audio path for wearable
Add VOIP playback and record usecases over audio path for wearable.

Change-Id: I07f6a2e86b56871fbfa6427d05a2189166907319
2021-02-08 12:47:11 +08:00
qctecmdr b427823249 Merge "hal: update correct speaker type for mono speaker based" 2021-02-07 10:02:00 -08:00
qctecmdr 7b3d63faf1 Merge "hal: Update the FM_RX_VOLUME control to SEC MI2S LOOPBACK Volume" 2021-02-07 10:02:00 -08:00
qctecmdr de875de80f Merge "hal: sampling rate mismatch during a2dp+spk combo usecase." 2021-02-07 10:02:00 -08:00
qctecmdr 03078ad058 Merge "hal: route use cases properly to SCO device when it arrives" 2021-02-07 10:02:00 -08:00
qctecmdr 4cf9b419c0 Merge "configs: lahaina: use 48KHz SR calibration for SPV4 VI path" 2021-02-07 10:02:00 -08:00
qctecmdr 311db7b736 Merge "configs: msm8937: Add supported acdb ids for HFP devices." 2021-02-07 10:02:00 -08:00
qctecmdr 53585d9c90 Merge "configs: msm8937: Add support for hfp pcm loopback id." 2021-02-07 10:02:00 -08:00
qctecmdr 2c3edc9abb Merge "Configs: msm8937: Add support for split a2dp source" 2021-02-07 10:02:00 -08:00
Harshal Ahire 5bbb5fbc53 hal: Update the FM_RX_VOLUME control to SEC MI2S LOOPBACK Volume
Add API to update FM_RX_VOLUME control for yupik target.

Change-Id: I6f8065b4ff130ba609a28d0c15a2b83659c501a5
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2021-02-04 06:46:08 -08:00
Lakshman Chaluvaraju 5d0894e52d hal: sampling rate mismatch during a2dp+spk combo usecase.
During a2dp+spk combo usecase, a2dp device is assigned with
sampling rate of speaker though requested sampling rate of
a2dp was different.

Fix this by moving assignment of speaker sampling rate after
the condition of a2dp+spk combo was validated.

Change-Id: Iae02657bea51807191d864964865465e558b919d
2021-02-04 02:44:04 -08:00
Shalini Manjunatha 3a2e06e759 hal: route use cases properly to SCO device when it arrives
When ever BT_SCO=ON arrives, make sure to route
all use cases to SCO device, otherwise due to delay
in BT_SCO=ON and lack of synchronization for create audio patch
request for SCO device, some times use case not routed properly to
SCO device during VOIP call

Change-Id: I360d195858c26ace18e92fc0975ff3108ba866e4
2021-02-04 02:22:01 -08:00
Amarnath Vangala 5b29217338 configs: lahaina: use 48KHz SR calibration for SPV4 VI path
Calibration data for Speaker Protection VI feedback path is picking
for 8kHz Sampling Rate. Change to pick Calibration data for 48KHz SR.

Change-Id: I49c1918888fa7c07145af1acae0db935390a4c50
2021-02-04 15:48:39 +05:30
sriram kumar 993562cd99 configs: msm8937: Add supported acdb ids for HFP devices.
Update acdb ids for tx and rx devices for HFP usecase on sdm429w

Change-Id: I97756f077f099fe71bbf83fc2897c2965f6ecc6f
2021-02-03 17:03:32 +05:30
Kunlei Zhang 06bae24d6a configs: lahaina: change mics for speaker dmic endfire for yupik qrd
Change mics placement of speaker dmic endfire for yupik qrd.

Change-Id: Ied70ffc492e697fce4c5b38f4e379da52029aedf
2021-02-03 16:20:35 +08:00
qctecmdr a4daf53029 Merge "Configs: msm8937: A2dp direct-pcm support on BT4.2" 2021-02-02 09:13:17 -08:00
sriram kumar b168f876eb configs: msm8937: Add support for hfp pcm loopback id.
Added support for hfp pcd device id for loopback support

Change-Id: I205d229aa3b2ebdbeff5502d1d655e1c1e6ac4bf
2021-02-02 14:51:38 +05:30
sriram kumar cc0e2e6c11 Configs: msm8937: Add support for split a2dp source
Modify audio policy configuration to support
a2dp device routing to primary HAL

Change-Id: Ib0043ae87e2948ffa28863c746070b3dff7fb07f
2021-02-02 14:40:21 +05:30
sriram kumar 4f56d31d12 hal: Fix compilation issue during send audio calibration for hfp use case
Fix multiple definition compilation error for send_audio_calibration_hfp()
API.

Change-Id: I5bc75b0165e2f6a9a532d176b347c6adf442c067
2021-02-02 14:38:14 +05:30
Trinath Thammishetty f3f5347d60 hal: Support HFP volume mixer in platform info xml
Add support to get hfp volume mixer control from platform info
xml

Change-Id: I6ef7508de3da16fa61ae9634b7c580b9c1f8a82c
2021-02-02 14:34:42 +05:30
Sriram Kumar 9c83648c93 hal: Add apptype support for HFP client call
Add support to send apptype and calibration for HFP client call

Change-Id: I71105baa28d98d4646620601a31a5ff373c9e9e9
2021-02-01 13:28:04 +05:30
qctecmdr f210a384d0 Merge "hal: msm8974: Add audio platform info file for yupik idp" 2021-01-29 22:20:15 -08:00
qctecmdr 8a34f5b1bd Merge "configs: lahaina: Add audio platform info file for yupik" 2021-01-29 22:20:15 -08:00
Susan Wang 0e2a7c7a47 hal: audio_extn: Build auto_hal only for automotive
Allow auto_hal lib to build only if
"AUDIO_FEATURE_ENABLED_AUTO_HAL" is true
to prevent unneccessary building for mobile.

Change-Id: I0129ead84e6827e8d8ae33bc2fd2ec1e738a3443
2021-01-29 15:08:05 -05:00
qctecmdr 36526e729f Merge "Configs: msm8937: Add a2dp on compress-offload2" 2021-01-29 08:55:39 -08:00
Kunlei Zhang d20c7a0363 hal: update correct speaker type for mono speaker based
If right speaker is used, mono speaker type still is set
to left speaker by default.

Set correct mono speaker type based on key-value of mono-speaker.

Change-Id: I3f7b6a261636fe981ae853a08ed5f3b4376e3c56
2021-01-29 16:14:22 +08:00
qctecmdr 16416c616e Merge "hal: replace with a proper usb detection method" 2021-01-28 00:04:10 -08:00
qctecmdr bd40b6052e Merge "hal: protect in pcm handle for multithreading cases." 2021-01-28 00:04:10 -08:00
qctecmdr c8c0a883d8 Merge "hal: don't mute stream with combo device during a2dpsuspended" 2021-01-28 00:04:10 -08:00
Xu,Baochu 1a38071c8e Configs: msm8937: A2dp direct-pcm support on BT4.2
Add a2dp direct-pcm support for LAW DVT1 board over BT4.2.

Change-Id: I990ad8eb22fcd20a282136289024c70ef4b634b8
2021-01-28 14:34:57 +08:00
Vatsal Bucha 16307aa0f2 configs: lahaina: Add audio platform info file for yupik
As yupik idp uses sec mi2s for fm, add corresponding audio
platform info file.

Change-Id: I61f8eba392c5c88faa62f385d3c7e3413fec6bd6
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-01-27 19:47:16 +05:30
Vatsal Bucha 33a278ebc5 hal: msm8974: Add audio platform info file for yupik idp
Add audio platform info file for yupik idp.

Change-Id: I2acb261e158d2058d2311ae320ecf8bd8b2c748b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-01-27 05:43:08 -08:00
Xu,Baochu 1a7d55c5ff Configs: msm8937: Modify audio_policy file for LAW
Modify audio_policy file to align with Android R.
This fix no sound from BT headset while voice call.

Change-Id: I84a167bd493fbee2afc941c452633827a671e73c
2021-01-27 15:22:48 +08:00
Xu,Baochu a50fba41c8 Configs: msm8937: Add a2dp on compress-offload2
Add a2dp on compress-offload2 for direct-pcm path

Change-Id: Iea24c211d4280fcfad269cf42de6b6bed17ea7e3
2021-01-27 11:29:29 +08:00
Xu,Baochu cb54780c50 Configs: msm8937: Support split a2dp
Support split a2dp for wearable depend on
AUDIO_FEATURE_ENABLED_SPLIT_A2DP.

Change-Id: I1eed87430e7daf0245c6801279895ceb5b9b7e93
2021-01-27 11:28:57 +08:00
Xu,Baochu 1e9941597b Configs: msm8937: Add encodedFormats for A2DP
Add encodedFormats for A2DP devicePort for wearable.

Change-Id: I4252da09754565aef22ce2b06749fc6e9d7146f3
2021-01-27 11:28:30 +08:00
Xu,Baochu d13a7e1f5e Configs:msm8937: Add audio policy file for LAW
Add audio policy config file for LAW.

Change-Id: Id13e633f7dfba2f4cc88fdf77d1e1040b3301b03
2021-01-27 11:27:59 +08:00
Xu,Baochu 15f2644396 Configs: msm8937: Select right audio_policy file
Select right audio_policy_configuration.xml file for wearable.
Remove /vendor/etc/audio/audio_policy_configuration.xml for
it will be sellected with high priority.
Then /vendor/etc/audio_policy_configuration.xml will be ignored.

Change-Id: I5a784f8fd02404e046ad51c10e00531af2eb6572
2021-01-27 11:27:29 +08:00
qctecmdr 88a60b9841 Merge "hal: reconfig headphone clk to 48K when haptics starts" 2021-01-25 09:24:03 -08:00
qctecmdr ef4697852e Merge "hal: set stream channel when configuring HDMI devices" 2021-01-25 09:24:03 -08:00