commit | 8c27e46bb92319bd8b9451814a1b82920541edba | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Thu Jul 18 17:03:53 2024 -0700 |
committer | Mikhail Naganov <mnaganov@google.com> | Thu Jul 18 17:03:53 2024 -0700 |
tree | 0a6378914d73655056ccd75ccaecc05392329e3a | |
parent | 5102a37278296d10ea815afebb72396b1543a66a [diff] |
audio: Restrict reported channel masks to "mono" and "stereo" When translating supported channel counts into channel masks, only use channel layouts for 1 and 2 channels: "mono" and "stereo", while reporting all other counts via indexed masks. This helps to support output to multichannel USB Audio interfaces properly. Bug: 329571487 Test: repro steps in the bug Change-Id: Ibbbf71e7f04a6622cccaddeb3f4f140193d7f8fb