Commit Graph

49 Commits

Author SHA1 Message Date
EcrosoftXiao
d10c89e7a2 sm8350-common: audio: Nuke unsupported haptics output configuration
* Fixes Pixel ringtones

Change-Id: Ib81fd4209be8201d13aeea485910169371f82582
Signed-off-by: Bartłomiej Rudecki <ejbtrd@gmail.com>
2024-02-10 11:53:53 +08:00
llololo
2c43d6df60 sm8350-common: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2023-03-19 17:12:27 +01:00
dianlujitao
f6d9784077 sm8350-common: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2023-03-19 17:12:27 +01:00
Sebastiano Barezzi
554f3169e8 sm8350-common: audio: Nuke misoundfx effects
Change-Id: I9a15982efa28456b8340665ee628a4074bb0501e
2022-08-29 01:53:16 +02:00
Laxminath Kasam
8c38b65fac sm8350-common: hal: audio: Update gain to 84 for WSA MCS devices
As per systems team requirement, increase WSA MCS volume to 84.

Change-Id: If74246d0c5941b9d07fad5908f728be3af302bd6
2022-08-29 01:53:16 +02:00
Anver sadhique
dbb8b462db sm8350-common: hal: set valid and supported channel mask for earpiece
For earpiece to be properly enumerated as a output device,
set valid and supported out_ channel mask.

Change-Id: Ic83b009956ff43567b3acbb186d0069b16e91e83
2022-08-29 01:53:16 +02:00
Lakshman Chaluvaraju
cb78e07636 sm8350-common: configs: Add Stereo config channel support to usb surround sound
Adding stereo config channel support to usb surround sound proflle
to address CTS-V failure issue seen due to mismatch in channel mask
support for record usecase

Change-Id: Ib50511d2fa6df24b3aa4764553cd48726129b2c2
2022-08-29 01:53:16 +02:00
LuK1337
8578c54b49 sm8350-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2022-08-29 01:53:16 +02:00
Arian
dd54d84fe3 sm8350-common: audio: Drop LHDC audio format
Change-Id: Iee704477e21854f424565c4dfb76d50eeb66e819
2022-08-29 01:53:16 +02:00
Arian
65604695ca Partially revert "sm8350-common: audio: remove unsupported configuration options"
Bring raw mixport back and drop "USB Device In" and "USB Headset In" from
"primary input" again.

This partially reverts commit 0b7df4e151.

Change-Id: I547518fbd6318dcb5fcb7c4ab85e8ad9da3d48ad
2022-08-29 01:53:16 +02:00
Arian
c2e6077cdf sm8350-common: Drop audio_configs.xml
Change-Id: I990f5c195adf04a407489c677640ecf0e1f0f48a
2022-08-29 01:53:16 +02:00
Siddhesh Sahane
4c5f36795a sm8350-common: audio: config: Add support for LC3 a2dp capture
Add format support for LC3 a2dp capture.

Change-Id: Ib6627d7f4cba0370b4ae300e10b8448f227517a2
2022-04-01 17:39:06 +02:00
Preetam Singh Ranawat
ef5fbabb0b Revert "sm8350-common: audio: configs: Add support for LC3 format."
This reverts commit 1d4c56e65865e10b3a36de5713557e0a7c552151.

Change-Id: Ie23807aecb01e89cfa3dbc31b0ba97793932da22
2022-04-01 17:39:06 +02:00
Mingshu Pang
53f738d12f sm8350-common: audio: Remove supporting usb device from "fast input" and "quad mic"
It will select "fast input" or "quad mic" as a compatible profile if
the parameter from recording app can't match the profile of
usb_surround_sound completely although connecting usb device.

Remove the usb device from the supported devices list of "fast input"
and "quad mic" for exact match.

Change-Id: Ie99886552082e99ac19193907b271131a2502d33
2022-04-01 17:39:06 +02:00
Manisha Agarwal
a137606e4a sm8350-common: audio: configs: Add support for LC3 format.
Add support for new LC3 format AUDIO_FORMAT_LC3
added for BLE support.

Change-Id: Ifd80fee833e05901544e2952781a460815661fb6
2022-04-01 17:39:06 +02:00
Mingshu Pang
6c6d38eb9c sm8350-common: audio: Remove dynamic attributes from APS config
Remove dynamic attributes from APS config since it
is not supported.

Change-Id: I5ad81b67e7b6bb33e245a2620622f1e2e2a76506
2022-04-01 17:39:06 +02:00
Erfan Abdi
d65695502b sm8350-common: Decommonize some audio configs 2022-04-01 17:09:02 +02:00
Cosmin Tanislav
0b7df4e151 sm8350-common: audio: remove unsupported configuration options
Remove the following mixports because of the usage of unsupported
flags:
 * virtual_deep_buffer
 * uplink downlink input
 * voip record
 * Multiroute

Rewire USB Device In and USB Headset In to go through primary input,
since uplink downlink input does not exist anymore.

Also, remove raw mixport and its uses, since it can cause sound
popping.
2021-09-07 01:36:14 +03:00
Cosmin Tanislav
3c1a37828c sm8350-common: audio: use mi audio policy configuration
Xiaomi overrides the default audio policy configuration from
vendor/etc/audio/sku_lahaina inside of AudioPolicyManager,
and uses vendor/etc/audio_policy_configuration_mi.xml.

Use the proper configuration, but keep copying it into the old
location, since our AudioPolicyManager only knows how to load
it from there.
2021-09-07 00:23:16 +03:00
Cosmin Tanislav
bbe18b5c8c Revert "sm8350-common: use aosp audio policy configuration"
This reverts commit f6bdf3e645.
2021-09-06 08:30:18 +03:00
Cosmin Tanislav
12d90e3715 sm8350-common: audio: remove unused wcd937x config 2021-09-06 08:29:46 +03:00
Cosmin Tanislav
f6bdf3e645 sm8350-common: use aosp audio policy configuration 2021-09-05 20:32:48 +03:00
Cosmin Tanislav
236e8e4f37 sm8350-common: update audio configs 2021-09-03 22:11:38 +03:00
Volodymyr Zhdanov
18b8ed51a0 sm6250-common: audio: update configs from curtana RKQ1.200826.002 2020-12-06 22:48:36 +02:00
Weiyin Jiang
bdd5935f43 sm6250-common: audio: add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2020-12-05 00:36:18 +02:00
Jasmine Cha
cff722037e sm6250-common: audio: correct routing order for voip output
Routing primary output before voip_rx output will cause unexpected
RX/TX path suddenly and unmuted voice stream during when system
plays touch sound and switches path between handset and handsfree.

Bug: 152292858
Test: manual test in VoIP
Test: Regression test for VoIP(b/153276370) - pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia60802ec887f0dfeaa0f93d151ba2f2c50e0d41d
2020-12-05 00:36:18 +02:00
Volodymyr Zhdanov
9c283de32d sm6250-common: remove unused audio configs 2020-12-05 00:36:18 +02:00
Volodymyr Zhdanov
85d8bd55f9 sm6250-common: audio: cleanup mixer paths
* fix formatting
* cleanup unsupported paths
* use volume gain from LA.UM.9.1.r1-07300-SMxxx0.0
2020-12-05 00:36:18 +02:00
Prasad Kumpatla
0c96b968d9 sm6250-common: audio: add mixer controls for lito and atoll display ports
Add mixer controls for lito and atoll display ports on QRD
and speaker-safe display path in IDP and CDP.

Change-Id: Idfa9860248db51d0c147b4fee2df479e200ca81e
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
2020-12-05 00:36:18 +02:00
justinweng
b8dbd31d09 sm6250-common: audio: offload 24 bits playback supports mp3/aac format
compress_offload_24 supports mp3/aac format

Bug: 132425237
Test: mp3 playback

Change-Id: I5742db45908f9d600cab0fef62badf447fc5c585
Signed-off-by: justinweng <justinweng@google.com>
2020-12-05 00:36:17 +02:00
justinweng
6e3ae51fdc sm6250-common: audio: update audio_io_policy for VoIP
Add VoIP Tx app type config for pcm and low-latency captures.

Bug: 133297310
Test: make a voip call

Change-Id: I5dd67167b7568fd08a7ae979b50417f2627dc7d9
Signed-off-by: justinweng <justinweng@google.com>
2020-12-05 00:36:17 +02:00
Shalini Manjunatha
39f2077781 sm6250-common: configs: Remove TelePhony Rx from primary input
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: I8a036423da689a4de9abe767a0b6a595b4e068f1
2020-12-05 00:36:17 +02:00
LuK1337
6f56a15ead sm6250-common: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2020-12-05 00:36:17 +02:00
Samyak Jain
241bbfee1a sm6250-common: audio: Remove 2 instance support for "primary input"
As FM app no longer uses app loopback,
2 instances of "primary input" is not needed

Change-Id: I7d5e941e916bdf221798ca89360e4751d4af322b
2020-12-05 00:36:17 +02:00
Mingshu Pang
84b08566ad sm6250-common: audio: Add fast input profile for the record concurrency
If two recording apps both select the primary input with
fast flag, second app will fail to start because the hal
doesn't support two inputs with the same use case if input
can't be reused since of the limit of primary input's max
open count.

Add the dedicated profile for “low-latency-record” to make
the first input can be reused if possible.

CRs-Fixed: 2550228
Change-Id: I233bd3eaf614b195df0a41402747f496d3a56b44
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
d332175021 sm6250-common: remove unused audio configs 2020-12-05 00:36:17 +02:00
Zhou Song
cb2d28241f sm6250-common: audio: add support of BT SCO mic for record_24 profile
Usecase audio-record and audio-record-compress2 can both be
mapped to record_24 profile, if both the usecases are active,
when BT SCO mic is connected, due to no more available usecases
in audio hal, check inputs for device can fail for other input
profiles which support BT SCO mic.
This makes BT SCO mic connection to be rejected and phone call
can't route to BT.
Add the support for record_24 profile, so existing input handle
can be returned when checking inputs for BT SCO mic.

Change-Id: I63046ec87e35774474e08762fb6aa6275318b2c8
2020-12-05 00:36:17 +02:00
Aditya Bavanari
11fb3c5a45 sm6250-common: audio: Add backend config for handset TMU operator device
Backend config is missing for voice handset when TMU operator
is used due to which hw params is not set properly.
Add backend config for handset tmu operator sound device
in kona, lito and atoll variants.

[wight554: update interface to match SND_DEVICE_OUT_VOICE_HANDSET]

Change-Id: I199fa0bd33d682a129a4e77f25d32f615b175310
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
2020-12-05 00:36:17 +02:00
Preetam Singh Ranawat
92b6d081b0 sm6250-common: audio: Add DEFAULT adm_config profile
This DEFAULT adm_config profile will be used whenever a session is
in non-LPI with FFECNS disabled.
AFE will connect to ADM but will have none_topology.

Change-Id: I636667c376aa4309b67897e5dd162c4d318863f8
2020-12-05 00:36:17 +02:00
Sujin Panicker
33aa1748e1 sm6250-common: audio: Add mixer controls for call screen support
Add mixer controls for proxy ports.
Enable call screen mode support in audio_policy_config.

Change-Id: I88eb274e8b88d089da930a786f9ea8085955ae3b
2020-12-05 00:36:17 +02:00
Mingshu Pang
d0af0fb586 sm6250-common: audio: Add built-in/Back mic to primary input sources
Built-in mic and Built-In Back Mic aren't in supported devices
list of primary input, so record_24 is selected if without
connecting any headset, if there is more than 2 capture
concurrency, it will fail to open input for primary input when
connecting headset in AHAL.

Add built-in mic to primary input sources to reuse input to avoid
to open extra input stream in AHAL.

CRs-fixed: 2643298
Change-Id: I1e062520f7fb03ae97c88341dd58f77177dbe030
2020-12-05 00:36:17 +02:00
Samyak Jain
be8bff9f60 sm6250-common: audio: Add sound trigger implementer version
Add sound trigger implementer version. Set the version value to 0x0101.
This is to add SVA4.0 support from STHAL so that the client app can
make use of this version info to get to know of platform SVA4.0 support

Change-Id: I85945ba49f31e2a7b9295e77a629737ddcb8d7d5
2020-12-05 00:36:17 +02:00
Kunlei Zhang
c40a268ee8 sm6250-common: audio: set correct backend name for dual mic device
Set correct backend name for input device during stereo recording.

Change-Id: Ic77db5c446264fd322fe890a13b536f0f192df53
2020-12-05 00:36:17 +02:00
Zhou Song
c00edc31c7 sm6250-common: audio: allocate dedicated pcm node for in call recording
Allocate dedicated pcm node for in call recording, this can
avoid conflicting with generic audio recording for concurrent
recording scenarios.

Change-Id: I77f78a495623a55ad9c475d2554e7af326c68d7b
2020-12-05 00:36:17 +02:00
Volodymyr Zhdanov
bc47a90e2f sm6250-common: add device-specific audio configs to device tree 2020-12-05 00:36:17 +02:00
Lakshman Chaluvaraju
2a49a663cc sm6250-common: configs: Enable Stereo channel support for voip over audio path
Add changes to support stereo channel configuration
for voip over audio path.

Change-Id: Ib454d24a4017d3f91d429d47c52d4f86e5a18e97
2020-12-05 00:08:57 +02:00
Demon000
865a0a69b6 sm6250-common: audio: remove raw flag for audio pop 2020-07-17 03:42:59 +03:00
LuK1337
a44d3029b2 sm6250-common: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I1f029d7df9a306f411598b0cffc536409cb2ae95
2020-07-17 03:36:33 +03:00
Demon000
2d3d55dffd sm6250-common: import audio policy configuration
From
https://source.codeaurora.org/quic/la/platform/hardware/qcom/audio/plain/configs/atoll/audio_policy_configuration.xml?h=LA.UM.8.9.r1-09600-SM6xx.0.
2020-07-17 03:36:05 +03:00