diff options
Diffstat (limited to 'include/hardware/audio_policy.h')
-rw-r--r-- | include/hardware/audio_policy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hardware/audio_policy.h b/include/hardware/audio_policy.h index cbaa31d..0e88361 100644 --- a/include/hardware/audio_policy.h +++ b/include/hardware/audio_policy.h @@ -423,6 +423,12 @@ typedef struct audio_policy_module { } audio_policy_module_t; struct audio_policy_device { + /** + * Common methods of the audio policy device. This *must* be the first member of + * audio_policy_device as users of this structure will cast a hw_device_t to + * audio_policy_device pointer in contexts where it's known the hw_device_t references an + * audio_policy_device. + */ struct hw_device_t common; int (*create_audio_policy)(const struct audio_policy_device *device, |