summaryrefslogtreecommitdiffstats
path: root/audio/manager.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-06-06 17:58:19 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-06-06 17:58:19 +0000
commitf1a8e719f5687bb32f2f5ed59f26a3203ad43efb (patch)
tree8771c939ccaa33d02a98ef2689217a1fad5a20d9 /audio/manager.c
parente47ffdb86e691d7418c0e5a2bebbdd7c512aa50f (diff)
Some fixes for audio code prototype.
Diffstat (limited to 'audio/manager.c')
-rw-r--r--audio/manager.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/manager.c b/audio/manager.c
index 1b727f7a..df0f550f 100644
--- a/audio/manager.c
+++ b/audio/manager.c
@@ -1286,3 +1286,14 @@ void audio_exit(void)
connection = NULL;
}
+
+int manager_get_device(uint8_t role, struct ipc_data_cfg *cfg)
+{
+ if (default_hs == NULL || default_hs->headset == NULL)
+ return -1;
+
+ if (!headset_is_connected(default_hs->headset))
+ return -1;
+
+ return headset_get_config(default_hs->headset, cfg);
+}