Diff between e97baaca22692ba78c82d699dd3057fa22e8eb2d and e44a5bf719cf1038bf5301ab1849bd9f505c4936
Changed Files
| File | Additions | Deletions | Status |
| android/handsfree.c | +3 | -2 | modified |
Full Patch
diff --git a/android/handsfree.c b/android/handsfree.c
index b3926f3..1effb05 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -896,8 +896,9 @@ static bool connect_sco(void)
if (device.sco)
return false;
- if ((device.features & HFP_HF_FEAT_CODEC) &&
- device.negotiated_codec != CODEC_ID_CVSD)
+ if (!(device.features & HFP_HF_FEAT_CODEC))
+ voice_settings = 0;
+ else if (device.negotiated_codec != CODEC_ID_CVSD)
voice_settings = BT_VOICE_TRANSPARENT;
else
voice_settings = BT_VOICE_CVSD_16BIT;