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

Commit 0b3c28a1 authored by Alice Kuo's avatar Alice Kuo Committed by Automerger Merge Worker
Browse files

Support configured block per sdu for the offload path am: b4a65c18

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

Change-Id: I34397ca49ba3a5a48a6c71ba29bad034cd77b8de
parents c060d82f b4a65c18
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -95,9 +95,7 @@ struct codec_manager_impl {
    sink_config.sampling_rate = stream_conf.sink_sample_frequency_hz;
    sink_config.frame_duration = stream_conf.sink_frame_duration_us;
    sink_config.octets_per_frame = stream_conf.sink_octets_per_codec_frame;
    // TODO: set the default value 1 for now, would change it if we need more
    // configuration
    sink_config.blocks_per_sdu = 1;
    sink_config.blocks_per_sdu = stream_conf.sink_codec_frames_blocks_per_sdu;
    sink_config.peer_delay_ms = delay_ms;
    LeAudioClientAudioSource::UpdateAudioConfigToHal(sink_config);
  }
@@ -113,9 +111,8 @@ struct codec_manager_impl {
    source_config.sampling_rate = stream_conf.source_sample_frequency_hz;
    source_config.frame_duration = stream_conf.source_frame_duration_us;
    source_config.octets_per_frame = stream_conf.source_octets_per_codec_frame;
    // TODO: set the default value 1 for now, would change it if we need more
    // configuration
    source_config.blocks_per_sdu = 1;
    source_config.blocks_per_sdu =
        stream_conf.source_codec_frames_blocks_per_sdu;
    source_config.peer_delay_ms = delay_ms;
    LeAudioClientAudioSink::UpdateAudioConfigToHal(source_config);
  }