mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Merge "AHAL: use PCM_FORMAT_INVALID as the termination of format array." am: d10869b255
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2534999 Change-Id: I5accfff84fe1cdd8c4a14d7097885beb08199de3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -132,7 +132,7 @@ ndk::ScopedAStatus ModuleUsb::populateConnectedDevicePort(AudioPort* audioPort)
|
|||||||
std::vector<int> sampleRates = populateSampleRatesFromProfile(&profile);
|
std::vector<int> sampleRates = populateSampleRatesFromProfile(&profile);
|
||||||
|
|
||||||
for (size_t i = 0; i < std::min(MAX_PROFILE_FORMATS, AUDIO_PORT_MAX_AUDIO_PROFILES) &&
|
for (size_t i = 0; i < std::min(MAX_PROFILE_FORMATS, AUDIO_PORT_MAX_AUDIO_PROFILES) &&
|
||||||
profile.formats[i] != 0;
|
profile.formats[i] != PCM_FORMAT_INVALID;
|
||||||
++i) {
|
++i) {
|
||||||
auto audioFormatDescription =
|
auto audioFormatDescription =
|
||||||
usb::legacy2aidl_pcm_format_AudioFormatDescription(profile.formats[i]);
|
usb::legacy2aidl_pcm_format_AudioFormatDescription(profile.formats[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user