diff --git a/src/driver-openinput.c b/src/driver-openinput.c index a24743b0..a1baa198 100644 --- a/src/driver-openinput.c +++ b/src/driver-openinput.c @@ -168,8 +168,9 @@ openinput_info_version(struct ratbag_device *device) return 0; } -#define OI_FUNCTION_FW_INFO_VENDOR 0x00 -#define OI_FUNCTION_FW_INFO_VERSION 0x01 +#define OI_FUNCTION_FW_INFO_VENDOR 0x00 +#define OI_FUNCTION_FW_INFO_VERSION 0x01 +#define OI_FUNCTION_FW_INFO_DEVICE_NAME 0x02 static int openinput_info_fw_info(struct ratbag_device *device, @@ -235,6 +236,10 @@ openinput_probe(struct ratbag_device *device) if (!ret) log_info(device->ratbag, "openinput: firmware version: %s\n", str); + ret = openinput_info_fw_info(device, OI_FUNCTION_FW_INFO_DEVICE_NAME, str, sizeof(str)); + if (!ret) + log_info(device->ratbag, "openinput: device: %s\n", str); + ratbag_device_init_profiles(device, drv_data->num_profiles, drv_data->num_resolutions,