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

Commit 96f76a86 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Remove hidden requirement for the sample frequency

This is old code which is not valid anymore and blocks other frequencies
than 16kHz and 48kHz
Bug: 224933710
Test: atest bluetooth_le_audio_test
Sponsor: @jpawlowski

Change-Id: I83468115f882f4a1dd384b599ec4eeceb66e6979
parent 126153a2
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -122,9 +122,7 @@ static bool IsCodecConfigurationSupported(const types::LeAudioLtvMap& pacs,
  DLOG(INFO) << __func__ << " Pac:SamplFreq=" << loghex(u16_pac_val);
  DLOG(INFO) << __func__ << " Pac:SamplFreq=" << loghex(u16_pac_val);


  /* TODO: Integrate with codec capabilities */
  /* TODO: Integrate with codec capabilities */
  if ((u8_req_val != codec_spec_conf::kLeAudioSamplingFreq16000Hz &&
  if (!(u16_pac_val &
       u8_req_val != codec_spec_conf::kLeAudioSamplingFreq48000Hz) ||
      !(u16_pac_val &
        codec_spec_caps::SamplingFreqConfig2Capability(u8_req_val))) {
        codec_spec_caps::SamplingFreqConfig2Capability(u8_req_val))) {
    DLOG(ERROR) << __func__ << ", sampling frequency not supported";
    DLOG(ERROR) << __func__ << ", sampling frequency not supported";
    return false;
    return false;