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

Commit 3efd65fc authored by Yuyang Huang's avatar Yuyang Huang
Browse files

only show log when LC3 DSP codec is used

Bug: 280972672
Change-Id: I2d84b191884c3c4fb55e5bb77a56849548788f14
Test: m .
Flag: EXEMPT log change
parent 5005eb1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -339,8 +339,8 @@ enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool offload) {
      codecIds = controller->GetLocalSupportedBrEdrCodecIds();
      codecIds = controller->GetLocalSupportedBrEdrCodecIds();
      if (std::find(codecIds.begin(), codecIds.end(), ESCO_CODING_FORMAT_LC3) ==
      if (std::find(codecIds.begin(), codecIds.end(), ESCO_CODING_FORMAT_LC3) ==
          codecIds.end()) {
          codecIds.end()) {
        LOG_INFO("BT controller does not support LC3 codec, use DSP codec");
        if (codec == ESCO_CODEC_LC3_T1 || codec == ESCO_CODEC_LC3_T2) {
        if (codec == ESCO_CODEC_LC3_T1 || codec == ESCO_CODEC_LC3_T2) {
          LOG_INFO("BT controller does not support LC3 codec, use DSP codec");
          enh_esco_params_t param = default_esco_parameters[codec];
          enh_esco_params_t param = default_esco_parameters[codec];
          param.input_coding_format.coding_format = ESCO_CODING_FORMAT_LC3;
          param.input_coding_format.coding_format = ESCO_CODING_FORMAT_LC3;
          param.output_coding_format.coding_format = ESCO_CODING_FORMAT_LC3;
          param.output_coding_format.coding_format = ESCO_CODING_FORMAT_LC3;