Diff between f05d46c09a474e01cf315d0769c9fb3d57c452e8 and f264a651709752c1b19ca6380a2151451af9615b
Changed Files
| File | Additions | Deletions | Status |
| android/handsfree.c | +2 | -5 | modified |
Full Patch
diff --git a/android/handsfree.c b/android/handsfree.c
index c41dc74..a3a8d7d 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -1647,11 +1647,8 @@ static bool disconnect_sco(void)
static bool connect_audio(void)
{
- if ((device.features & HFP_HF_FEAT_CODEC) && !device.negotiated_codec) {
- /* It's probably first connection, select best codec
- * and try connect
- */
- select_codec(0);
+ if (device.features & HFP_HF_FEAT_CODEC) {
+ select_codec(device.negotiated_codec);
return true;
}