OSDN Git Service

Audio V4: Update audio.h to V4.0
authorKevin Rocard <krocard@google.com>
Fri, 23 Feb 2018 18:01:56 +0000 (10:01 -0800)
committerKevin Rocard <krocard@google.com>
Tue, 6 Mar 2018 22:16:22 +0000 (14:16 -0800)
commitf971c08b6a404bd59d9ad0b3b22d287b4413131d
tree6d287227e05879ea05f32a1fdafff49d890e487a
parentf66768029a8ab6d3872b8525c2cbbca6d4cb751b
Audio V4: Update audio.h to V4.0

Exported the audio/common/4.0/types.h to audio-base.h.

As all system only values are removed in 4.0 but the headers
are still shared between vendor and system,
add those values back protected by the macro
AUDIO_NO_SYSTEM_DECLARATIONS.

This macro is defined for vendor libraries.

audio.h used to have *_CNT and *_MAX values in its enum
mostly for enum iteration.

This was not compatible with Treble as it denied any enum
inheritance.

*_CNT and *_MAX are now implemented with constants that can
be updated and are not part of the HIDL API.

Bug: 38184704
Test: compile
Change-Id: I5f99ccc9ce262b3addb15cd5034a885c9ab4cedf
Merged-In: I5f99ccc9ce262b3addb15cd5034a885c9ab4cedf
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
audio/Android.bp
audio/include/system/audio-base-utils.h [new file with mode: 0644]
audio/include/system/audio-base.h
audio/include/system/audio.h
audio/include/system/audio_effect-base.h
audio/include/system/audio_effect.h