Skip to content
Snippets Groups Projects
Commit b7df5bf4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "audio_hal/hidl: Don't fallback to SW encoding when HW is supported"

parents 6dd2123b bd2b23af
No related branches found
No related tags found
No related merge requests found
......@@ -494,11 +494,23 @@ bool UpdateOffloadingCapabilities(
case BTAV_A2DP_CODEC_INDEX_SOURCE_LDAC:
codec_type_masks |= CodecType::LDAC;
break;
case BTAV_A2DP_CODEC_INDEX_SOURCE_LC3:
LOG(WARNING) << __func__
<< ": Ignore source codec_type=" << preference.codec_type
<< ", not supported";
break;
case BTAV_A2DP_CODEC_INDEX_SOURCE_OPUS:
LOG(WARNING) << __func__
<< ": Ignore source codec_type=" << preference.codec_type
<< ", not supported on HIDL";
break;
case BTAV_A2DP_CODEC_INDEX_SINK_SBC:
[[fallthrough]];
case BTAV_A2DP_CODEC_INDEX_SINK_AAC:
[[fallthrough]];
case BTAV_A2DP_CODEC_INDEX_SINK_LDAC:
[[fallthrough]];
case BTAV_A2DP_CODEC_INDEX_SINK_OPUS:
LOG(WARNING) << __func__
<< ": Ignore sink codec_type=" << preference.codec_type;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment