From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A74A176ACA; Tue, 17 Sep 2024 22:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611361; cv=none; b=E6zBjEYI+b2hu0zJqRuDRPFWhtmt4dYlrBL9emS7V2kn68qxq1JSWFK6b8kSyK/3O18KdOXGRo+lgBI03ye29so1Wg1w00i0PrvUcaRJnOBYf/5YFxTa1NjbcR1NCB+HUlZXvkh/Shgs0ABqHV4vPr8pTEFPJvA/mYV7/m1SRHo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611361; c=relaxed/simple; bh=U2CYGTxUaPJupOKjqGxiPCQvTOzqcdal4HO3jn/PbGA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lgJ58RT/SiGWBHTLl75oy7UtneKv9V9nYZIZs0X09/4uSJQMfnLtT+7IFnsgOGjLHMujw8j/pQ8SUasgmqzc6cg7Df9MxEHs1Ygo8lSstx89BaEO3ou5WSP0tv9ObH0mEaFQx86ll74cJCaZFIrgVMnG2v1J3eMiqaZToJlv2yE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=ezLvFGfZ; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="ezLvFGfZ" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48H5jtAT024984; Tue, 17 Sep 2024 17:15:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=9p38P5q18aNIzIGayOpW9J2z4hCzSUXeTTEplhYzGgc=; b= ezLvFGfZ8r1daQc4UJZg0WiqRzwoDYYVP97w4boHDD6S11lkJB/M8FrRrkUq3uVN m2+1kY+DHWIA4VrC5sN8o1CeRN7/u7flvbn3Cc3LxS+S388vLbqFNiwt4IxpvR98 Br4D4Ki0yKC5kPsRy5BJ8Qdo45YyVgWdJyAxpbZeBRMnWk/tTGnL9DOkYs2KAdW7 3o2ZusVFL9cFJa7gBxjPemmhcWIZNvoIhM9cHgbbzVnzsj+fpQq0tbZ3SZUzAbQC B9NInY2V1CdT9k4VB+wd7laFslWOWfmArt0wyXQDwKifcdwHZDWs05osvBfWSiLa o7StEpVVxVneTd8BL9gy8A== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 41n7vy498x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:43 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:41 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:41 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id CE3AD820244; Tue, 17 Sep 2024 22:15:39 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 1/6] Input: Add variable to track maximum concurrent playbacks Date: Tue, 17 Sep 2024 22:14:07 +0000 Message-ID: <20240917221412.1003718-2-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 3aogr52BPCsQWa5YmJW-rXyVpi2ZZLRn X-Proofpoint-GUID: 3aogr52BPCsQWa5YmJW-rXyVpi2ZZLRn X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Add max_concurrent_playbacks to ff_device which contains the maximum number of concurrent playbacks allowed by the device. Signed-off-by: James Ogletree --- drivers/input/evdev.c | 2 +- include/linux/input.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a8ce3d140722..42b55e03696b 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -1069,7 +1069,7 @@ static long evdev_do_ioctl(struct file *file, unsigne= d int cmd, =20 case EVIOCGEFFECTS: i =3D test_bit(EV_FF, dev->evbit) ? - dev->ff->max_effects : 0; + dev->ff->max_concurrent_playbacks : 0; if (put_user(i, ip)) return -EFAULT; return 0; diff --git a/include/linux/input.h b/include/linux/input.h index 89a0be6ee0e2..6d6e450e2231 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -531,6 +531,7 @@ extern const struct class input_class; * device (not emulated like ones in input_dev->ffbit) * @mutex: mutex for serializing access to the device * @max_effects: maximum number of effects supported by device + * @max_concurrent_playbacks: maximum number of concurrent playbacks * @effects: pointer to an array of effects currently loaded into device * @effect_owners: array of effect owners; when file handle owning * an effect gets closed the effect is automatically erased @@ -562,6 +563,7 @@ struct ff_device { struct mutex mutex; =20 int max_effects; + int max_concurrent_playbacks; struct ff_effect *effects; struct file *effect_owners[] __counted_by(max_effects); }; --=20 2.43.0 From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 619E115B551; Tue, 17 Sep 2024 22:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.152.168 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613080; cv=none; b=PQuw83fJ+LFR1T/k+PGWe5adS/W/oGhkb1CdnFX7rNT0pBaXBzAygQxW7QFSngFE014gki1gcStvyXz24NnTOgQwhG3ozMU/FeP+1G/PDL9WudBe1Vlvo28SDGV3exjk7h3PINIMqxZb1DD4DB5Etw/sw7fs1GyaRomzgFWL8cg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613080; c=relaxed/simple; bh=vN3oSRt+DWWZYqxbDzof1CIKa34v7dtlDeUZmDHCEDU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OXk1HrHdMGrYc7LvtAv+DD3R9TnoBYlVx1PTZsBDsZEiSLxsdetjD0beIw37C4WHBiC49VBJBHWFpPjc1xrm6uEr0fygT1B++dq3y/4s6WPbj+sDU62v8zSVG4+TygHeeM1e36K35eO4J++vbFh1oe5RxhutCGlyZrtuW5wHzcs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=klTkunSS; arc=none smtp.client-ip=67.231.152.168 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="klTkunSS" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48HBdjOm007522; Tue, 17 Sep 2024 17:15:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=pyKC/dASsCtA3+TZDyqPMdHSCS0SUd5biiWP/yIPQtI=; b= klTkunSSqLk8Clnion7dvY7MGP7Yv59W6N5ORsfWF1cxE1SbQYPSqniCn7wzeeMu NRlf6dxRm1lcAPjiXSK6kbFxLvHnJcaT0iTKuTuz/tthPG9ywlvV7soEmnrJ2I4A uMtE4vrkAi8VEYMlZwABko8kqf/wqpLNXeiXoZP9ruRvzps+5Fe/idI9Bhzge0z7 uCoEm1QH4WF2Ga8VEAIVxS3B54D/RUt96/Zfye6dCB4zyrCilYeNCj58cZvEI0US ohRqlv6uDlvSyHVT5UZ7ys1N1m5HRksLA3Q8c9uNpMm/I9eD/CkNmJbgPtQPvGS6 1WI4oli1gfhEfG4skFiLbw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 41n6wjkvuy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:43 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:42 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:42 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 40FEF820244; Tue, 17 Sep 2024 22:15:41 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 2/6] HID: logitech-hidpp: Assign max concurrent playbacks Date: Tue, 17 Sep 2024 22:14:08 +0000 Message-ID: <20240917221412.1003718-3-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 05zfyn2WrKX2sYT4WXEebImTaUj3DDh8 X-Proofpoint-ORIG-GUID: 05zfyn2WrKX2sYT4WXEebImTaUj3DDh8 X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Explicitly assign the maximum number of simultaneously playable effects. Signed-off-by: James Ogletree --- 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-hi= dpp.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 =3D hidpp_ff_set_gain; ff->set_autocenter =3D hidpp_ff_set_autocenter; ff->destroy =3D hidpp_ff_destroy; + ff->max_concurrent_playbacks =3D num_slots; =20 /* Create sysfs interface */ error =3D device_create_file(&(hidpp->hid_dev->dev), &dev_attr_range); --=20 2.43.0 From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C4AF1925B9; Tue, 17 Sep 2024 22:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.152.168 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613083; cv=none; b=oedT/L77GBHJuGZ7wnhF2dhHa2DOBfVhTADfO+mVsxwPVNNBurmPbfrbP2sIVTGJBjvXsOAA/K6QA8sP9re06NC5FwppX9MxPgqFUOt+zGMJpl/biwXV5JJLRwk0PCAMT7Fq66AIIwjQqaiVUU6XIG7UJgSmryxQ+wLkYCklqSU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613083; c=relaxed/simple; bh=WOHh/UpaH8St+UhgxQ7+nTUjI5YWKW9EZ0ZmLituKTo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h7aWeYHIfAir96vQo0Z/i3c9MIKaz4xsG46/KaayHb++Lz91AeIZS/4i9mwo26+aX4XQwGy+YidRhED3xc+9ju86QHc+c7J8rSE1QEZ8jBwcNFWlOt88EE05qPCI9SYjtJ9wSKWiYCkA39Iq+46vdQewdWkeOtMDUzh/vn4lYow= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=PhT2xBKM; arc=none smtp.client-ip=67.231.152.168 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="PhT2xBKM" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48HBdjOn007522; Tue, 17 Sep 2024 17:15:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=DPKVopMgdrrwHMHENM1Bl0UTsCXlqlh0hbgfzu8Bkwk=; b= PhT2xBKMFmhZZmn2SGPbdipXGYJtwNPvgwoAQwCKtgX811BcbX/Lx2IQg0M7m1kC a5ua8smwNbJNkv6MQAORBiyqngNXiL3zBQd4i/9boT7bSGbbROHP+CmCHXB5eL2a tJjjmchs5mixb4NGcq90O+bctxTQgf9+hYKG128RBu9SMVPD7FiMaOf/cpYRlowB /PC0mXtZdUF9RBXL4AWr+o1CxlSzcVyGIrTBIULQawTMZjuJS71qoiBnnyaB8I1x NiAGHUX1i785AehH+QcQIYAWqfPYVqpyD2jQi2kMHh8tLWbZM/1CN816S5Yod+42 djPpZ4SLFaiqVCgr+MIFjA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 41n6wjkvuy-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:44 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:43 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:43 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id B1AC1820244; Tue, 17 Sep 2024 22:15:42 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 3/6] HID: pidff: Assign max concurrent playbacks Date: Tue, 17 Sep 2024 22:14:09 +0000 Message-ID: <20240917221412.1003718-4-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: h5nUleeCzEeMGWUJP86B9x5kUpacBnZb X-Proofpoint-ORIG-GUID: h5nUleeCzEeMGWUJP86B9x5kUpacBnZb X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Explicitly assign the maximum number of simultaneously playable effects. Signed-off-by: James Ogletree --- drivers/hid/usbhid/hid-pidff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/usbhid/hid-pidff.c b/drivers/hid/usbhid/hid-pidff.c index 3b4ee21cd811..dd260fcdad60 100644 --- a/drivers/hid/usbhid/hid-pidff.c +++ b/drivers/hid/usbhid/hid-pidff.c @@ -1309,6 +1309,7 @@ int hid_pidff_init(struct hid_device *hid) ff->set_gain =3D pidff_set_gain; ff->set_autocenter =3D pidff_set_autocenter; ff->playback =3D pidff_playback; + ff->max_concurrent_playbacks =3D max_effects; =20 hid_info(dev, "Force feedback for USB HID PID devices by Anssi Hannula \n"); =20 --=20 2.43.0 From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6198B158522; Tue, 17 Sep 2024 22:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.152.168 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613081; cv=none; b=fW5G8//IcfgA2+8Ayn4ybRfXEnjthmYgmbwjbvYF6oydP1nEFjoWFo1tHp6I3zXGCFjkkQFR8NHnbv9oUuVQOPqp0/CCG2aHbGz87lkGpg2p6QEvkSVh9Dj5uObnemzXpwJR3oZIM+c9mm0jlqnmZ84Bs4gYgB5LyWtHps1IlEU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726613081; c=relaxed/simple; bh=Q5KWlqEFVdruWvrKVBozCOZU5hPkfxydK9faXJBbNr8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mhVAI9MytRE8etEck7J9GIruqu4Gcn+w0KmcpwFA+IXCeabF79YDoKyBb2LxJYBYzsISTExxf9UDAA9pWFjAx8p/p4jBt9LLeP0iYvr9Y8iwfny9NvfApII0vLV/FzOymzYLADugWGyIsIdpAwfsC7l/vpeGe9c5rAXfcoJt3vY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=l0sIbnJ9; arc=none smtp.client-ip=67.231.152.168 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="l0sIbnJ9" Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48H62R8p000811; Tue, 17 Sep 2024 17:15:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=4PWAFjB+tAqkahdkYgxAvFZGDOgghbdCykeRaL9hNW0=; b= l0sIbnJ92pKn1FOXQo1W9b7ITrXtX65kIXENRqmWeCJ2PP1KjDioSRGAXDHwIfXT tT8MWlcjz9kF9xVbSbXWDbyWxxHZ+6LR7cCHo2+bxtNK7AsOFVwt2A9KKjC8fEwi bLfx32PlGitg9q5CPp25CgMaowBUCxYZ0GLs5LF2HWC2Ys+5+a3/dcXSspGawtNf hw/n9jonmIIL4hLIRi68/2PLrNILnqhx/HuwhACQkegqbo6qQwvEEyeiAzIllGNR whgOdwvGgOqcvWjkEbKUoZa/U+Vb0taRFp8kDZ68aCNeHdymWVQZgMfdf8Y/E2cW wMAXG7PrAToScPHjhJ9Dsg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 41n6wjkvv0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:46 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:45 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:45 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 2F573820244; Tue, 17 Sep 2024 22:15:44 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 4/6] Input: cs40l50 - Assign max concurrent playbacks Date: Tue, 17 Sep 2024 22:14:10 +0000 Message-ID: <20240917221412.1003718-5-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: zSeUmsQff9DQpBf6J6_wgayRKOFyuGQ9 X-Proofpoint-ORIG-GUID: zSeUmsQff9DQpBf6J6_wgayRKOFyuGQ9 X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Explicitly assign the maximum number of simultaneously playable effects. Signed-off-by: James Ogletree --- 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/cs40l5= 0-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); =20 - error =3D input_ff_create(vib->input, CS40L50_EFFECTS_MAX); + error =3D 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 =3D cs40l50_add; vib->input->ff->playback =3D cs40l50_playback; vib->input->ff->erase =3D cs40l50_erase; + vib->input->ff->max_concurrent_playbacks =3D CS40L50_EFFECTS_MAX; =20 INIT_LIST_HEAD(&vib->effect_head); =20 --=20 2.43.0 From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F4131607A4; Tue, 17 Sep 2024 22:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611360; cv=none; b=SKHj1OvR6basbUiBbV1++hooEbIk/mJjDzM6W/SA492Kr0IbnguMWMGksMlBkmoWxQKvC8qpjy8DPJzzvd7pzNRACg3KTEwFz+nb6pVLnR5z1lhl2vyO+FjrtpcbmNjqxXEucPu2Yx8Q9bspK4JPB1853BnL3NOuVHC7CNfe/d8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611360; c=relaxed/simple; bh=49NVQ2yqL/opbcve1AD5yU3dx5v/JkhFF6MZmcX5lag=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WsyG+Pclzx/t29mmNKdg3HxAl8F8kDShVD+QDeFhfW9V9+CSXNmOWRyBSLRVWj057BEg/Z5+LcHLWURR0kfhg/cphoeClNyrGeetId6YeBDigNkqS/JViVprULeyP+UdJArJdmsr9j84k9YnZi3aVGEVNBu0cZGGtUfs5Oz8syk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=AgIGNb9v; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="AgIGNb9v" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48H5vDc1008726; Tue, 17 Sep 2024 17:15:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=zgVO9U8LyTR4hlaMioqYBrhe36zqzDVXzY3C/MXqVPo=; b= AgIGNb9vQrWv0ViKiDY2BMwMrPTVurN34VjZaNhZsUPUxP1Ocs5CYf9MJW2sGyNF bGLZ4aGbvSM0RAjt6X/6t9ALGXSZIRB3dQQHxs+7Hrw5wXj0pHyhKGhoSu/QW2Q3 YQSphHjIuRzqTBJnZS5Kh1Vr3YIhfAdhS1FTeLH+LpOzg6q67LSIhO4ghzZYZjfx ZHJOy/pi0+3p2ynYXI84UsiVD/wz9WlsnLxJxYdnM5BAgqN9q/Qw2GVkU3ihtaJF 5c8hX8w4h8AXtWbj9f8NdDMUXzXm8i3mVWZgBFOBfIwJCRDfaZaJJIk5PA3kMFPg cJidFsuRChNOtzfWFOY3aQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 41n7vy498y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:48 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:46 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:46 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 9FD2C820244; Tue, 17 Sep 2024 22:15:45 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 5/6] Input: da7280 - Assign max concurrent playbacks Date: Tue, 17 Sep 2024 22:14:11 +0000 Message-ID: <20240917221412.1003718-6-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 7dnxupkE_pX1xJlPoLNzPyO9Chw0RgF6 X-Proofpoint-GUID: 7dnxupkE_pX1xJlPoLNzPyO9Chw0RgF6 X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Explicitly assign the maximum number of simultaneously playable effects. Signed-off-by: James Ogletree --- drivers/input/misc/da7280.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/da7280.c b/drivers/input/misc/da7280.c index 1629b7ea4cbd..3d892ba343d0 100644 --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -1239,6 +1239,7 @@ static int da7280_probe(struct i2c_client *client) ff =3D input_dev->ff; ff->upload =3D da7280_haptics_upload_effect; ff->playback =3D da7280_haptics_playback; + ff->max_concurrent_playbacks =3D DA7280_FF_EFFECT_COUNT_MAX; =20 error =3D input_register_device(input_dev); if (error) { --=20 2.43.0 From nobody Fri Nov 29 15:51:31 2024 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A70415ECD5; Tue, 17 Sep 2024 22:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611361; cv=none; b=fguiifFgdKJuQq0IG8gyH8kDqD3vqfhMHcOYu0f/EufHub0eOxd5dhQL5CXXyRPhX3Wpvx+VawApZDcd7FL7ayt1fn/3Fhl+YRjFFbcU93jNTYap5Y580FS27zPSvaFLp9UmKueQEpR2Rwhxct0PuOu3lnwopm72i62kn/eGzts= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726611361; c=relaxed/simple; bh=IVaYPAA3Q/12P+uPdVn47GgZJ/fdH1FHZB2NjGgYVic=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gMRGjHRC0pWJIsAjGSrwIEHzDRsZLsBVpU57JTlIJ86eckdbRwbHZ3/6aIs3tqPgZG6hPxCVBfkH0yqM1UwRftt5ypXmR2RbASy6s+pEBP/xBak+J7bSh0gVmcO2tBsR2/rE1f+KbYWPt2mLwuGo81P1nC61mO/5+yMGEVm9u04= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=UFoCebZO; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="UFoCebZO" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48H9n74t005331; Tue, 17 Sep 2024 17:15:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= PODMain02222019; bh=TCdwABpkNR7O/jzOBWgPx9KVyKo76p1h99dB3k2a/EQ=; b= UFoCebZOjYRrTgvVabWXLsjM7SxEYCCQzlrJnrP+WC0UgztPwndIDLvAOPYiE9Cf VO39sPNPUmnjSj5tVZFSgphPBH2ZHL6Du/ryUkjN6Ml+/PJFyo5TsJRmWV9sgbE7 MpwC8tt43IjenKV816cOCpewMpA6yjSSc4GKe3iiuNZto6mlx8Bng56f1t39nwPC UsYT1JRESFnOeVATJQDZDFh71zT6Or5cSugqFEn/ZgI6N42x0jdHshRYJzpP+a1x xYVB/vfY9nvTW3On38KoHzUjspGEmRvFYvyhf/RSrzWs8fhOK3u8PAksoA2xkjEc MKU/fgKpI+KyK0a0Ol+DgA== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 41n7vy4991-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:15:50 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 17 Sep 2024 23:15:48 +0100 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by anon-ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1544.9 via Frontend Transport; Tue, 17 Sep 2024 23:15:48 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.15]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 1C3EA820244; Tue, 17 Sep 2024 22:15:46 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 6/6] Input: uinput - Assign max concurrent playbacks Date: Tue, 17 Sep 2024 22:14:12 +0000 Message-ID: <20240917221412.1003718-7-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> References: <20240917221412.1003718-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: BR-NkRPfMVUqrKvPpGVkKUF7PDJXm_IQ X-Proofpoint-GUID: BR-NkRPfMVUqrKvPpGVkKUF7PDJXm_IQ X-Proofpoint-Spam-Reason: safe Content-Type: text/plain; charset="utf-8" Explicitly assign the maximum number of simultaneously playable effects. Signed-off-by: James Ogletree --- drivers/input/misc/uinput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 445856c9127a..81372e942ba4 100644 --- a/drivers/input/misc/uinput.c +++ b/drivers/input/misc/uinput.c @@ -350,6 +350,7 @@ static int uinput_create_device(struct uinput_device *u= dev) dev->ff->playback =3D uinput_dev_playback; dev->ff->set_gain =3D uinput_dev_set_gain; dev->ff->set_autocenter =3D uinput_dev_set_autocenter; + dev->ff->max_concurrent_playbacks =3D udev->ff_effects_max; /* * The standard input_ff_flush() implementation does * not quite work for uinput as we can't reasonably --=20 2.43.0