]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
HID: core: Add bus define for SoundWire bus
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 16 Jun 2025 11:49:07 +0000 (19:49 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 20 Jun 2025 10:52:06 +0000 (11:52 +0100)
SDCA (SoundWire Device Class for Audio) uses HID to convey
input events from peripheral devices. Add a bus define for the
SoundWire bus to prepare support for this.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Acked-by: Jiri Kosina <jkosina@suse.com>
Link: https://patch.msgid.link/20250616114907.855452-1-shumingf@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/hid/hid-core.c
include/uapi/linux/input.h

index b348d0464314ca331da073128f0ec4e0a6a91ed1..b419e31005b870bccddb806256e11549fbcd6ed2 100644 (file)
@@ -2294,6 +2294,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
        case BUS_I2C:
                bus = "I2C";
                break;
+       case BUS_SDW:
+               bus = "SOUNDWIRE";
+               break;
        case BUS_VIRTUAL:
                bus = "VIRTUAL";
                break;
index 2557eb7b056178b2b8be98d9cea855eba1bd5aaf..127119c287cffd04e6f30902bf4db721818679d5 100644 (file)
@@ -275,6 +275,7 @@ struct input_mask {
 #define BUS_CEC                        0x1E
 #define BUS_INTEL_ISHTP                0x1F
 #define BUS_AMD_SFH            0x20
+#define BUS_SDW                        0x21
 
 /*
  * MT_TOOL types