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

Commit af036e06 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Fix SDU interval calculation

Add the missing scaling factor for the SDU interval in the json
configuration provider.

Bug: 352459600
Test: m packages/modules/Bluetooth, +verified manually
Flag: Exempt; no logical change, trivial fix
Change-Id: I7589f90da738401d2169bc5602bcebd60196cdec
parent c50cae9d
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -352,7 +352,8 @@ private:
      subconfig.qos.maxSdu = subconfig.codec.GetChannelCountPerIsoStream() *
      subconfig.qos.maxSdu = subconfig.codec.GetChannelCountPerIsoStream() *
                             core_config.octets_per_codec_frame.value_or(0) *
                             core_config.octets_per_codec_frame.value_or(0) *
                             core_config.codec_frames_blocks_per_sdu.value_or(1);
                             core_config.codec_frames_blocks_per_sdu.value_or(1);
      subconfig.qos.sduIntervalUs = core_config.GetFrameDurationUs();
      subconfig.qos.sduIntervalUs = core_config.GetFrameDurationUs() *
                                    core_config.codec_frames_blocks_per_sdu.value_or(1);
    }
    }
  }
  }