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

Commit 83f7b44b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use code_format transparent for the LE audio software codec"

parents 29582bd6 87b336bd
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;