summaryrefslogtreecommitdiffstats
path: root/audio/headset.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-27 11:31:01 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-27 11:31:01 +0000
commite1bfc91de96a38616100cc31db7bdb69f2cfbea6 (patch)
treef8e2ce652875076f96b0db575a5daabb10156e66 /audio/headset.h
parentca3ff4f6a27ff2d421a7f8fdd3bd5dd67f1f47df (diff)
Convert alsa initiated headset connections to similar callback system that A2DP is already using
Diffstat (limited to 'audio/headset.h')
-rw-r--r--audio/headset.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/audio/headset.h b/audio/headset.h
index 29e2e496..31486834 100644
--- a/audio/headset.h
+++ b/audio/headset.h
@@ -46,6 +46,8 @@ typedef enum {
SVC_HANDSFREE
} headset_type_t;
+typedef void (*headset_stream_cb_t) (struct device *dev, void *user_data);
+
struct headset *headset_init(struct device *dev, sdp_record_t *record,
uint16_t svc);
@@ -53,8 +55,8 @@ void headset_free(struct device *dev);
void headset_update(struct device *dev, sdp_record_t *record, uint16_t svc);
-int headset_get_config(struct device *dev, int sock, struct ipc_packet *pkt,
- int pkt_len, struct ipc_data_cfg **rsp, int *fd);
+unsigned int headset_request_stream(struct device *dev, headset_stream_cb_t cb,
+ void *user_data);
headset_type_t headset_get_type(struct device *dev);
void headset_set_type(struct device *dev, headset_type_t type);
@@ -67,6 +69,8 @@ void headset_set_state(struct device *dev, headset_state_t state);
int headset_get_channel(struct device *dev);
+int headset_get_sco_fd(struct device *dev);
+
gboolean headset_is_active(struct device *dev);
gboolean headset_lock(struct device *dev, void *data);