Loading system/audio_bluetooth_hw/audio_bluetooth_hw.cc +9 −0 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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; Loading Loading
system/audio_bluetooth_hw/audio_bluetooth_hw.cc +9 −0 Original line number Original line Diff line number Diff line Loading @@ -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) { Loading Loading @@ -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; Loading