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

Commit 9296968f authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge "Remove some unused code in test/a2dp/misc_fake.cc"

parents 3d803ead eadf64ab
Loading
Loading
Loading
Loading
+0 −33
Original line number Diff line number Diff line
@@ -14,43 +14,10 @@
 * limitations under the License.
 */

#define LOG_TAG "misc_fake"

#include <dlfcn.h>

#include "osi/include/log.h"
#include "service/common/bluetooth/a2dp_codec_config.h"
#include "stack/include/a2dp_vendor_ldac.h"

bluetooth::A2dpCodecConfig* bta_av_get_a2dp_current_codec(void) {
  return nullptr;
}

int A2DP_VendorGetTrackSampleRateLdac(const uint8_t* p_codec_info) { return 0; }
int A2DP_VendorGetTrackBitsPerSampleLdac(const uint8_t* p_codec_info) {
  return 0;
}
int A2DP_VendorGetChannelModeCodeLdac(const uint8_t* p_codec_info) { return 0; }

bool A2dpCodecConfig::copyOutOtaCodecConfig(unsigned char*) { return false; }
uint8_t A2dpCodecConfig::getAudioBitsPerSample() { return 0; }
void A2dpCodecConfig::debug_codec_dump(int) {}

int A2DP_VendorGetTrackSampleRateAptx(unsigned char const*) { return 0; }
int A2DP_VendorGetTrackChannelCountAptx(unsigned char const*) { return 0; }

int A2DP_VendorGetTrackSampleRateAptxHd(unsigned char const*) { return 0; }
int A2DP_VendorGetTrackChannelCountAptxHd(unsigned char const*) { return 0; }

void* A2DP_VendorCodecLoadExternalLib(const std::string& lib_name,
                                      const std::string& friendly_name) {
  void* lib_handle = dlopen(lib_name.c_str(), RTLD_NOW);
  if (lib_handle == NULL) {
    LOG(ERROR) << __func__
               << ": Failed to load codec library: " << friendly_name
               << ". Err: [" << dlerror() << "]";
    return nullptr;
  }
  LOG(INFO) << __func__ << ": Codec library loaded: " << friendly_name;
  return lib_handle;
}