Skip to content

Commit e34a70a

Browse files
charleskeepaxshumingfan
authored andcommitted
HID: core: Add bus define for SoundWire bus
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>
1 parent 9d2824a commit e34a70a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/hid/hid-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,6 +2294,9 @@ int hid_connect(struct hid_device *hdev, unsigned int connect_mask)
22942294
case BUS_I2C:
22952295
bus = "I2C";
22962296
break;
2297+
case BUS_SDW:
2298+
bus = "SOUNDWIRE";
2299+
break;
22972300
case BUS_VIRTUAL:
22982301
bus = "VIRTUAL";
22992302
break;

include/uapi/linux/input.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ struct input_mask {
275275
#define BUS_CEC 0x1E
276276
#define BUS_INTEL_ISHTP 0x1F
277277
#define BUS_AMD_SFH 0x20
278+
#define BUS_SDW 0x21
278279

279280
/*
280281
* MT_TOOL types

0 commit comments

Comments
 (0)