diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-02-19 15:53:20 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-02-19 15:53:20 +0000 |
commit | a8bdd2f6be0cdb932110290f3534a525d99c5031 (patch) | |
tree | d8ef8e3d6d840b532ddf098d6de446ae299f1eea | |
parent | ff7353d5c40698a036bcc1e87cd26f2bb3ff3b87 (diff) |
Refuse Headset.Play() when HCI routing is configured
-rw-r--r-- | audio/headset.c | 6 |
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: |