diff options
author | Eric Laurent <elaurent@google.com> | 2012-08-28 14:30:35 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-09-07 10:32:57 -0700 |
commit | 85e08e26258711f2fd672d9a920d88bf91410f6b (patch) | |
tree | 193e2b4f3a228c32f508575218fcd712f24d0a2d /include/hardware/audio.h | |
parent | 88b79cb001d1c733275c7cad490c32b143f78860 (diff) | |
download | hardware_libhardware-85e08e26258711f2fd672d9a920d88bf91410f6b.zip hardware_libhardware-85e08e26258711f2fd672d9a920d88bf91410f6b.tar.gz hardware_libhardware-85e08e26258711f2fd672d9a920d88bf91410f6b.tar.bz2 |
audio: new audio devices enums
Changed audio device API version to 2.0 because of
new enums for audio input and output devices.
Removed implementations of get_supported_devices() in
stub and usb audio modules.
Change-Id: I09345d38929d931e5015e36d18259f5a5f950298
Diffstat (limited to 'include/hardware/audio.h')
-rw-r--r-- | include/hardware/audio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h index 4fd73a2..3a0962e 100644 --- a/include/hardware/audio.h +++ b/include/hardware/audio.h @@ -53,7 +53,8 @@ __BEGIN_DECLS */ #define AUDIO_DEVICE_API_VERSION_0_0 HARDWARE_DEVICE_API_VERSION(0, 0) #define AUDIO_DEVICE_API_VERSION_1_0 HARDWARE_DEVICE_API_VERSION(1, 0) -#define AUDIO_DEVICE_API_VERSION_CURRENT AUDIO_DEVICE_API_VERSION_1_0 +#define AUDIO_DEVICE_API_VERSION_2_0 HARDWARE_DEVICE_API_VERSION(2, 0) +#define AUDIO_DEVICE_API_VERSION_CURRENT AUDIO_DEVICE_API_VERSION_2_0 /** * List of known audio HAL modules. This is the base name of the audio HAL @@ -329,6 +330,12 @@ struct audio_hw_device { * each audio_hw_device implementation. * * Return value is a bitmask of 1 or more values of audio_devices_t + * + * NOTE: audio HAL implementations starting with + * AUDIO_DEVICE_API_VERSION_2_0 do not implement this function. + * All supported devices should be listed in audio_policy.conf + * file and the audio policy manager must choose the appropriate + * audio module based on information in this file. */ uint32_t (*get_supported_devices)(const struct audio_hw_device *dev); |