summaryrefslogtreecommitdiffstats
path: root/audio/device.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 15:42:10 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 15:42:10 +0000
commitcdd9e2e17ad674e5fc1a5ed19643880ef61d28c7 (patch)
tree5292da714c803e54ad8e199f3a06d6db9d9d42f2 /audio/device.c
parent3863eba35ca65bb4ea17d3763ae27afafdf0f4c2 (diff)
Rework interfacing with the avdtp state machine
Diffstat (limited to 'audio/device.c')
-rw-r--r--audio/device.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/audio/device.c b/audio/device.c
index fe3af8cb..2a6498ee 100644
--- a/audio/device.c
+++ b/audio/device.c
@@ -328,21 +328,7 @@ void device_finish_sdp_transaction(struct device *dev)
dbus_message_unref(reply);
}
-int device_get_config(struct device *dev, int sock, struct ipc_packet *req,
- int pkt_len, struct ipc_data_cfg **rsp, int *fd)
-{
- if (dev->sink && sink_is_active(dev))
- return sink_get_config(dev, sock, req, pkt_len, rsp, fd);
- else if (dev->headset && headset_is_active(dev))
- return headset_get_config(dev, sock, req, pkt_len, rsp, fd);
- else if (dev->sink)
- return sink_get_config(dev, sock, req, pkt_len, rsp, fd);
- else if (dev->headset)
- return headset_get_config(dev, sock, req, pkt_len, rsp, fd);
-
- return -EINVAL;
-}
-
+#if 0
static avdtp_state_t ipc_to_avdtp_state(uint8_t ipc_state)
{
switch (ipc_state) {
@@ -379,14 +365,7 @@ static headset_state_t ipc_to_hs_state(uint8_t ipc_state)
return HEADSET_STATE_DISCONNECTED;
}
}
-
-void device_set_state(struct device *dev, uint8_t state)
-{
- if (dev->sink && sink_is_active(dev))
- sink_set_state(dev, ipc_to_avdtp_state(state));
- else if (dev->headset && headset_is_active(dev))
- headset_set_state(dev, ipc_to_hs_state(state));
-}
+#endif
static uint8_t avdtp_to_ipc_state(avdtp_state_t state)
{