Commit Graph

7 Commits

Author SHA1 Message Date
LuK1337
c0e82d61b6 audio_amplifier: Use hw_module_t->dso instead of RTLD_NEXT
W audio_amplifier: amp_module_open: enable_snd_device not found (undefined symbol: enable_snd_device)
E audio_hw_primary: Amplifier initialization failed

Change-Id: If313889c4749c589d0682982f1d804e4069ffff9
2025-02-22 20:40:55 +01:00
Michael Bestas
fff84ef56b audio_amplifier: Convert to blueprint
dlopen audio.primary instead of linking against it to avoid soong
namespace hell.

Change-Id: Ic9d420864cb5a6f1018210a84f0f3e6636550caa
2025-02-19 22:58:04 +00:00
Alexander Winkowski
5a4c2cf7a4 audio_amplifier: Make all the functions static
Change-Id: I64b94b6995399b773046928528d9fe5a29cb26f9
2025-02-19 22:58:04 +00:00
Alexander Winkowski
1166219abe audio_amplifier: Fix PCM device check
It should've been && instead of ||, but pcm_open() always
returns a valid pointer, so we just drop the NULL check.

Change-Id: Ibf1d0b34b02ca5910cd4c1bee4d55a04205e2203
2025-02-19 22:58:04 +00:00
Georg Veichtlbauer
2ef1e869af amplifier: Don't initialize device list for legacy HALs
Pre SDM845 audio_usecase struct doesn't have a device_list member.

Change-Id: I7395fd11f8a6a847483a906fa106df76965169f1
2022-07-11 11:52:44 -07:00
Pig
a6b1f2799e amplifier: Fix device list initializations
Update missing device list initializations.

Reported-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Co-authored-by: Signed-off-by: SayanAcharya <rowdysayan99@gmail.com>
Change-Id: Iaa44429e7a2514f882828089355fca1634b79200
2022-07-11 11:52:44 -07:00
PIPIPIG233666
b4dd94529e Add custom audio amplifier for TFA amp feedback
* Based on observing reverse engineering from davinci stock audio HAL.
 * Fixes speaker distortion on high volume.

 * Same logic with Smosia, rewritten by me.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
2022-07-11 11:52:44 -07:00