-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rk35xx
/legacy
: rewrite-kernel-patches, no changes
- Loading branch information
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
Signed-off-by: Ivan Mironov <[email protected]> | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: monkaBlyat <[email protected]> | ||
Date: Sun, 18 Aug 2024 10:39:57 +0200 | ||
Subject: [ARCHEOLOGY] legacy kernel patch for ds4 controllers | ||
|
||
> X-Git-Archeology: - Revision 54cc6ea4e2460c31960b7cbef5d27d588534eb77: https://github.com/armbian/build/commit/54cc6ea4e2460c31960b7cbef5d27d588534eb77 | ||
> X-Git-Archeology: Date: Sun, 18 Aug 2024 10:39:57 +0200 | ||
> X-Git-Archeology: From: monkaBlyat <[email protected]> | ||
> X-Git-Archeology: Subject: legacy kernel patch for ds4 controllers | ||
> X-Git-Archeology: | ||
--- | ||
drivers/hid/hid-sony.c | 72 ++++++++++++++++++++++++++++++------------ | ||
drivers/hid/hid-sony.c | 72 +++++++--- | ||
1 file changed, 52 insertions(+), 20 deletions(-) | ||
|
||
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c | ||
index e3a557dc9ffd..97df12180e45 100644 | ||
index 111111111111..222222222222 100644 | ||
--- a/drivers/hid/hid-sony.c | ||
+++ b/drivers/hid/hid-sony.c | ||
@@ -491,6 +491,7 @@ struct motion_output_report_02 { | ||
@@ -476,6 +476,7 @@ struct motion_output_report_02 { | ||
|
||
#define DS4_FEATURE_REPORT_0x02_SIZE 37 | ||
#define DS4_FEATURE_REPORT_0x05_SIZE 41 | ||
+#define DS4_FEATURE_REPORT_0x12_SIZE 16 | ||
#define DS4_FEATURE_REPORT_0x81_SIZE 7 | ||
#define DS4_FEATURE_REPORT_0xA3_SIZE 49 | ||
#define DS4_INPUT_REPORT_0x11_SIZE 78 | ||
@@ -2593,6 +2594,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc) | ||
@@ -2454,6 +2455,53 @@ static int sony_get_bt_devaddr(struct sony_sc *sc) | ||
return 0; | ||
} | ||
|
||
|
@@ -69,7 +78,7 @@ index e3a557dc9ffd..97df12180e45 100644 | |
static int sony_check_add(struct sony_sc *sc) | ||
{ | ||
u8 *buf = NULL; | ||
@@ -2613,26 +2661,9 @@ static int sony_check_add(struct sony_sc *sc) | ||
@@ -2474,26 +2522,9 @@ static int sony_check_add(struct sony_sc *sc) | ||
return 0; | ||
} | ||
} else if (sc->quirks & (DUALSHOCK4_CONTROLLER_USB | DUALSHOCK4_DONGLE)) { | ||
|
@@ -99,7 +108,7 @@ index e3a557dc9ffd..97df12180e45 100644 | |
|
||
snprintf(sc->hdev->uniq, sizeof(sc->hdev->uniq), | ||
"%pMR", sc->mac_address); | ||
@@ -2670,6 +2701,7 @@ static int sony_check_add(struct sony_sc *sc) | ||
@@ -2531,6 +2562,7 @@ static int sony_check_add(struct sony_sc *sc) | ||
return 0; | ||
} | ||
|
||
|
@@ -108,4 +117,5 @@ index e3a557dc9ffd..97df12180e45 100644 | |
|
||
out_free: | ||
-- | ||
2.29.2 | ||
Armbian | ||
|