summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-11-27 09:15:16 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-11-27 09:15:16 +0000
commiteb1366556817d77e611bf42990db1c74fae37b90 (patch)
tree13072a9ec1a933ee3d603d33b612f562394b9bb1
parent41c458777419bf2ff42a911d1315d81b30607ba5 (diff)
Use KEY_PREVIOUSSONG and KEY_NEXTSONG (instead of KEY_PREVIOUS and KEY_NEXT) since they seem to be more widely supported by existing software
-rw-r--r--audio/control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/control.c b/audio/control.c
index 3f512672..bb3f2bf1 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -447,8 +447,8 @@ static int uinput_create(char *name)
ioctl(fd, UI_SET_KEYBIT, KEY_PLAYPAUSE);
ioctl(fd, UI_SET_KEYBIT, KEY_STOP);
- ioctl(fd, UI_SET_KEYBIT, KEY_NEXT);
- ioctl(fd, UI_SET_KEYBIT, KEY_PREVIOUS);
+ ioctl(fd, UI_SET_KEYBIT, KEY_NEXTSONG);
+ ioctl(fd, UI_SET_KEYBIT, KEY_PREVIOUSSONG);
ioctl(fd, UI_SET_KEYBIT, KEY_REWIND);
ioctl(fd, UI_SET_KEYBIT, KEY_FORWARD);
@@ -560,11 +560,11 @@ static void handle_panel_passthrough(struct avctp *session,
break;
case NEXT_OP:
debug("AVRCP: NEXT %s", status);
- send_key(session->uinput, KEY_NEXT, pressed);
+ send_key(session->uinput, KEY_NEXTSONG, pressed);
break;
case PREV_OP:
debug("AVRCP: PREV %s", status);
- send_key(session->uinput, KEY_PREVIOUS, pressed);
+ send_key(session->uinput, KEY_PREVIOUSSONG, pressed);
break;
case REWIND_OP:
debug("AVRCP: REWIND %s", status);