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

Commit 1a1e6d9d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use code_format transparent for the LE audio software codec" am: 83f7b44b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1895321

Change-Id: I52c347c9b89f4e07277927ccfdfa82696b2919af
parents 0b7a072c 83f7b44b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -966,14 +966,16 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
  }

  static void PrepareDataPath(const struct ase* ase) {
    /* TODO Handle HW offloading as we handle here only HCI for now */
    /* TODO Handle HW offloading as we handle here only HCI for now, Need
     * to set coding_format based on the codec location, force SW encode
     * for now */
    bluetooth::hci::iso_manager::iso_data_path_params param = {
        .data_path_dir =
            ase->direction == le_audio::types::kLeAudioDirectionSink
                ? bluetooth::hci::iso_manager::kIsoDataPathDirectionIn
                : bluetooth::hci::iso_manager::kIsoDataPathDirectionOut,
        .data_path_id = bluetooth::hci::iso_manager::kIsoDataPathHci,
        .codec_id_format = ase->codec_id.coding_format,
        .codec_id_format = bluetooth::hci::kIsoCodingFormatTransparent,
        .codec_id_company = ase->codec_id.vendor_company_id,
        .codec_id_vendor = ase->codec_id.vendor_codec_id,
        .controller_delay = 0x00000000,
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@

namespace bluetooth {
namespace hci {
constexpr uint8_t kIsoCodingFormatTransparent = 0x03;
constexpr uint8_t kIsoCodingFormatLc3 = 0x06;
constexpr uint8_t kIsoCodingFormatVendorSpecific = 0xFF;