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

Commit 50c3f009 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 am: 0b3c28a1 am: 2e9bc7f1

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

Change-Id: I564b5d548350edd841ae4dc55ea55cc853e30e68
parents ff56d272 2e9bc7f1
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);
  }