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

Commit 32c9c2b8 authored by pramod kotreshappa's avatar pramod kotreshappa Committed by Bruno Martins
Browse files

Add LC3 codec type.

- Add LC3 codec type
- Add additional sample rate and channel mode

CRs-Fixed: 2789473

Change-Id: I13d0c6944a12422c13e2069697817c0f26330179
parent a5b61df7
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -82,6 +82,9 @@ public final class BluetoothCodecConfig implements Parcelable {
    @UnsupportedAppUsage
    public static final int SOURCE_CODEC_TYPE_CELT = 8;

    @UnsupportedAppUsage
    public static final int SOURCE_CODEC_TYPE_LC3 = 9;

    @UnsupportedAppUsage
    public static final int SOURCE_CODEC_TYPE_INVALID = 1000 * 1000;

@@ -138,6 +141,17 @@ public final class BluetoothCodecConfig implements Parcelable {
    @UnsupportedAppUsage
    public static final int SAMPLE_RATE_192000 = 0x1 << 5;

    @UnsupportedAppUsage
    public static final int SAMPLE_RATE_16000 = 0x1 << 6;

    @UnsupportedAppUsage
    public static final int SAMPLE_RATE_24000 = 0x1 << 7;

    @UnsupportedAppUsage
    public static final int SAMPLE_RATE_32000 = 0x1 << 8;

    @UnsupportedAppUsage
    public static final int SAMPLE_RATE_8000 = 0x1 << 9;

    /** @hide */
    @IntDef(prefix = "BITS_PER_SAMPLE_", value = {
@@ -180,6 +194,9 @@ public final class BluetoothCodecConfig implements Parcelable {
    @UnsupportedAppUsage
    public static final int CHANNEL_MODE_STEREO = 0x1 << 1;

    @UnsupportedAppUsage
    public static final int CHANNEL_MODE_JOINT_STEREO = 0x1 << 2;

    private final @SourceCodecType int mCodecType;
    private @CodecPriority int mCodecPriority;
    private final @SampleRate int mSampleRate;