As there is some knowledge about the codecs in both the core
(handsfree-audio) and the hfpmodem driver, this information should
be available from a single location.
---
include/types.h | 6 ++++++
src/handsfree-audio.c | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/types.h b/include/types.h
index 8c01bf4..93a403b 100644
--- a/include/types.h
+++ b/include/types.h
@@ -141,6 +141,12 @@ enum hfp_hf_feature {
HFP_HF_FEATURE_CODEC_NEGOTIATION = 0x80,
};
+/* Defined HFP 1.6 codecs */
+enum hfp_codec {
+ HFP_CODEC_CVSD = 0x01,
+ HFP_CODEC_MSBC = 0x02,
+};
+
const char *ofono_uuid_to_str(const struct ofono_uuid *uuid);
void ofono_call_init(struct ofono_call *call);
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 699c8cc..69d033d 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -43,12 +43,6 @@
#define HFP_AUDIO_AGENT_INTERFACE OFONO_SERVICE ".HandsfreeAudioAgent"
#define HFP_AUDIO_CARD_INTERFACE OFONO_SERVICE ".HandsfreeAudioCard"
-/* Supported agent codecs */
-enum hfp_codec {
- HFP_CODEC_CVSD = 0x01,
- HFP_CODEC_MSBC = 0x02,
-};
-
struct ofono_handsfree_card {
char *remote;
char *local;
--
1.8.2
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono