* Re: [PATCH v2 1/4] include: add HFP features types for HF and AG
2011-06-21 12:49 [PATCH v2 1/4] include: add HFP features types for HF and AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
@ 2011-06-20 9:22 ` Denis Kenzior
2011-06-21 12:49 ` [PATCH v2 2/4] hfp_hf: update to use new HFP enums =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Denis Kenzior @ 2011-06-20 9:22 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Hi Frédéric,
On 06/21/2011 07:49 AM, Frédéric Danis wrote:
> ---
> include/types.h | 24 ++++++++++++++++++++++++
> 1 files changed, 24 insertions(+), 0 deletions(-)
>
All four patches in this series have been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/4] include: add HFP features types for HF and AG
@ 2011-06-21 12:49 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-20 9:22 ` Denis Kenzior
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-06-21 12:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1315 bytes --]
---
include/types.h | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/include/types.h b/include/types.h
index d25f409..536dac7 100644
--- a/include/types.h
+++ b/include/types.h
@@ -115,6 +115,30 @@ struct ofono_uuid {
unsigned char uuid[OFONO_SHA1_UUID_LEN];
};
+/* HFP AG supported features bitmap. Bluetooth HFP 1.5 spec page 77 */
+enum hfp_ag_feature {
+ HFP_AG_FEATURE_3WAY = 0x1,
+ HFP_AG_FEATURE_ECNR = 0x2,
+ HFP_AG_FEATURE_VOICE_RECOG = 0x4,
+ HFP_AG_FEATURE_IN_BAND_RING_TONE = 0x8,
+ HFP_AG_FEATURE_ATTACH_VOICE_TAG = 0x10,
+ HFP_AG_FEATURE_REJECT_CALL = 0x20,
+ HFP_AG_FEATURE_ENHANCED_CALL_STATUS = 0x40,
+ HFP_AG_FEATURE_ENHANCED_CALL_CONTROL = 0x80,
+ HFP_AG_FEATURE_EXTENDED_RES_CODE = 0x100
+};
+
+/* HFP HF supported features bitmap. Bluetooth HFP 1.5 spec page 77 */
+enum hfp_hf_feature {
+ HFP_HF_FEATURE_ECNR = 0x1,
+ HFP_HF_FEATURE_3WAY = 0x2,
+ HFP_HF_FEATURE_CLIP = 0x4,
+ HFP_HF_FEATURE_VOICE_RECOGNITION = 0x8,
+ HFP_HF_FEATURE_REMOTE_VOLUME_CONTROL = 0x10,
+ HFP_HF_FEATURE_ENHANCED_CALL_STATUS = 0x20,
+ HFP_HF_FEATURE_ENHANCED_CALL_CONTROL = 0x40
+};
+
const char *ofono_uuid_to_str(const struct ofono_uuid *uuid);
void ofono_call_init(struct ofono_call *call);
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/4] hfp_hf: update to use new HFP enums
2011-06-21 12:49 [PATCH v2 1/4] include: add HFP features types for HF and AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-20 9:22 ` Denis Kenzior
@ 2011-06-21 12:49 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-21 12:49 ` [PATCH v2 3/4] hfpmodem: remove previous HFP defines =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-21 12:49 ` [PATCH v2 4/4] emulator: fix local HFP AG features =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
3 siblings, 0 replies; 5+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-06-21 12:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]
---
plugins/hfp_hf.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/plugins/hfp_hf.c b/plugins/hfp_hf.c
index 12d3457..8a76701 100644
--- a/plugins/hfp_hf.c
+++ b/plugins/hfp_hf.c
@@ -174,7 +174,7 @@ static void cmer_cb(gboolean ok, GAtResult *result, gpointer user_data)
return;
}
- if (data->ag_features & AG_FEATURE_3WAY)
+ if (data->ag_features & HFP_AG_FEATURE_3WAY)
g_at_chat_send(data->chat, "AT+CHLD=?", chld_prefix,
chld_cb, modem, NULL);
else
@@ -418,11 +418,11 @@ static int hfp_create_modem(const char *device, const char *dev_addr,
if (data == NULL)
goto free;
- data->hf_features |= HF_FEATURE_3WAY;
- data->hf_features |= HF_FEATURE_CLIP;
- data->hf_features |= HF_FEATURE_REMOTE_VOLUME_CONTROL;
- data->hf_features |= HF_FEATURE_ENHANCED_CALL_STATUS;
- data->hf_features |= HF_FEATURE_ENHANCED_CALL_CONTROL;
+ data->hf_features |= HFP_HF_FEATURE_3WAY;
+ data->hf_features |= HFP_HF_FEATURE_CLIP;
+ data->hf_features |= HFP_HF_FEATURE_REMOTE_VOLUME_CONTROL;
+ data->hf_features |= HFP_HF_FEATURE_ENHANCED_CALL_STATUS;
+ data->hf_features |= HFP_HF_FEATURE_ENHANCED_CALL_CONTROL;
data->handsfree_path = g_strdup(device);
if (data->handsfree_path == NULL)
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/4] hfpmodem: remove previous HFP defines
2011-06-21 12:49 [PATCH v2 1/4] include: add HFP features types for HF and AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-20 9:22 ` Denis Kenzior
2011-06-21 12:49 ` [PATCH v2 2/4] hfp_hf: update to use new HFP enums =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
@ 2011-06-21 12:49 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-21 12:49 ` [PATCH v2 4/4] emulator: fix local HFP AG features =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
3 siblings, 0 replies; 5+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-06-21 12:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
---
drivers/hfpmodem/hfpmodem.h | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/drivers/hfpmodem/hfpmodem.h b/drivers/hfpmodem/hfpmodem.h
index fca1a9b..37c9c02 100644
--- a/drivers/hfpmodem/hfpmodem.h
+++ b/drivers/hfpmodem/hfpmodem.h
@@ -22,25 +22,6 @@
#include <drivers/atmodem/atutil.h>
#include <ofono/dbus.h>
-/* AG supported features bitmap. Bluetooth HFP 1.5 spec page 77 */
-#define AG_FEATURE_3WAY 0x1
-#define AG_FEATURE_ECNR 0x2
-#define AG_FEATURE_VOICE_RECOG 0x4
-#define AG_FEATURE_IN_BAND_RING_TONE 0x8
-#define AG_FEATURE_ATTACH_VOICE_TAG 0x10
-#define AG_FEATURE_REJECT_CALL 0x20
-#define AG_FEATURE_ENHANCED_CALL_STATUS 0x40
-#define AG_FEATURE_ENHANCED_CALL_CONTROL 0x80
-#define AG_FEATURE_EXTENDED_RES_CODE 0x100
-
-#define HF_FEATURE_ECNR 0x1
-#define HF_FEATURE_3WAY 0x2
-#define HF_FEATURE_CLIP 0x4
-#define HF_FEATURE_VOICE_RECOGNITION 0x8
-#define HF_FEATURE_REMOTE_VOLUME_CONTROL 0x10
-#define HF_FEATURE_ENHANCED_CALL_STATUS 0x20
-#define HF_FEATURE_ENHANCED_CALL_CONTROL 0x40
-
#define AG_CHLD_0 0x01
#define AG_CHLD_1 0x02
#define AG_CHLD_1x 0x04
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 4/4] emulator: fix local HFP AG features
2011-06-21 12:49 [PATCH v2 1/4] include: add HFP features types for HF and AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
` (2 preceding siblings ...)
2011-06-21 12:49 ` [PATCH v2 3/4] hfpmodem: remove previous HFP defines =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
@ 2011-06-21 12:49 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
3 siblings, 0 replies; 5+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-06-21 12:49 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 812 bytes --]
---
src/emulator.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/emulator.c b/src/emulator.c
index 1439854..906404d 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -882,8 +882,11 @@ struct ofono_emulator *ofono_emulator_create(struct ofono_modem *modem,
return NULL;
em->type = type;
- /* TODO: Check real local features */
- em->l_features = 32;
+ em->l_features |= HFP_AG_FEATURE_3WAY;
+ em->l_features |= HFP_AG_FEATURE_REJECT_CALL;
+ em->l_features |= HFP_AG_FEATURE_ENHANCED_CALL_STATUS;
+ em->l_features |= HFP_AG_FEATURE_ENHANCED_CALL_CONTROL;
+ em->l_features |= HFP_AG_FEATURE_EXTENDED_RES_CODE;
em->events_mode = 3; /* default mode is forwarding events */
em->cmee_mode = 0; /* CME ERROR disabled by default */
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-21 12:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 12:49 [PATCH v2 1/4] include: add HFP features types for HF and AG =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-20 9:22 ` Denis Kenzior
2011-06-21 12:49 ` [PATCH v2 2/4] hfp_hf: update to use new HFP enums =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-21 12:49 ` [PATCH v2 3/4] hfpmodem: remove previous HFP defines =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-06-21 12:49 ` [PATCH v2 4/4] emulator: fix local HFP AG features =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.