Commit Graph

31 Commits

Author SHA1 Message Date
Daniel Jacob Chittoor
850e9e0cd5 avicii: Use 24bit pulse-code modulation for deep buffer playback
* Align with OnePlus' 24 bit-width audio enforcement.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: Ia0e067a6f7f6ff4ca3bf97b896e38a851954d1a9
2023-03-02 00:45:07 +05:30
Daniel Jacob Chittoor
767cd605d5 avicii: audio: Set correct pulse-code modulation format for primary output
* OnePlus had made the corresponding change in the IO policy config
   but however it seems that policy side configuration was left as is
   due to which format routing to device was broken as the IO policy
   specificed a 24bit PCM format for primary audio meanwhile the policy
   config marked 16bit PCM as the format causing backend failures.

 * This will also align to OnePlus's 24 bit width audio enforcement.

Signed-off-by: Daniel Jacob Chittoor <djchittoor47@gmail.com>
Change-Id: Ic5e715311c6d3c46579b93346a9ffd814e022e91
2023-03-02 00:45:07 +05:30
iovxw
ee0a6fdc38 avicii: Remove FM Tuner from audio input devices
Change-Id: Id90fc9ac1ad24b5d439592aecfdf4f8912893935
2023-03-02 00:45:07 +05:30
LuK1337
b4e8d61cb8 avicii: 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: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
2023-03-02 00:45:07 +05:30
KakatkarAkshay
41d0f8b345 avicii: Update Audio configs from AC2003_11_F.17
Change-Id: I753a992d7b4ab2451965e5cc7c00ef9452499239
2023-03-02 00:45:07 +05:30
llololo
8244196031 sm8250-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-01-09 17:59:40 +01:00
Michael Bestas
172439ee05 sm8250-common: Fix disabling A2DP offload
Change-Id: I49c717a19afb2491b6280670fdbfe8765813a4dc
2022-09-19 16:27:33 +02:00
Bruno Martins
4045d01d6a sm8250-common: Remove QTI BT stack bits
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2022-09-19 16:27:30 +02:00
Michael Bestas
20623a55ab sm8250-common: Import audio policy configurations from audio HAL
Change-Id: I7615157268ca7bf5794fcfff54789a00c0d630d5
2022-09-19 13:18:16 +02:00
Alexander Koskovich
c20e517ca4 sm8250-common: Move device specific audio configurations out of common
Change-Id: Ib52e1d21c1fab64a73e31c296e732bfa16032d9e
2022-08-19 21:59:31 +02:00
Alexander Koskovich
de4e0b7e7a sm8250-common: Use audio IO policy from IN2025_11.C.33
* Has important stuff for 24 bit playback.

Change-Id: I6b51ad80967293856145a0650c4df9971eadeabe
2022-08-19 21:59:31 +02:00
Alexander Koskovich
f44013625e sm8250-common: Update audio configurations from IN2025_11.C.33
* Copy configurations from the audio HAL where it
   makes sense.

Change-Id: I62737d24f309203010d42988bde453593ab7f204
2022-08-19 21:59:19 +02:00
LuK1337
16c1dc83b2 sm8250-common: audio: Switch speaker-dmic-endfire ACDB id to 43
Apparently switching SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS to the
same ACDB id as SND_DEVICE_IN_VOICE_SPEAKER_DMIC improves
WhatsApp microphone volume when in speaker mode.

Change-Id: I4eb72fd2726d8ea10da56a76b820ee51a24d3c67
2021-03-07 23:06:43 +01:00
LuK1337
2ed8019dd4 sm8250-common: Import config/script changes from OOS 11.0.4.4
Change-Id: I90d3f654f18d90d25f7b2321dbfebfecc79ee958
2021-02-08 20:12:21 +01:00
Lakshman Chaluvaraju
cb57f3d6f0 sm8250-common: Enable Stereo channel support for voip over audio path
Add changes to support stereo channel configuration
for voip over audio path.

Change-Id: Ib454d24a4017d3f91d429d47c52d4f86e5a18e97
2021-02-01 14:51:32 +01:00
Jaideep Sharma
a3a7f782df sm8250-common: Provide support for callscreening for kona/lito.
add support for callscreening support in audio_policy_configuration
- add mixer paths related to proxy ports needed in call_screening

Change-Id: Ib0c220fa44c23454e71e772bfa406bd82c06b90d
2021-02-01 14:51:32 +01:00
Zhou Song
4ad82c6dab sm8250-common: Move "fast input" and "quad mic" to the bottom
Generic recording and SVA LAB capture usecase can select
"fast input" or "quad mic" as a compatible profile, due
to the max active count is 1, audio recording and SVA
LAB capture concurrency can be failed.
Move the two profiles to the bottom for exact match
purpose.

Change-Id: Idaa615e653f0cf49e465809ab0034c0e56470a6e
2021-02-01 14:51:32 +01:00
Kunlei Zhang
ca267b96ef sm8250-common: Removing unsupported source
Removing dsd_compress_passthrough from headphones/
headset/line.

Change-Id: I136005329ab3764f57b53c118694ad44eb9c0a21
2021-02-01 14:51:32 +01:00
Kunlei Zhang
81a25d5ca3 sm8250-common: Use usb_surround_sound input profile for usb capture
Use usb_surround_sound input profile for usb capture to avoid
opening a new input for the second usb capture.

Change-Id: Id17a5daf9aefb390f374754c340a69b2113fe987
2021-02-01 14:51:32 +01:00
Zhou Song
4fe75c1701 sm8250-common: 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
2021-02-01 14:51:32 +01:00
Dhananjay Kumar
cdfe17d977 sm8250-common: Remove surround recording support from audio policy config xml
Remove surround sound recording support from audio policy config xml
as its resulting in CTS failure due to mismatch in channel index support
for record usecase.

Change-Id: Idf50b3f2e71c4209720e79c0248ce74bc1a0edf2
2021-02-01 14:51:32 +01:00
LuK1337
bc11d47a23 sm8250-common: Import audio configs
Change-Id: Ia3d9ed83f96d781f06d8f8eb3069c7a6276e7e70
2021-01-06 11:18:27 +01:00
LuK1337
f10677c407 sm8250-common: Sync audio_policy_configuration.xml with OOS 2020-06-27 00:17:27 +02:00
LuK1337
82a53244e0 sdm845-common: audio: Switch to CAF A2DP configuration
Change-Id: Id70fb654f8ab1451ca84e0e34e2efe9b51e7d174
2019-12-21 23:37:29 +01:00
Sujin Panicker
aba9d5796c sdm845-common: audio: Remove unnecessary profiles from USB input device
CTS test USB Audio Peripheral Attributes fails due to
extra profiles getting added

remove the extra profiles added for USB input device

Change-Id: I19311a65612bb8ecad40d9a3714a5cfe32dce110
2019-12-21 23:34:45 +01:00
Sujin Panicker
f7d45f32f5 sdm845-common: audio: Add voip_tx profile to policy conf
Skype+camcorder concurrency usecase makes Skype
to mute since both uses same record_24 profle, due to
which second audio record request de-prioritizes first
setting isTopOrLatestActive(=true)

Add voip_tx profile making skype to use fasttrack rather
than using record_24 profile

Change-Id: I4a6cee00787f8f587b088d4586e8d13d824144c3
2019-12-21 23:34:45 +01:00
LuK1337
105677e43e sdm845-common: Update audio policy configuration
Change-Id: I93a44b238eb9092018b93429565035e0f2b153a0
2019-09-13 19:43:19 +02:00
LuK1337
a871fa7e4f sdm845-common: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2019-06-24 22:05:56 +02:00
Luca Stefani
11b69a1f0c sdm845-common: Update audio policy configuration to match P
Change-Id: I2696213354167443e9442f8d29c1d1c11427a57d
2018-12-24 22:35:43 +01:00
LuK1337
977444af69 sdm845-common: Load A2DP configuration from a2dp_audio_policy_configuration.xml
* CAF configuration doesn't really work for us.

Change-Id: Ib062430f9005a67354e2352a81fffd8cadc3c7cf
2018-10-14 14:34:09 +02:00
LuK1337
1272127b9a sdm845-common: Bind mount our own audio policy configuration
Change-Id: I830b0488d34f76169bceb33503eb701b3dfbfd27
2018-10-14 14:34:09 +02:00