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

Commit d0707426 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/stack: Return correct error codes in A2DP_CodecInfoMatchesCapabilityAac

Bug: 336232163
Test: atest pts-bot:A2DP/SNK/AVP
Flag: EXEMPT, minor refactor
Change-Id: Ia0e9f6f6f3d26ee21d86f821872d92e400c2fccc
parent 3bd58942
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -296,12 +296,12 @@ static tA2DP_STATUS A2DP_CodecInfoMatchesCapabilityAac(const tA2DP_AAC_CIE* p_ca

  /* Object Type */
  if ((cfg_cie.objectType & p_cap->objectType) == 0) {
    return A2DP_INVALID_OBJECT_TYPE;
    return A2DP_NOT_SUPPORTED_OBJECT_TYPE;
  }

  /* Sample Rate */
  if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) {
    return A2DP_INVALID_SAMPLING_FREQUENCY;
    return A2DP_NOT_SUPPORTED_SAMPLING_FREQUENCY;
  }

  /* Channel Mode */