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

Commit e4253d8f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add legacy HAL get audio device port method" into main

parents 5435a83f 4597b0ea
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -153,6 +153,14 @@ static int adev_get_audio_port_v7(struct audio_hw_device* device,
  return -ENOSYS;
  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_dump(const audio_hw_device_t* device, int fd) { return 0; }


static int adev_close(hw_device_t* device) {
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->create_audio_patch = adev_create_audio_patch;
  adev->release_audio_patch = adev_release_audio_patch;
  adev->release_audio_patch = adev_release_audio_patch;
  adev->get_audio_port_v7 = adev_get_audio_port_v7;
  adev->get_audio_port_v7 = adev_get_audio_port_v7;
  adev->get_audio_port = adev_get_audio_port;


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