commit | b537e909100a79fcf4904c1b7bd4c9fadf565fce | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Fri Mar 22 14:04:54 2024 -0700 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Fri May 03 16:32:02 2024 +0000 |
tree | 907f8506ccfba8386a876d7e895f45acfe18dc95 | |
parent | 5c0ed4219543dc22e7e7405e1f7797c7c490c9cf [diff] |
libaudiohal: Respect channel count when setting hw gain The AIDL contract requires passing a gain value per channel. The legacy API was using a single gain value for input, and stereo gain for output. Adapt these to the actual channel count. Bug: 326853618 Test: m (cherry picked from https://android-review.googlesource.com/q/commit:222fdf9571d9aa060460b73db08b739b0b300584) Merged-In: Ic4179d41d569231255f9e497032d369df19ec6ba Change-Id: Ic4179d41d569231255f9e497032d369df19ec6ba