projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f0970
)
HID: sony: DS4 use brighter LED colors
author
Roderick Colenbrander
<roderick.colenbrander@sony.com>
Fri, 24 Mar 2017 22:17:47 +0000
(15:17 -0700)
committer
Jiri Kosina
<jkosina@suse.cz>
Thu, 6 Apr 2017 12:41:17 +0000
(14:41 +0200)
These colors are more the default colors normally used on the DS4.
The previous ones were faint and not so noticeable.
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-sony.c
b/drivers/hid/hid-sony.c
index 85d24be74db34bb69e6d201ad601c12bd312eb6f..9863adf768ac6bdde728e6ab4206a7e85062a022 100644
(file)
--- a/
drivers/hid/hid-sony.c
+++ b/
drivers/hid/hid-sony.c
@@
-1628,10
+1628,10
@@
static void dualshock4_set_leds_from_id(struct sony_sc *sc)
{
/* The first 4 color/index entries match what the PS4 assigns */
static const u8 color_code[7][3] = {
- /* Blue */ { 0x00, 0x00, 0x
01
},
- /* Red */ { 0x
01
, 0x00, 0x00 },
- /* Green */ { 0x00, 0x
01
, 0x00 },
- /* Pink */ { 0x
02, 0x00, 0x01
},
+ /* Blue */ { 0x00, 0x00, 0x
40
},
+ /* Red */ { 0x
40
, 0x00, 0x00 },
+ /* Green */ { 0x00, 0x
40
, 0x00 },
+ /* Pink */ { 0x
20, 0x00, 0x20
},
/* Orange */ { 0x02, 0x01, 0x00 },
/* Teal */ { 0x00, 0x01, 0x01 },
/* White */ { 0x01, 0x01, 0x01 }