commit | 90fb8d6153d1e596a122e2f8856e691b4490fb4a | [log] [tgz] |
---|---|---|
author | Han Sol Jin <hansol@hansol.ca> | Mon Apr 22 08:55:25 2024 -0700 |
committer | Michael Bestas <mkbestas@lineageos.org> | Wed Apr 24 05:24:03 2024 +0300 |
tree | 517cd3c7397d33fc08100eb32d13e3b926ffd582 | |
parent | 982a707ff5597bfefbd9f7c9b9b31c4589f9c634 [diff] |
audio_amplifier: pass amplifier_device pointer to calibrate as well Change-Id: I4b65e0f12aa01fae573658f1b5b58a54471826a8
diff --git a/hal/audio_extn/audio_amplifier.c b/hal/audio_extn/audio_amplifier.c index 2494ed3..87f660c 100644 --- a/hal/audio_extn/audio_amplifier.c +++ b/hal/audio_extn/audio_amplifier.c
@@ -51,7 +51,7 @@ } if (amp.hw->calibrate) { - rc = amp.hw->calibrate(adev); + rc = amp.hw->calibrate(amp.hw, amp.adev); if (rc) { ALOGV("%s: Failed to do amplifier hardware calibration %s\n", __func__, strerror(-rc)); }