[PATCHv5 13/13] android/handsfree: Do not make unneeded VOICE ioctl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/handsfree.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/android/handsfree.c b/android/handsfree.c
index e694503..befaa6f 100644
--- a/android/handsfree.c
+++ b/android/handsfree.c
@@ -930,8 +930,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;
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux