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

Commit 4ed6369e authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

LeAudio: Minor const-correctness fix

Bug: 295972694
Test: atest --host bluetooth_le_audio_test bluetooth_le_audio_client_test bluetooth_test_broadcaster bluetooth_test_broadcaster_state_machine bluetooth_le_audio_codec_manager_test
Change-Id: Ie8c35ba559c2732f46ea98c901cb37d05bda452e
parent da9e4830
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ struct LeAudioCodecConfiguration {
            (data_interval_us == other.data_interval_us));
  }

  bool IsInvalid() {
  bool IsInvalid() const {
    return (num_channels == 0) || (sample_rate == 0) ||
           (bits_per_sample == 0) || (data_interval_us == 0);
  }
+2 −2
Original line number Diff line number Diff line
@@ -1030,8 +1030,8 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void StartAudioSession(LeAudioDeviceGroup* group,
                         LeAudioCodecConfiguration* source_config,
                         LeAudioCodecConfiguration* sink_config) {
                         const LeAudioCodecConfiguration* source_config,
                         const LeAudioCodecConfiguration* sink_config) {
    /* This function is called when group is not yet set to active.
     * This is why we don't have to check if session is started already.
     * Just check if it is acquired.