From patchwork Wed Oct 9 15:40:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834907 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 3B41F1991CE; Wed, 9 Oct 2024 15:44:39 +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=1728488681; cv=none; b=jr3Tx57++bFj9C71J/mRtpH3CXMePyZJaxql6OBJkQ8TDJQ6vd8jpa9QMwiSPi1KL4GCySFco81N9vocDA+C2ybBw8G2OKHmuxWpImbjEbDAZNcmfqYnAvsY9i/b/clnS20c72j9jIwM8cIESafl0mDsmUmBljQGgk0Hm3DaEZg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488681; c=relaxed/simple; bh=U2CYGTxUaPJupOKjqGxiPCQvTOzqcdal4HO3jn/PbGA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gmVjVstJPpjfbADjqVQX+CCPvv7F+2Zv0A9yx9yOk/pqaptwoCxjmFRsmm4WiAQOZsgPf41jC5VWKQLcQ9sMOxBa+fJe7Rj+TnjaC6FRjnxf+xtUhbIkEQJ6muV/ctobz7ia8n3nSL3XZ4Mddcyv1ErIexm0BHrTN00BGT0585I= 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=OetfuDyc; 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="OetfuDyc" 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 4994USGf019251; Wed, 9 Oct 2024 10:40:57 -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= OetfuDycQRrIHW7MpMOfGdEv1qWWA9ZjpsB0G4ZY6iCpRgrDtynTFZlKLt21crys nX22PUSeM2yaipnuIfDcH3+g03KHB/QtTLiGMpUbYCQu3Zqm4bUknUmO+/+LXeTR sGI9xUfULTv/GjgQzSpMTPtKVgivIym0JMrI+sOXP01cwP6KGBHFhg9LrsjwIM32 wmDaxQ5zdpROdIW1fSS3sfH3DHME71Cfnc+iLwvlNnU9NVnOwCeoQi9gLe6nbgvK cmqiu8LZMtR24a1xi1mn3vBk6N6eQFsWr7mdPG3xMzkrRlGuS/OCfXIEFgAh76/W FNMbh3BxhrnuIMQid2/EBw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 4231vhwgnw-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:40:57 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) 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; Wed, 9 Oct 2024 16:40:56 +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; Wed, 9 Oct 2024 16:40:56 +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 47BE782024A; Wed, 9 Oct 2024 15:40:55 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 1/6] Input: Add variable to track maximum concurrent playbacks Date: Wed, 9 Oct 2024 15:40:41 +0000 Message-ID: <20241009154046.1011226-2-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: f3d5CUn4btAcD480GxIAp47MxzNOu8Yz X-Proofpoint-ORIG-GUID: f3d5CUn4btAcD480GxIAp47MxzNOu8Yz X-Proofpoint-Spam-Reason: safe 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, unsigned int cmd, case EVIOCGEFFECTS: i = 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; int max_effects; + int max_concurrent_playbacks; struct ff_effect *effects; struct file *effect_owners[] __counted_by(max_effects); }; From patchwork Wed Oct 9 15:40:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834556 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 B4FE01FBC8D; Wed, 9 Oct 2024 15: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=1728488683; cv=none; b=hqwM5vXADNFu2Z+xHu2GOt692psYUmCUT/ukm+gOwN3bsGTmfndsVKBaQqA68QKSNphOjI5aJzarxDDhmN+7H1t3pd1rixlp7q+IvCnnPvJ2O8UQrHNY2QvjK7RDdDt6HuaAJ2DpZP4jcmwm1hOQEb5IRPTSOcsJW+wnczscsxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488683; c=relaxed/simple; bh=vN3oSRt+DWWZYqxbDzof1CIKa34v7dtlDeUZmDHCEDU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PYuihjghRZgyp+VGk3TFZZhY4Dt2chw2DSgRDYaZe5xykt7tRg8DSn8soXtfwo0UICwWhpGc1IbcbdCEqD/EcwRKHRdYk72ouULOMHneKBMzcuGS4BN+thIzL92hhc37JFCG0vJ6cWESRmozSgOKfekPzt62uNMZyJUjJ4usspY= 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=OELBm3w0; 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="OELBm3w0" 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 4994jS5K008613; Wed, 9 Oct 2024 10:40:59 -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= OELBm3w0TyQMFW+Pyki/LB0esGQNT/NKmYuitCVLVuSnvCAo4XM/xNYeYzjtABeA A85Fzf5zkybp5IykVQwffQVIdA7y+Pxl1WD0QwwRdu/6fo6KIDnouT29ys6gEtBY pzMO6xHG7UNXMTwfdu8ZKyp4CflyEohZgG69gyJHFvG/WSEjDtZNBuHfX8tJf9DK OGpbRtSWSRxkvWxFAptfZ5TZsU0Zm8vPvkVMIUf1mgwqHjBVHs+zcmeGIfCQ7NpX wEvLS51GQ7k+7VdkmCeKw2s14HJJbRf/ekOdGpFZ3qHlH+sssCqQaqTK/It6LljY th3ZTtv9gWKhnYW5qYRUgQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 4231vhwgp3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:40:59 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) 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; Wed, 9 Oct 2024 16:40:57 +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; Wed, 9 Oct 2024 16:40:57 +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 AEAF582024A; Wed, 9 Oct 2024 15:40:56 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 2/6] HID: logitech-hidpp: Assign max concurrent playbacks Date: Wed, 9 Oct 2024 15:40:42 +0000 Message-ID: <20241009154046.1011226-3-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: tgIxNsgKgqIDtWuiPzLtcGz4ZB62_3nz X-Proofpoint-ORIG-GUID: tgIxNsgKgqIDtWuiPzLtcGz4ZB62_3nz X-Proofpoint-Spam-Reason: safe 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-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); From patchwork Wed Oct 9 15:40:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834559 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 0D7D32AD1C; Wed, 9 Oct 2024 15:41:05 +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=1728488467; cv=none; b=Za3EJr7JWnx8OrIxLq16fVX302S0uV6mhPd8JQocfDLJz7qz1VLxy8U4xDhb8pvEbezfKf2NgRYgG7EwyF6kJRGHyrMWJXKo1x//txd1lACWLBecEojFf5Y86cE15BASbQ5vIhDwcTanO4PmXunnVodmWaQmekYbKzRdlnwJFtA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488467; 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=ek6oeOpkN9lykuk2wjAGuiBak60wCZp3o9lJbp9Cs03MuMlfCx0pGbucTwOgeRi5dVGvmZZftEmQptkHrudO6q/r4qib97JZZvitRRPOhwY52vQ+GwpPEeRY/CiZTuYLKlvTYu6IRjxDnpgX7KhODqZbIy0vBTdo+DnD9V7d/O4= 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=Ks9orqre; 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="Ks9orqre" 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 499499oJ031691; Wed, 9 Oct 2024 10:41:02 -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= Ks9orqreO8RDzO+qAl1EUmkQkJ0lnLO4eRuyjMwlQf3gGYsOby2ZgLuMNWYXyv2J sknUsTEwFwxv+tlpA/a/g6Kc77d9j7//c/PHATCVFiwzDTUCSh1Drlf9auH0jqaJ k/p+FadzezJQiaQlyOofnNgl+1VCHxF0dFy5veQIr/BWjnCO0AuX6QWAuUThviaY D6w6QHVR2NfXIY6i8/Ptd/PyBiRKQ4YYgJQI32AaVRa6rr09eP1HhzDzHNI38NYk i8WjipksTLZhW3sYdIEoOqD/Enlnosr5qi4rFqkIsDW7vwKJUfrjOdhLQ9ZVgGcu Kjl3G3OEYhIJ0RYXjSzAEw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 4232uy661f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:41:01 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) 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; Wed, 9 Oct 2024 16:40:59 +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; Wed, 9 Oct 2024 16:40:59 +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 2B2B182024A; Wed, 9 Oct 2024 15:40:58 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 3/6] HID: pidff: Assign max concurrent playbacks Date: Wed, 9 Oct 2024 15:40:43 +0000 Message-ID: <20241009154046.1011226-4-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: Ogz8504EGo22Y_caY7Ly5IX8rKNFVwXM X-Proofpoint-ORIG-GUID: Ogz8504EGo22Y_caY7Ly5IX8rKNFVwXM X-Proofpoint-Spam-Reason: safe 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 = pidff_set_gain; ff->set_autocenter = pidff_set_autocenter; ff->playback = pidff_playback; + ff->max_concurrent_playbacks = max_effects; hid_info(dev, "Force feedback for USB HID PID devices by Anssi Hannula \n"); From patchwork Wed Oct 9 15:40:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834909 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 785311A3AB8; Wed, 9 Oct 2024 15:41:06 +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=1728488467; cv=none; b=dkdK1+xj65Qdnqv1DosoSN4mICZd2TeDKNQyTOPyEdNAJIqhRb0smdoWIhOjgIHg7e0lAT9BbfzraChT4+2nbYzAXcTBMA1tsoHcG/EqueSlz0uGOb6zL1L2tlpLSz8vPXHN+tBIsu7kM9I7E5oERJsgyo4BffrsX1FR2zpfD54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488467; c=relaxed/simple; bh=Q5KWlqEFVdruWvrKVBozCOZU5hPkfxydK9faXJBbNr8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=I+6Ly+Lj1k99fL1aTFHyjsTNvT9yvgp0kRoCKgKpQ8TfbIkRdpoMhXUeGQdMKhqAOfNP/H3f2A1bHTba3b8COzS9BWn87CzAnF/80yxKEu335Typw0+zSuO1fTPkhfg1RnbZVTXxYsrPYAGaGb40lBf4dUuw9MNDQVsCffF0OnY= 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=O5uoXPaV; 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="O5uoXPaV" 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 499499oL031691; Wed, 9 Oct 2024 10:41:03 -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= O5uoXPaVYmZU8dCCUYdljnias919kpZTg1IliFzkLrszAmS2XGVIxt6Z2MrSTU+5 wGrcGHnOftry44PxUcU7tbkBqiWdO7oLbDwwmWbzBihX5szJnRUYkPXCX+JqGbOL pX3ZH9Es0NikxLkhzTlTKCKzPvzR1Y+PG78t5lsVekhgzZZxi/PKtIdMJlkbRrwB qN6oda3h0x5saSPO6sTzryrkxaCzljS+Ny+ZbvQXO9W6b3OkGCAeJAuF1O+IfeZ3 aTlOlzCk3bgtc0N4XOwUrYUNvB6eSMYbjvuPnT+eBT3P3ywZcG5S3D+PTrfgF6RR O2e4MVMftVWWoLx3sLw65w== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 4232uy661f-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:41:02 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) 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; Wed, 9 Oct 2024 16:41:00 +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; Wed, 9 Oct 2024 16:41:00 +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 9B6BD82024B; Wed, 9 Oct 2024 15:40:59 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 4/6] Input: cs40l50 - Assign max concurrent playbacks Date: Wed, 9 Oct 2024 15:40:44 +0000 Message-ID: <20241009154046.1011226-5-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: rn4y7N3lYozhU9vQdHeXFnlSfEXVy6FY X-Proofpoint-ORIG-GUID: rn4y7N3lYozhU9vQdHeXFnlSfEXVy6FY X-Proofpoint-Spam-Reason: safe 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/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); From patchwork Wed Oct 9 15:40:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834558 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 221D01E04B5; Wed, 9 Oct 2024 15:41:07 +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=1728488469; cv=none; b=GHPc2kf3fPJdcrRhCBLcg4rLWDGGdriqAg0E+bqlMaTM1rCt7xNBYeZSEoy/vF3SeZV8Y7m20LPXVLOuORrjQf1TcZ0+6ioU3AoRwnJgaq0waJ3bOZokqcgunJkg4Gjo6gZfh0ekwaWmCH3Vb4XRD1yWVCr/5Nt4kwRWbsUWeak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488469; c=relaxed/simple; bh=49NVQ2yqL/opbcve1AD5yU3dx5v/JkhFF6MZmcX5lag=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nB7k/Z8fql1lGE8+JYKGdFfqVdw7aj/NtBXpHs0mcBQhpeXezkv8UuVDWI3FYdRDmnF/6/ORXid9xvW0k80z/QGbHdgcnATuwkWmebKtGCnQ9sJSVKP2MGM/uW2zH+f7BV4YL5dYuGZsNxlwyDF9wFlmIEuQsekZplST6GTpyU8= 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=IqJcH/2A; 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="IqJcH/2A" 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 49949FZq031957; Wed, 9 Oct 2024 10:41:04 -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= IqJcH/2AT2s5XNX+eDlroodcAFaX3WS4cqN50us7b01Xb+HpZjx3Ww9yWgnGQBbL O9GhUrpgLwN3eOSvJZJT2nyaQLyciDNihA+Tx64veq375YSTou0+WdWOV9F46pYZ Qc9hEUVUlJ0OnoSk00QgRQ1ZnQFcN88Raxq6kIf36d0mcCK4PImnI4Paw6qvD5hg RierL5C4Ipcri2ZktfHpZbP3G7yLLXS8PvnK6fJbEy6SVS8yAVnmJ0hip59q6f81 SVXggl7TC5KBz7oph9lmTwygTqnxExmQW4NUOXbbFnOb7L3PN5enulR4siDPXkGD 0ufREbc4tPv5jfEHsnHp2A== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 4232uy661j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:41:04 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) 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; Wed, 9 Oct 2024 16:41:02 +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; Wed, 9 Oct 2024 16:41:02 +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 199D882024D; Wed, 9 Oct 2024 15:41:00 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 5/6] Input: da7280 - Assign max concurrent playbacks Date: Wed, 9 Oct 2024 15:40:45 +0000 Message-ID: <20241009154046.1011226-6-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: e2KHIhlPesXc-r6etFwTudc8RNhva6XK X-Proofpoint-ORIG-GUID: e2KHIhlPesXc-r6etFwTudc8RNhva6XK X-Proofpoint-Spam-Reason: safe 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 = input_dev->ff; ff->upload = da7280_haptics_upload_effect; ff->playback = da7280_haptics_playback; + ff->max_concurrent_playbacks = DA7280_FF_EFFECT_COUNT_MAX; error = input_register_device(input_dev); if (error) { From patchwork Wed Oct 9 15:40:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 834908 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 C5FF51F9A94; Wed, 9 Oct 2024 15:41:08 +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=1728488470; cv=none; b=cnQZS0gDxO79+Y0uRnZY/EYocGmCni9yK1b2UbIFq8P+AxTYnTGUzeUgmtMxhG/Yt1PzEt43h+EUTNGZJrhAl1jFG7lmOtQbuAbQ9NDYie49QCFPVX58jG4/cI4MqRa8mN3MrBxOzaWK7O6eWYCNdsa64Z4mJotbfhngG39Ou98= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728488470; 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=gfbHACokMwNeRzSaQX7dRrwU6YKPgn3oPs8ZNU0G5ZN3Uzx+DZ5CQlhqV9yr5YGCLNyDSIW/3ley/kY6AmirgPlDEEE4XxJNxU1zxq3yy8/h0/hM0AYUJ1SNm/EaPsPqBWrYYtLQH5a0pIt3fJsy9k9IfpjB5vKEg2irLQHg0MU= 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=KvOF+XYB; 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="KvOF+XYB" 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 49949FZr031957; Wed, 9 Oct 2024 10:41:05 -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= KvOF+XYBPWfdTw5ZHXvzRJyt14ChOM4J0eWfrM/sH90FzsR3ANXq/FxSMPSMCsZA 7+nx88CJqqFWAEN/oOGqROYZxOszL+lJ01abegnlFtQ9ggMiwZ/P9UQeRad8q05a h8W3aKs8Hg4cPNSfvctxkZT1W2AEglbgTDyKObPi3p7G0TGY7hB0FpKie3dCEa8+ P0ZVBeb8ddDQSghjQt8nbs7aAcew9W8bobdZfSdda2a58PydBaviNNWCIkdmkBPk C73x6L8TTShq5noIWd8bVJd1PXItv5SseFQ6EwATLbBEXKx43WiGtvMjwwrsQ+5R UNpLCS3YMLFvS9BgAQx70w== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 4232uy661j-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 10:41:05 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) 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; Wed, 9 Oct 2024 16:41:03 +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; Wed, 9 Oct 2024 16:41:03 +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 8C06182255B; Wed, 9 Oct 2024 15:41:02 +0000 (UTC) From: James Ogletree To: , , CC: , , , , James Ogletree Subject: [RFC PATCH 6/6] Input: uinput - Assign max concurrent playbacks Date: Wed, 9 Oct 2024 15:40:46 +0000 Message-ID: <20241009154046.1011226-7-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> References: <20241009154046.1011226-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-GUID: b0SDrwfpwxMGIe2kUFhlAZVoiREbSzD0 X-Proofpoint-ORIG-GUID: b0SDrwfpwxMGIe2kUFhlAZVoiREbSzD0 X-Proofpoint-Spam-Reason: safe 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 *udev) dev->ff->playback = uinput_dev_playback; dev->ff->set_gain = uinput_dev_set_gain; dev->ff->set_autocenter = uinput_dev_set_autocenter; + dev->ff->max_concurrent_playbacks = udev->ff_effects_max; /* * The standard input_ff_flush() implementation does * not quite work for uinput as we can't reasonably