Commit Graph

29 Commits

Author SHA1 Message Date
Anver sadhique
30b6244575 sm6150-common: audio: 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-06-28 00:41:07 +02:00
Anver sadhique
ee19f52144 sm6150-common: audio: Fix copyright
Reverting LF copyright year back to original.

Change-Id: Ia8b69b705f17727d9ae6ba29c6154b5fef36a292
2022-06-28 00:41:07 +02:00
Anver sadhique
c58c4b845b sm6150-common: audio: Remove dynamic attributes from APS config
Remove dynamic attributes from APS config since it
is not supported.

Change-Id: I48e232b831cfb0aa8ba9ab875aa92119140008ef
2022-06-28 00:41:07 +02:00
Lakshman Chaluvaraju
7426fb1713 sm6150-common: audio: 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-06-28 00:41:07 +02:00
Weiyin Jiang
e365753bab sm6150-common: audio: Add compress recording configurations
Add compress recording configurations

CRs-Fixed: 2764160
Change-Id: I8e8b1f89d7f28d997342c5946d0a35111e941ec1
2022-06-28 00:41:07 +02:00
LuK1337
907ff515f3
sm6150-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-06-18 18:34:31 +02:00
dianlujitao
548f696fba
sm6150-common: audio: Disable audio ULL mode
* fixes crackling noise while playing some sounds

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2021-06-18 18:34:31 +02:00
Arian
a04fb57165
sm6150-common: Re-add shoebox and audio sphere effects
This partially reverts c77b652733 and fea051b9c7.

Change-Id: Id8519fc86e914ed2f5e9af14279fceaa6f97c35b
2021-06-18 18:32:31 +02:00
raghavt20
0aa378102c
sm6150-common: Transform davinci into common tree
* The following things are left in devices, because they're device specific
  - voip compress properties
  - HVDCP properties
  - audio configs
  - power profile
  - rounded corner configuration
  - partition configuration
  - FOD
  - camera motor
  - NFC
  - board-info
  - fstab
  - ipa and graphics firmware
  - shipping and manifest target level

Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I8bef29041f8f239361b999fc8ab1a43cc2ebb86b
2021-04-25 15:18:14 +02:00
Arian
dcc5649777
davinci: audio: Increase headphones echo reference channels
Change-Id: Ic5d0ef1e4a5319763a195420919a81c9c39630ce
2021-04-25 14:49:59 +02:00
Arian
b4fb99e818
davinci: audio: Add handset backend
Change-Id: Ia9653281b88fb7cfff878665dec7649bf7d37735
2020-12-30 02:02:58 +01:00
Arian
588c8b5040
davinci: audio: Apply cleaned xiaomi mixer_paths changes
Change-Id: I05b46a8274b91ac0fc9c7d7ff86e0e16a54a6dab
2020-12-30 02:02:58 +01:00
Arian
bc93432e65
davinci: audio: Apply cleaned xiaomi audio platform info changes
Change-Id: I5e79f447ef05f2400a709bfe153eda33b5bf0987
2020-12-30 02:02:58 +01:00
Arian
103d331711
davinci: audio: Check out mixer paths and platform info to LA.UM.9.1.r1-07300-SMxxx0.0
Change-Id: I285c7bdadee4f7fe271a2e8b4ab4b991895f2781
2020-12-30 02:02:58 +01:00
Arian
c6d2fcb8a4
davinci: audio: Check out audio policy to LA.UM.9.1.r1-07300-SMxxx0.0
Change-Id: I621c12d3ff8ad185abd5f1277c8a13ad7aa89285
2020-12-30 02:02:58 +01:00
Arian
449aca62a9
davinci: audio: Fix handset echo reference paths
* Xiaomi is using the earpiece echo reference paths in their HAL,
  while CAF uses handset paths.

* Rename the earpiece mixer paths to handset mixer paths in order
  to apply the correct echo reference for the CAF hal.

Change-Id: Id917fb33f49009e8145c58638e9fa6d05670473e
2020-11-28 18:12:02 +01:00
Arian
4fa86d3578
davinci: audio: Add echo-reference headset paths
* xiaomi uses the echo-reference headphones path also for headsets

Change-Id: Ica5e5c8c1ca1378a807614609a466e6d1129f2ce
2020-11-28 18:12:02 +01:00
Arian
374b2dc57a
davinci: audio: Adjust echo reference speaker path names for caf audio HAL
* Xiaomi's audio HAL uses the "echo-reference-voip speaker" path during voip
  calls in speaker mode, while the CAF hal uses the "echo-reference-voip" path.

* That led to an echo in voip speaker calls since xiaomi appends speaker
  to the path name and hence the echo reference wasn't set up properly, because
  xiaomi did not apply their echo-reference edits to the default path.

* To fix this we can apply xiaomi's "echo-reference speaker" and
  "echo-reference-voip speaker" as "echo-reference" and "echo-reference-voip".

* Remove the "echo-reference speaker" and "echo-reference-voip speaker" paths
  because they are the same as "echo-reference" and "echo-reference-voip" and
  even if the HAL will support speaker paths one day, it would not be needed for
  us since we don't need to differ between speaker and no suffix.

Change-Id: I9c2d42db6870c7f3579f5d96756a8bd4063022c8
2020-11-28 18:12:01 +01:00
Arian
991edc2c96
davinci: Update from global stable V12.0.3.0.QFJMIXM
Change-Id: I5af4d9bb9f386707df37a6856805625c75cff7c0
2020-11-23 20:44:38 +01:00
Arian
fea051b9c7
davinci: audio: Drop audiosphere
Change-Id: I3263caea70c4b954e434bcf3498a4fdd7700fbdf
2020-11-23 20:44:38 +01:00
Arian
27edb262ed
davinci: Drop audioconfigstore
Change-Id: Iadb796a9f6f5187994474ccba7acdc77f51b7e75
2020-11-23 20:44:38 +01:00
Arian
12f436ea0f
davinci: Drop graphite ipc
Change-Id: I544529d834616340d4da98f9af9456cd65b0cb91
2020-11-23 20:44:38 +01:00
Arian
dbb6f79eb3
davinci: audio: Merge static mixer_paths overlay into mixer_paths_idp
Change-Id: If09ffda8650e2e8a64c2bcba850038a690d4db63
2020-11-23 20:44:38 +01:00
Bruno Martins
e0dab7b3ec
davinci: audio: Nuke dirac and misoundfx effect
Change-Id: I5672e554a2b2b21fbadfe915b9a89cd2365f3864
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
Angga Satya Putra
c77b652733
davinci: audio: Remove shoebox and hw_acc from audio effects
* libshoebox.so does not exist anymore
* HW_ACCELERATED has been disabled by default as stated in the HAL

E EffectsFactoryConfigLoader: Could not find library in effect directories: libshoebox.so
E EffectsFactoryConfigLoader: Error querying effect 7d1580bd-297f-4683-9239-e475b6d1d69f on lib offload_bundle
E EffectsFactoryConfigLoader: Could not find library shoebox to load effect shoebox
E EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml

Change-Id: I2407c03728930995213f16ec0551e4194fbb7476
Signed-off-by: Arian <arian.kulmer@web.de>
2020-11-23 20:44:38 +01:00
notsyncing
bf7bc6bfcf
davinci: audio: Use USB audio policy configuration from AOSP
* This can greatly improve audio quality when an external
   USB DAC is connected.

Change-Id: I4eeaadc9e3dd26fb54dbfa5a1acf3599b3e6b16b
2020-08-06 21:28:07 +02:00
dianlujitao
da08da6e09
davinci: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2020-08-06 21:28:07 +02:00
Arian
763858361c
davinci: audio: Add libmisound
Change-Id: I42cf4678006710b441be031756cba301c79accfa
2020-08-06 21:28:07 +02:00
Arian
ea456f56d5
davinci: audio: Import configs
Change-Id: I401921a868d481002a5fff3b18161d5bcff81682
2020-08-06 21:28:07 +02:00