diff --git a/system/audio_hal_interface/aidl/a2dp/codec_status_aidl.cc b/system/audio_hal_interface/aidl/a2dp/codec_status_aidl.cc index dfdebd2071..2fc2037d59 100644 --- a/system/audio_hal_interface/aidl/a2dp/codec_status_aidl.cc +++ b/system/audio_hal_interface/aidl/a2dp/codec_status_aidl.cc @@ -508,8 +508,8 @@ bool UpdateOffloadingCapabilities( break; case BTAV_A2DP_CODEC_INDEX_MAX: default: - log::error("Unknown codec_type={}", preference.codec_type); - return false; + log::error("Unknown codec_type={}. Ignore.", preference.codec_type); + break; } } offloading_preference.clear(); diff --git a/system/audio_hal_interface/hidl/codec_status_hidl.cc b/system/audio_hal_interface/hidl/codec_status_hidl.cc index a74592a60c..bff1bf90a2 100644 --- a/system/audio_hal_interface/hidl/codec_status_hidl.cc +++ b/system/audio_hal_interface/hidl/codec_status_hidl.cc @@ -469,8 +469,8 @@ bool UpdateOffloadingCapabilities( break; case BTAV_A2DP_CODEC_INDEX_MAX: default: - log::error("Unknown codec_type={}", preference.codec_type); - return false; + log::error("Unknown codec_type={}. Ignore.", preference.codec_type); + break; } } offloading_preference.clear();