Commit Graph

9 Commits

Author SHA1 Message Date
Adithya R 6075d59ca8 sm8150-common: Add toggle for Dolby volume leveler
Change-Id: I63804773535f290d09724cfc8b1ee58f32ca89ab
2024-03-11 16:57:36 +05:30
Adithya R 6fac08dfcd sm8150-common: Implement Dolby profile-specific settings
Change-Id: I45b5cefbcf1ba021ccc2968e325df17d8f050870
2024-03-11 16:57:36 +05:30
Adithya R 700c99e688 sm8150-common: Introduce more Dolby Atmos effects
- Bass Enhancer
- Dialogue Enhancer
- Stereo Widening

Change-Id: I05ec5add1496d7227d608b9e58aede14dfa0395c
2024-03-11 16:57:36 +05:30
Adithya R 9cd354ec40 sm8150-common: Remove play/pause hack while toggling Dolby
Not required with/fixed by:
35217: audioflinger: Do not allow DAP effect to be suspended | https://gerrit.aospa.co/c/AOSPA/android_frameworks_av/+/35217

Change-Id: I842df18e1f95bbe9146f256297d1eea2e9d21140
2024-03-11 16:57:36 +05:30
Adithya R 41932f4739 sm8150-common: Set proper summary for Dolby settings
Show the current status in Settings > Sound as well as the QS tile.

Change-Id: I81bb5642550eaf1c21f890ae95304a033439ed40
2024-03-11 16:57:36 +05:30
Adithya R 0c702a6b52 sm8150-common: DolbyManager: Override MusicFX and handle EQ intent
Get rid of AOSP equalizer, no one uses it. Instead advertise our
Dolby Atmos settings as the system-wide equalizer, allowing apps
such as Spotify to open it directly.

Change-Id: If95fcf6c7136b163c7f88c18a4b07b05ad2010ab
2024-03-11 16:57:36 +05:30
Sugakesshaa 4d1331d386 sm8150-common: DolbyManager: Rework supported profiles
correct DAP_PARAM_VALUE while at it which fixes dolby presets

Change-Id: Ic4096b2498353b65e5e38bc5bd88bf84b9c7cc39
2024-03-11 16:57:36 +05:30
Fabian Leutenegger 2c935104a0 sm8150-common: DolbyManager: Always refresh playback is status changed
otherwise dolby would stay active even if you disable its setting

Change-Id: Ibaacf6286997368be03b116feea914442c914451
2024-03-11 16:57:36 +05:30
Adithya R 6536f4822a sm8150-common: Introduce DolbyManager
- Converted Xiaomi dirac implementation based on observing
  Xiaomi sound effects app and daxservice.
- Thanks to jhenrique09 for the hack from Xiaomi dirac parts
  "Pause/play music stream to get effects applied".

Change-Id: I23f78ada3ea8fbb17cb9dd715b2b65f0f51feb36
Co-authored-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
2024-03-11 16:57:36 +05:30