commit | 53ead60966a29b0f2f99d27a3a6b27c4c32d3232 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Jun 08 17:02:14 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Jun 08 17:02:14 2020 +0000 |
tree | 9e63193fbe10f68fcd366da8c5a385cbd399b951 | |
parent | 76f174cfe4d52a2788e74cd47367d8fa4e896319 [diff] | |
parent | 9a2cf9a81852548e1af0247d4f8fe7e9080dd3fc [diff] |
Merge "audio_alsaops: fix format conversion error handling bug" am: 9a2cf9a818 Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1323975 Change-Id: I66657c8c7cb3fe986e52738f4a9119cdcc374423
diff --git a/include/hardware/audio_alsaops.h b/include/hardware/audio_alsaops.h index 6a17a35..476c311 100644 --- a/include/hardware/audio_alsaops.h +++ b/include/hardware/audio_alsaops.h
@@ -60,7 +60,7 @@ case AUDIO_FORMAT_PCM_FLOAT: /* there is no equivalent for float */ default: LOG_ALWAYS_FATAL("pcm_format_from_audio_format: invalid audio format %#x", format); - return 0; + return PCM_FORMAT_INVALID; /* doesn't get here, assert called above */ } } @@ -94,7 +94,7 @@ #endif default: LOG_ALWAYS_FATAL("audio_format_from_pcm_format: invalid pcm format %#x", format); - return 0; + return AUDIO_FORMAT_INVALID; /* doesn't get here, assert called above */ } }