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

Commit cd9bb98d authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Pass sink metadata to Bluetooth"

parents 2697d16c 8d87eb7e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ hidl_interface {
    root: "android.hardware",
    srcs: [
        "types.hal",
        "IBluetoothAudioPort.hal",
        "IBluetoothAudioProvider.hal",
        "IBluetoothAudioProvidersFactory.hal",
    ],
+30 −0
Original line number Diff line number Diff line
/*
 * Copyright 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.bluetooth.audio@2.2;

import @2.0::IBluetoothAudioPort;
import android.hardware.audio.common@5.0::SinkMetadata;

interface IBluetoothAudioPort extends @2.0::IBluetoothAudioPort  {
    /**
     * Called when the metadata of the stream's sink has been changed.
     *
     * @param sinkMetadata Description of the audio that is recorded by the
     *    clients.
     */
    updateSinkMetadata(SinkMetadata sinkMetadata);
};
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package android.hardware.bluetooth.audio@2.2;

import @2.1::IBluetoothAudioProvider;
import @2.0::IBluetoothAudioPort;
import @2.2::IBluetoothAudioPort;
import @2.0::Status;

/**
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ bool A2dpOffloadAudioProvider::isValid(const V2_1::SessionType& sessionType) {
}

Return<void> A2dpOffloadAudioProvider::startSession(
    const sp<IBluetoothAudioPort>& hostIf,
    const sp<V2_0::IBluetoothAudioPort>& hostIf,
    const AudioConfiguration& audioConfig, startSession_cb _hidl_cb) {
  /**
   * Initialize the audio platform if audioConfiguration is supported.
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ bool A2dpSoftwareAudioProvider::isValid(const V2_1::SessionType& sessionType) {
}

Return<void> A2dpSoftwareAudioProvider::startSession(
    const sp<IBluetoothAudioPort>& hostIf,
    const sp<V2_0::IBluetoothAudioPort>& hostIf,
    const AudioConfiguration& audioConfig, startSession_cb _hidl_cb) {
  /**
   * Initialize the audio platform if audioConfiguration is supported.
Loading