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

Commit b4a65c18 authored by Alice Kuo's avatar Alice Kuo
Browse files

Support configured block per sdu for the offload path

Bug: 197296692
Test: make build
Change-Id: I7243980de6425658fff5f4bfef7ed74225fa86b1
parent 3115ab2e
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);
  }