Commit Graph

20 Commits

Author SHA1 Message Date
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