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

Commit 87b336bd authored by Alice Kuo's avatar Alice Kuo
Browse files

Use code_format transparent for the LE audio software codec

As the codec libray isn't inside the controller, set the coding format
to tranparent (0x03)

Bug: 207104454
Bug: 197297149
Bug: 150670922
Test: connect with LE audio headset, streaming normal
Change-Id: I1c9d29d8e8acfc63c4a81c02a04ffb7f62487caa
parent 4786b942
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;