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

Commit 37a75b5d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add legacy HAL get audio device port method" into main am: e4253d8f am: f60e8aab

parents 323343b4 f60e8aab
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -153,6 +153,14 @@ static int adev_get_audio_port_v7(struct audio_hw_device* device,
  return -ENOSYS;
}

static int adev_get_audio_port(struct audio_hw_device* device,
                               struct audio_port* port) {
  if (device == nullptr || port == nullptr) {
    return -EINVAL;
  }
  return -ENOSYS;
}

static int adev_dump(const audio_hw_device_t* device, int fd) { return 0; }

static int adev_close(hw_device_t* device) {
@@ -195,6 +203,7 @@ static int adev_open(const hw_module_t* module, const char* name,
  adev->create_audio_patch = adev_create_audio_patch;
  adev->release_audio_patch = adev_release_audio_patch;
  adev->get_audio_port_v7 = adev_get_audio_port_v7;
  adev->get_audio_port = adev_get_audio_port;

  *device = &adev->common;
  return 0;