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

Commit e7a55e26 authored by Whale Chang's avatar Whale Chang Committed by Gerrit Code Review
Browse files

Merge "Disable SWB for desktop if bluetooth.hfp.swb.supported=false" into main

parents 62b8eede e88d7925
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -324,8 +324,13 @@ bool get_wbs_supported() {

// Check if super-wideband speech is supported on local device
bool get_swb_supported() {
#ifdef TARGET_FLOSS
  // We only support SWB via transparent mode.
  return is_coding_format_supported(ESCO_CODING_FORMAT_TRANSPNT);
#else
  return is_coding_format_supported(ESCO_CODING_FORMAT_TRANSPNT) &&
         osi_property_get_bool("bluetooth.hfp.swb.supported", true);  // TODO: add SWB for desktop
#endif
}

// Checks the supported codecs