From 319cc14e14afcce95aa9299fd3b357d8d4e596cd Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 4 May 2007 09:55:29 +0000 Subject: Input Service support for phones --- input/device.c | 3 +++ input/manager.c | 1 + 2 files changed, 4 insertions(+) (limited to 'input') diff --git a/input/device.c b/input/device.c index cd8662db..edf8c475 100644 --- a/input/device.c +++ b/input/device.c @@ -195,6 +195,9 @@ static const char *create_input_path(uint8_t major, uint8_t minor) static int next_id = 0; switch (major) { + case 0x02: /* Phone */ + strcpy(subpath, "phone"); + break; case 0x04: /* Audio */ switch (minor) { /* FIXME: Testing required */ diff --git a/input/manager.c b/input/manager.c index f9c273fe..de4ad0e3 100644 --- a/input/manager.c +++ b/input/manager.c @@ -800,6 +800,7 @@ static DBusHandlerResult create_device(DBusConnection *conn, switch (cls & 0x1f00) { case 0x0500: /* Peripheral */ + case 0x0200: /* Phone */ if (get_handles(pr, pnp_uuid, pnp_handle_reply) < 0) { pending_req_free(pr); return err_not_supported(conn, msg); -- cgit