52 Commits

Author SHA1 Message Date
dianlujitao
53965e5da5 sm8750-common: Adapt proprietary files list
Change-Id: I2c36864adf254bc445d10d30da2a771dd3bf1b20
2025-09-06 00:40:01 +01:00
Bruno Martins
35b578ffc4 sm8750-common: audio: Import select OEM edits
Skipped all changes related to BINAURAL_RECORD, SPATIALIZER and
VIRTUAL_AUDIO features as those are all unsupported in AOSP.

Change-Id: I44e1e4c34e5ab2ec6e07d7d77a18cf918a526c2d
2025-09-05 17:21:49 +01:00
chandu078
430c83b5f6 sm8750-common: audio: Remove audio/x-lc3 encoding for BT A2DP
Change-Id: I0f3ecd29168b0b44c247a16ab4e824f2b2bbe295
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2025-09-05 17:21:49 +01:00
Bruno Martins
3830c01c66 sm8750-common: audio: Update configurations for sun platform
Change-Id: I421e009e7aa5e98628528d96b3e78d0946bef19b
2025-09-05 17:21:49 +01:00
Bruno Martins
2147271b56 sm8550-common: audio: Decommonize volume configurations
As seen in other SoC families, these are typically device-specific.

Change-Id: Ib029495162365ad41d936b361a12530593a6d301
2025-07-01 23:56:51 +01:00
Sebastiano Barezzi
e40ee15f37 sm8550-common: audio: Use AOSP USB v2 audio HAL
Change-Id: I579e442a8c41ec62acc1e5be7478889bf5bc24b8
2025-02-23 23:33:50 +00:00
Kumar Anurag Singh
33ec5cf376 sm8550-common: audio: remove direct flag for VOIP RX
remove direct flag for VOIP RX.

Change-Id: I9ee6f300b7a891afd1ad06c063424509d16d271e
2024-09-15 09:20:00 +01:00
Bruno Martins
aeb1c16a34 sm8550-common: audio: Remove LC3 as a supported BT A2DP codec
Similarly to 62861bde94
this time around with AUDIO_FORMAT_LC3 breaks BT A2DP after U QRP2.

Change-Id: I6152c19281dac2c6748e535fa20b5518c6f2a4fe
2024-03-22 23:41:31 +00:00
Bruno Martins
1aeec1b45a sm8550-common: Update from OOS 11.A.38
Change-Id: Ibdc84266921447a348759b4a5618abbd688ecd40
2024-01-04 14:21:18 +00:00
Bruno Martins
b1f1e181a3 sm8550-common: Bring in select pre-OOS 14 audio changes
Somehow missed during last updates from OOS 13.x.

As sidenote, all changes related to spatial output were skipped,
keeping AOSP output (and aligned with vanilla kalama config) instead
of switching to custom one.

Change-Id: I7e0864eb31ba9637af2fbd14bb55d971b7e14cd9
2023-12-05 09:54:16 +00:00
Shivank Garg
09350ebeed sm8550-common: audio: Update APM to use AUDIO_OUTPUT_FLAG_SPATIALIZER
-AUDIO_OUTPUT_FLAG_SPATIALIZER is standard flag for spatial audio

Change-Id: I95b378addddee2a04246d3f001b51fd556585617
2023-11-29 23:20:03 +00:00
Preetam Singh
07181e864b sm8550-common: audio: Add spatial output stream for BT sco and BLE devices.
Change-Id: I07e163feeaa32fd64a30a81ec3c7b3a94e13e42d
2023-11-29 23:20:03 +00:00
Preetam Singh
b4a780a688 sm8550-common: audio: Add spatializer output.
-Added spatializer mix port and routes for A2DP

Change-Id: I76b7fde6c2aa22f98b66f9fb6f9c847346ba6429
2023-11-29 23:20:03 +00:00
Chandu Dyavanapelli
34d07d4125 sm8550-common: audio: Import policy configuration changes from OPLUS
Change-Id: I6fb3700c8078737baf2a36035b258e4351a084db
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-07-25 10:14:07 +01:00
Chandu Dyavanapelli
6ba46935ab sm8550-common: audio: Remove spatial output
There's no proper support for spatial audio in AOSP.

Change-Id: I9c90fead822a5b9c846142717c98ce5aab8c63bf
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2023-07-25 10:14:07 +01:00
Bruno Martins
637f5de3a1 sm8550-common: Wire up audio and update configurations
Change-Id: I3da040b9709cd0c57baacd2808b1a09d627506eb
2023-07-08 10:20:25 +01:00
micky387
62861bde94 Revert "sm8350-common: Add support for BT LC3 codec"
This reverts commit 5bf0dcf7fe.

Reason for revert: AOSP bluetooth stack partially removed support for
LC3 in QPR1 in favor of Opus. Having LC3 listed here breaks A2DP
offload, so remove it.

Change-Id: I134cf0bff70f8fc96673dc027f54b7804b1a1f5e
2023-01-11 20:45:52 +02:00
Michael Bestas
49c0756f6d sm8350-common: Remove leftover A2DP input configuration
Change-Id: I29e7c09f9ba13717a996755e4f9320485cacdff0
2023-01-09 01:57:02 +02:00
Aaron Kling
67d73ddeb5 sm8350-common: Remove references to a2dp module
APM would fail to parse the config anyway:

  E DevicesFactoryHAL: loadAudioInterface couldn't load audio hw module audio.a2dp (No such file or directory)
  W DevicesFactoryHalHidl: The specified device name is not recognized: "a2dp"
  E AudioFlinger: loadHwModule() error -22 loading module a2dp
  W APM_AudioPolicyManager: could not open HW module a2dp

Change-Id: Iaa1be881cfe8f8474cef0ba46e1b0a62b59e14be
2022-10-22 17:40:44 +01:00
Michael Bestas
2579663b0c sm8350-common: Fix disabling A2DP offload
Change-Id: I49c717a19afb2491b6280670fdbfe8765813a4dc
2022-09-19 11:39:17 +01:00
Bruno Martins
b491776b0d sm8350-common: Switch to AOSP BT stack
Change-Id: Ice6c2b0735aa7cb4b2e638a794c778883e706c97
2022-09-19 11:38:01 +01:00
Michael Bestas
0fcc7f8a25 sm8350-common: Import audio policy configurations from audio HAL
Change-Id: I7615157268ca7bf5794fcfff54789a00c0d630d5
2022-09-18 00:14:40 +01:00
Alexander Koskovich
93ee9de1cc sm8350-common: Update from OOS 11.C.61
* Drop ro.soc.model from vendor.prop as it's set by
   init.qti.qcv.rc now.

Change-Id: I076603078169bed08035bb7e6311b649b9c1fdc0
2022-07-23 10:46:13 +02:00
Alexander Koskovich
7ee3fa1847 sm8350-common: Move device specific audio configurations out of common
Change-Id: Ib52e1d21c1fab64a73e31c296e732bfa16032d9e
2022-06-04 09:50:41 +02:00
Alexander Koskovich
18bce92a56 sm8350-common: Use audio IO policy from LE2125_11.C.48
* Has important stuff for 24 bit playback.

Change-Id: I6b51ad80967293856145a0650c4df9971eadeabe
2022-06-01 17:40:13 +02:00
Alexander Koskovich
fdeabe1a3a sm8350-common: Update audio configurations from LE2125_11.C.48
* Copy configurations from the audio HAL where it
   makes sense.

Change-Id: I62737d24f309203010d42988bde453593ab7f204
2022-05-28 16:36:43 -07:00
Zhou Song
5bf0dcf7fe sm8350-common: Add support for BT LC3 codec
Add format support for LC3 codec of BT device.

Change-Id: I3e14fcf226ef3c24b657ece41ed5ed8e004e34e8
2021-06-01 22:29:59 +01:00
Vignesh Kulothungan
9c00d0f7ba sm8350-common: Add support for native dsd
Add new mixport in policy configuration to support
native dsd playback. Add routes from dsd mix port to
headphone/headset devices.
Add mixer control path for headphones-dsd device.
Add RX_CDC_DMA_RX_5 as backend interface for headphones dsd.

Change-Id: I77a94a57eb27aacd8e08db9191e54b692aa1cc36
2021-06-01 22:29:59 +01:00
Zhou Song
ae172d641b sm8350-common: Adjust haptics usecases definitions
Adjust definitions for haptics usecases for better
maintenance.

Change-Id: I50cd85c5e00b742a03e8667d85d4020100795e26
2021-06-01 22:29:59 +01:00
Meng Wang
edfe327f27 sm8350-common: Update mixer control and be for haptics devices
Update mixer control and be for haptics devices.

Change-Id: Id7475b35d3a6b6bd67543006ff7d9d1b416b70f6
2021-06-01 22:29:59 +01:00
Meng Wang
7a2990ca39 sm8350-common: Add haptics support
Add haptics support.

Change-Id: I35e3ac85addf1be7f46dbbb34ed176428aa70710
2021-06-01 22:29:59 +01:00
Zhou Song
d8977f9f0e sm8350-common: Add dedicated hearing aid proxy configs
Add hearing aid configs in HAL.

Change-Id: Iaaec0b4d097fca67d35cb1e098c23f51b331837f
2021-06-01 22:29:58 +01:00
Bruno Martins
2947ddf81e sm8350-common: Update audio and media configs from OOS 11.2.5.5
Note that media_codecs.xml, media_codecs_performance.xml and
media_profiles_vendor.xml are now plain copies of media_codecs_lahaina.xml,
media_codecs_performance_lahaina.xml and media_profiles_lahaina.xml,
respectively.

Change-Id: I420d583f014ba4fd13f3e8f9629f36f7d158c957
2021-06-01 22:29:40 +01: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