Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eacb9969 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Audio V4: More fixes of the audio 2.0 API



Remove unnecessary Result typedef.
Make bufferSizeFrames and burstSizeFrames unsigned
as they should not be negative.
Remove legacy AudioInterleave.
Remove implicit callflow annotation.
Make EffectConfigParameters a bitfield.

Bug: 38184704
Test: hardware/interfaces/update-makefiles.py
Change-Id: I33e6f7869d20ca0cad4123f32347754e5a514caa
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent 520e53d3
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -21,8 +21,6 @@ import IStreamIn;
import IStreamOut;
import IStreamOut;


interface IDevice {
interface IDevice {
    typedef android.hardware.audio@4.0::Result Result;

    /**
    /**
     * Returns whether the audio hardware interface has been initialized.
     * Returns whether the audio hardware interface has been initialized.
     *
     *
+0 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,6 @@ import android.hardware.audio.common@4.0;
import IDevice;
import IDevice;


interface IDevicesFactory {
interface IDevicesFactory {
    typedef android.hardware.audio@4.0::Result Result;

    /** Allows a HAL implementation to be split in multiple independent
    /** Allows a HAL implementation to be split in multiple independent
     *  devices (called module in the pre-treble API).
     *  devices (called module in the pre-treble API).
     *  Note that this division is arbitrary and implementation are free
     *  Note that this division is arbitrary and implementation are free
+0 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,6 @@ import android.hardware.audio.common@4.0;
import IDevice;
import IDevice;


interface IPrimaryDevice extends IDevice {
interface IPrimaryDevice extends IDevice {
    typedef android.hardware.audio@4.0::Result Result;

    /**
    /**
     * Sets the audio volume of a voice call.
     * Sets the audio volume of a voice call.
     *
     *
+0 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,6 @@ import android.hardware.audio.common@4.0;
import android.hardware.audio.effect@4.0::IEffect;
import android.hardware.audio.effect@4.0::IEffect;


interface IStream {
interface IStream {
    typedef android.hardware.audio@4.0::Result Result;

    /**
    /**
     * Return the frame size (number of bytes per sample).
     * Return the frame size (number of bytes per sample).
     *
     *
+0 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,6 @@ import android.hardware.audio.common@4.0;
import IStream;
import IStream;


interface IStreamIn extends IStream {
interface IStreamIn extends IStream {
    typedef android.hardware.audio@4.0::Result Result;

    /**
    /**
     * Returns the source descriptor of the input stream. Calling this method is
     * Returns the source descriptor of the input stream. Calling this method is
     * equivalent to getting AUDIO_PARAMETER_STREAM_INPUT_SOURCE on the legacy
     * equivalent to getting AUDIO_PARAMETER_STREAM_INPUT_SOURCE on the legacy
Loading