OSDN Git Service

Fix CK-20W quirks for play and pause events
authorDaniel Orstadius <daniel.orstadius@gmail.com>
Tue, 3 Nov 2009 08:22:17 +0000 (10:22 +0200)
committerJohan Hedberg <johan.hedberg@nokia.com>
Tue, 3 Nov 2009 11:45:27 +0000 (13:45 +0200)
It seems the play and pause key presses also lack the release event
sometimes so also add the necessary quirk to them.

audio/control.c

index 44c03f9..a53caef 100644 (file)
@@ -650,6 +650,8 @@ static void init_uinput(struct control *control)
        if (g_str_equal(name, "Nokia CK-20W")) {
                control->key_quirks[FORWARD_OP] |= QUIRK_NO_RELEASE;
                control->key_quirks[BACKWARD_OP] |= QUIRK_NO_RELEASE;
+               control->key_quirks[PLAY_OP] |= QUIRK_NO_RELEASE;
+               control->key_quirks[PAUSE_OP] |= QUIRK_NO_RELEASE;
        }
 
        ba2str(&dev->dst, address);