Audio V4: Remove deprecated function and enum

The debugDump function was deprecated by the introduction of the
debug method in the IBase.

AudioMode CURRENT and INVALID should not be passed to the
vendor.

Bug: 38184704
Test: none
Change-Id: I0e14c71ce7216524587a6ba28cae0cdb821bae23
Signed-off-by: Kevin Rocard <krocard@google.com>
diff --git a/audio/4.0/IDevice.hal b/audio/4.0/IDevice.hal
index 2f121c1..4bc2d4d 100644
--- a/audio/4.0/IDevice.hal
+++ b/audio/4.0/IDevice.hal
@@ -254,16 +254,4 @@
      */
     setParameters(vec<ParameterValue> context, vec<ParameterValue> parameters)
             generates (Result retval);
-
-    /**
-     * Dumps information about the device into the provided file descriptor.
-     * This is used for the dumpsys facility.
-     * The implementation should not block as the caller might have time
-     * constraint on the dump.
-     * A back to back dump of all HAL Device and Stream should take under 100ms.
-     *
-     * @param fd dump file descriptor.
-     * @return retval operation completion status: OK or NOT_SUPPORTED.
-     */
-    debugDump(handle fd) generates (Result retval);
 };
diff --git a/audio/4.0/IStream.hal b/audio/4.0/IStream.hal
index 306152b..34e7a14 100644
--- a/audio/4.0/IStream.hal
+++ b/audio/4.0/IStream.hal
@@ -259,18 +259,6 @@
             generates (Result retval);
 
     /**
-     * Dumps information about the stream into the provided file descriptor.
-     * This is used for the dumpsys facility.
-     * The implementation should not block as the caller might have time
-     * constraint on the dump.
-     * A back to back dump of all HAL Device and Stream should take under 100ms.
-     *
-     * @param fd dump file descriptor.
-     * @return retval operation completion status: OK or NOT_SUPPORTED.
-     */
-    debugDump(handle fd) generates (Result retval);
-
-    /**
      * Called by the framework to start a stream operating in mmap mode.
      * createMmapBuffer() must be called before calling start().
      * Function only implemented by streams operating in mmap mode.
diff --git a/audio/common/4.0/types.hal b/audio/common/4.0/types.hal
index 5212dcd..e9e7173 100644
--- a/audio/common/4.0/types.hal
+++ b/audio/common/4.0/types.hal
@@ -493,8 +493,6 @@
  */
 @export(name="audio_mode_t", value_prefix="AUDIO_MODE_")
 enum AudioMode : int32_t {
-    INVALID          = -2,
-    CURRENT          = -1,
     NORMAL           = 0,
     RINGTONE         = 1,
     IN_CALL          = 2,
diff --git a/audio/effect/4.0/IEffectsFactory.hal b/audio/effect/4.0/IEffectsFactory.hal
index 84efb74..034af58 100644
--- a/audio/effect/4.0/IEffectsFactory.hal
+++ b/audio/effect/4.0/IEffectsFactory.hal
@@ -55,16 +55,4 @@
      */
     createEffect(Uuid uid, AudioSession session, AudioIoHandle ioHandle)
         generates (Result retval, IEffect result, uint64_t effectId);
-
-    /**
-     * Dumps information about effects into the provided file descriptor.
-     * This is used for the dumpsys facility.
-     * The implementation should not block as the caller might have time
-     * constraint on the dump.
-     * A back to back dump of all HAL Device and Stream should take under 100ms.
-     *
-     * @param fd dump file descriptor.
-     * @return retval operation completion status: OK or NOT_SUPPORTED.
-     */
-    debugDump(handle fd) generates (Result retval);
 };