diff options
-rw-r--r-- | audio/headset.c | 6 | ||||
-rw-r--r-- | audio/telephony-dummy.c | 18 | ||||
-rw-r--r-- | audio/telephony.h | 9 |
3 files changed, 33 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index c3825851..64749053 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -54,6 +54,7 @@ #include "device.h" #include "manager.h" #include "error.h" +#include "telephony.h" #include "headset.h" #include "glib-helper.h" @@ -1957,3 +1958,8 @@ int headset_get_sco_fd(struct audio_device *dev) return g_io_channel_unix_get_fd(hs->sco); } + +void telephony_features_rsp(uint32_t features) +{ + ag_features = features; +} diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c index b698893e..9d07f56a 100644 --- a/audio/telephony-dummy.c +++ b/audio/telephony-dummy.c @@ -27,3 +27,21 @@ #endif #include "telephony.h" + +int telephony_init(void) +{ + return 0; +} + +void telephony_exit(void) +{ +} + +int telephony_features_req(void) +{ + uint32_t features = 0; + + telephony_features_rsp(features); + + return 0; +} diff --git a/audio/telephony.h b/audio/telephony.h index 8a990113..67887ca9 100644 --- a/audio/telephony.h +++ b/audio/telephony.h @@ -22,3 +22,12 @@ * */ +#include <stdint.h> + +int telephony_init(void); + +void telephony_exit(void); + +int telephony_features_req(void); + +void telephony_features_rsp(uint32_t features); |