Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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;