[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240917221412.1003718-3-jogletre@opensource.cirrus.com>
Date: Tue, 17 Sep 2024 22:14:08 +0000
From: James Ogletree <jogletre@...nsource.cirrus.com>
To: <jikos@...nel.org>, <bentiss@...nel.org>, <dmitry.torokhov@...il.com>
CC: <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-usb@...r.kernel.org>, <patches@...nsource.cirrus.com>,
James Ogletree
<jogletre@...nsource.cirrus.com>
Subject: [RFC PATCH 2/6] HID: logitech-hidpp: Assign max concurrent playbacks
Explicitly assign the maximum number of simultaneously playable
effects.
Signed-off-by: James Ogletree <jogletre@...nsource.cirrus.com>
---
drivers/hid/hid-logitech-hidpp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 400d70e6dbe2..843697b176ef 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -2895,6 +2895,7 @@ static int hidpp_ff_init(struct hidpp_device *hidpp,
ff->set_gain = hidpp_ff_set_gain;
ff->set_autocenter = hidpp_ff_set_autocenter;
ff->destroy = hidpp_ff_destroy;
+ ff->max_concurrent_playbacks = num_slots;
/* Create sysfs interface */
error = device_create_file(&(hidpp->hid_dev->dev), &dev_attr_range);
--
2.43.0
Powered by blists - more mailing lists