Diff between 72b36c7854090411718699d97fc5f52493b64fac and 5ab9740fbc204793f7129c06786badbc59f0a8a9
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 e488859..76c05f8 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -1650,8 +1650,9 @@ static bool disconnect_sco(void)
static bool connect_audio(void)
{
- if (device.features & HFP_HF_FEAT_CODEC) {
- select_codec(device.negotiated_codec);
+ /* we haven't negotiated codec, start selection */
+ if ((device.features & HFP_HF_FEAT_CODEC) && !device.negotiated_codec) {
+ select_codec(0);
return true;
}