diff options
author | Eric Laurent <elaurent@google.com> | 2012-09-10 10:36:09 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-09-10 10:36:09 -0700 |
commit | 5d85c537fcae931428ba8b7a47fdd393cc3cbd88 (patch) | |
tree | 3a528f501f95e5bc492711ade3045c7bc1ef93a2 /modules/audio_remote_submix | |
parent | 43110fa5e5097a196b1f8902b7af508bc07b66f7 (diff) | |
download | hardware_libhardware-5d85c537fcae931428ba8b7a47fdd393cc3cbd88.zip hardware_libhardware-5d85c537fcae931428ba8b7a47fdd393cc3cbd88.tar.gz hardware_libhardware-5d85c537fcae931428ba8b7a47fdd393cc3cbd88.tar.bz2 |
update audio remote submix API revision
Update remote submix audio HAL API revision to 2.0
(new audio device enums).
Change-Id: I61d5faf498144002929e570ee50375b059fb17c5
Diffstat (limited to 'modules/audio_remote_submix')
-rw-r--r-- | modules/audio_remote_submix/audio_hw.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/modules/audio_remote_submix/audio_hw.cpp b/modules/audio_remote_submix/audio_hw.cpp index 2468309..e97a96e 100644 --- a/modules/audio_remote_submix/audio_hw.cpp +++ b/modules/audio_remote_submix/audio_hw.cpp @@ -649,16 +649,6 @@ static int adev_close(hw_device_t *device) return 0; } -static uint32_t adev_get_supported_devices(const struct audio_hw_device *dev) -{ - ALOGI("adev_get_supported_devices() returns %08x", - AUDIO_DEVICE_OUT_REMOTE_SUBMIX |AUDIO_DEVICE_IN_REMOTE_SUBMIX); - return (/* OUT */ - AUDIO_DEVICE_OUT_REMOTE_SUBMIX | - /* IN */ - AUDIO_DEVICE_IN_REMOTE_SUBMIX); -} - static int adev_open(const hw_module_t* module, const char* name, hw_device_t** device) { @@ -673,11 +663,10 @@ static int adev_open(const hw_module_t* module, const char* name, return -ENOMEM; rsxadev->device.common.tag = HARDWARE_DEVICE_TAG; - rsxadev->device.common.version = AUDIO_DEVICE_API_VERSION_1_0; + rsxadev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; rsxadev->device.common.module = (struct hw_module_t *) module; rsxadev->device.common.close = adev_close; - rsxadev->device.get_supported_devices = adev_get_supported_devices; rsxadev->device.init_check = adev_init_check; rsxadev->device.set_voice_volume = adev_set_voice_volume; rsxadev->device.set_master_volume = adev_set_master_volume; |