summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-02-19 15:53:20 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-02-19 15:53:20 +0000
commita8bdd2f6be0cdb932110290f3534a525d99c5031 (patch)
treed8ef8e3d6d840b532ddf098d6de446ae299f1eea
parentff7353d5c40698a036bcc1e87cd26f2bb3ff3b87 (diff)
Refuse Headset.Play() when HCI routing is configured
-rw-r--r--audio/headset.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index f507bfb9..faaf47f5 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1403,6 +1403,12 @@ static DBusHandlerResult hs_play(DBusConnection *conn, DBusMessage *msg,
struct headset *hs = device->headset;
int err;
+ if (sco_hci) {
+ error("Refusing Headset.Play() because SCO HCI routing "
+ "is enabled");
+ return error_not_available(conn, msg);
+ }
+
switch (hs->state) {
case HEADSET_STATE_DISCONNECTED:
case HEADSET_STATE_CONNECT_IN_PROGRESS: