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

Commit 7f1caf11 authored by Chen Chen's avatar Chen Chen
Browse files

Spatial Audio: Add setLatencyMode and setCodecType API with empty

implementation

Bug: 216832331
Test: build
Tag: #feature
Change-Id: I530667f3342bfb5a6bc0c9481a52d4f95ab127f9
parent 2f97b037
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioProvider.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioProviderFactory.h>
#include <aidl/android/hardware/bluetooth/audio/LatencyMode.h>
#include <aidl/android/hardware/bluetooth/audio/Lc3Capabilities.h>
#include <aidl/android/hardware/bluetooth/audio/Lc3Configuration.h>
#include <aidl/android/hardware/bluetooth/audio/LdacCapabilities.h>
+10 −0
Original line number Diff line number Diff line
@@ -132,6 +132,16 @@ ndk::ScopedAStatus BluetoothAudioPortImpl::updateSinkMetadata(
  return ndk::ScopedAStatus::ok();
}

ndk::ScopedAStatus BluetoothAudioPortImpl::setLatencyMode(
    LatencyMode latency_mode) {
  return ndk::ScopedAStatus::ok();
}

ndk::ScopedAStatus BluetoothAudioPortImpl::setCodecType(
    CodecType codec_type) {
  return ndk::ScopedAStatus::ok();
}

PresentationPosition::TimeSpec BluetoothAudioPortImpl::timespec_convert_to_hal(
    const timespec& ts) {
  return {.tvSec = static_cast<int64_t>(ts.tv_sec),
+6 −0
Original line number Diff line number Diff line
@@ -26,7 +26,9 @@ namespace aidl {
using ::aidl::android::hardware::audio::common::SinkMetadata;
using ::aidl::android::hardware::audio::common::SourceMetadata;
using ::aidl::android::hardware::bluetooth::audio::BnBluetoothAudioPort;
using ::aidl::android::hardware::bluetooth::audio::CodecType;
using ::aidl::android::hardware::bluetooth::audio::IBluetoothAudioProvider;
using ::aidl::android::hardware::bluetooth::audio::LatencyMode;
using ::aidl::android::hardware::bluetooth::audio::PresentationPosition;

class BluetoothAudioPortImpl : public BnBluetoothAudioPort {
@@ -50,6 +52,10 @@ class BluetoothAudioPortImpl : public BnBluetoothAudioPort {
  ndk::ScopedAStatus updateSinkMetadata(
      const SinkMetadata& sink_metadata) override;

  ndk::ScopedAStatus setLatencyMode(LatencyMode latency_mode) override;

  ndk::ScopedAStatus setCodecType(CodecType codec_type) override;

 protected:
  virtual ~BluetoothAudioPortImpl();

+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ namespace audio {
namespace aidl {

using ::aidl::android::hardware::bluetooth::audio::AudioConfiguration;
using ::aidl::android::hardware::bluetooth::audio::LatencyMode;
using ::aidl::android::hardware::bluetooth::audio::SessionType;

/***