[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240917221412.1003718-5-jogletre@opensource.cirrus.com>
Date: Tue, 17 Sep 2024 22:14:10 +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 4/6] Input: cs40l50 - Assign max concurrent playbacks
Explicitly assign the maximum number of simultaneously playable
effects.
Signed-off-by: James Ogletree <jogletre@...nsource.cirrus.com>
---
drivers/input/misc/cs40l50-vibra.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l50-vibra.c
index 03bdb7c26ec0..733f2989183b 100644
--- a/drivers/input/misc/cs40l50-vibra.c
+++ b/drivers/input/misc/cs40l50-vibra.c
@@ -508,7 +508,7 @@ static int cs40l50_vibra_probe(struct platform_device *pdev)
input_set_capability(vib->input, EV_FF, FF_PERIODIC);
input_set_capability(vib->input, EV_FF, FF_CUSTOM);
- error = input_ff_create(vib->input, CS40L50_EFFECTS_MAX);
+ error = input_ff_create(vib->input, FF_MAX_EFFECTS);
if (error) {
dev_err(vib->dev, "Failed to create input device\n");
return error;
@@ -517,6 +517,7 @@ static int cs40l50_vibra_probe(struct platform_device *pdev)
vib->input->ff->upload = cs40l50_add;
vib->input->ff->playback = cs40l50_playback;
vib->input->ff->erase = cs40l50_erase;
+ vib->input->ff->max_concurrent_playbacks = CS40L50_EFFECTS_MAX;
INIT_LIST_HEAD(&vib->effect_head);
--
2.43.0
Powered by blists - more mailing lists