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

Commit 8553416a authored by Chen Chen's avatar Chen Chen Committed by Gerrit Code Review
Browse files

Merge "Spatial Audio: Add setLatencyMode and setCodecType API with empty implementation"

parents 6ef6544a 7f1caf11
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -45,6 +45,7 @@
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioProvider.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioProvider.h>
#include <aidl/android/hardware/bluetooth/audio/IBluetoothAudioProviderFactory.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/Lc3Capabilities.h>
#include <aidl/android/hardware/bluetooth/audio/Lc3Configuration.h>
#include <aidl/android/hardware/bluetooth/audio/Lc3Configuration.h>
#include <aidl/android/hardware/bluetooth/audio/LdacCapabilities.h>
#include <aidl/android/hardware/bluetooth/audio/LdacCapabilities.h>
+10 −0
Original line number Original line Diff line number Diff line
@@ -132,6 +132,16 @@ ndk::ScopedAStatus BluetoothAudioPortImpl::updateSinkMetadata(
  return ndk::ScopedAStatus::ok();
  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(
PresentationPosition::TimeSpec BluetoothAudioPortImpl::timespec_convert_to_hal(
    const timespec& ts) {
    const timespec& ts) {
  return {.tvSec = static_cast<int64_t>(ts.tv_sec),
  return {.tvSec = static_cast<int64_t>(ts.tv_sec),
+6 −0
Original line number Original line Diff line number Diff line
@@ -26,7 +26,9 @@ namespace aidl {
using ::aidl::android::hardware::audio::common::SinkMetadata;
using ::aidl::android::hardware::audio::common::SinkMetadata;
using ::aidl::android::hardware::audio::common::SourceMetadata;
using ::aidl::android::hardware::audio::common::SourceMetadata;
using ::aidl::android::hardware::bluetooth::audio::BnBluetoothAudioPort;
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::IBluetoothAudioProvider;
using ::aidl::android::hardware::bluetooth::audio::LatencyMode;
using ::aidl::android::hardware::bluetooth::audio::PresentationPosition;
using ::aidl::android::hardware::bluetooth::audio::PresentationPosition;


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


  ndk::ScopedAStatus setLatencyMode(LatencyMode latency_mode) override;

  ndk::ScopedAStatus setCodecType(CodecType codec_type) override;

 protected:
 protected:
  virtual ~BluetoothAudioPortImpl();
  virtual ~BluetoothAudioPortImpl();


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


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


/***
/***