From 720055270a0412311d39ca77ff1c0e6d744d6b5e Mon Sep 17 00:00:00 2001 From: Ravishankar Sarawadi Date: Wed, 27 Feb 2013 18:47:54 +0100 Subject: audio: Subsystem Restart changes - Handle new ADSP status parameter - media/libmedia: Add new ADSP status audio parameter - framework/av: Add handling of new key-pair value in Audio Flinger - Handle Tunnel mode SubSys Restart - framework/av: Post SSR event to Audio Flinger - media/libmedia: Post SSR event to AudioTrack - media/libmediaplayerservice: Post SSR event to MediaPlayerService - media/libstagefright: Post SSR event to TunnelPlayer Change-Id: I8c8385af45be91caf7d7160ab2e0236d6591b159 --- include/media/AudioParameter.h | 3 ++- include/media/AudioTrack.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/media/AudioParameter.h b/include/media/AudioParameter.h index d29c699..2476e66 100644 --- a/include/media/AudioParameter.h +++ b/include/media/AudioParameter.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2008-2011 The Android Open Source Project - * Copyright (c) 2012, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,6 +55,7 @@ public: static const char * const keyFluenceType; static const char * const keySSR; static const char * const keyHandleA2dpDevice; + static const char * const keyADSPStatus; #endif String8 toString(); diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 77a0b26..108f1a7 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2007 The Android Open Source Project + * Copyright (c) 2013, The Linux Foundation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,7 +65,8 @@ public: EVENT_LOOP_END = 2, // Sample loop end was reached; playback restarted from loop start if loop count was not 0. EVENT_MARKER = 3, // Playback head is at the specified marker position (See setMarkerPosition()). EVENT_NEW_POS = 4, // Playback head is at a new position (See setPositionUpdatePeriod()). - EVENT_BUFFER_END = 5 // Playback head is at the end of the buffer. + EVENT_BUFFER_END = 5, // Playback head is at the end of the buffer. + EVENT_HW_FAIL = 6, // ADSP failure. }; /* Client should declare Buffer on the stack and pass address to obtainBuffer() -- cgit v1.1