Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1122889rwl; Fri, 7 Apr 2023 10:13:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YRgZ691Vo6Yl6Sgeb+TxVKq2tNOszgwXgUuu0XZaWCOYcd8xoMMH9KyTkBOZ1+HvncyZvE X-Received: by 2002:a17:906:9ad2:b0:930:b130:b7b with SMTP id ah18-20020a1709069ad200b00930b1300b7bmr223787ejc.6.1680887624295; Fri, 07 Apr 2023 10:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680887624; cv=none; d=google.com; s=arc-20160816; b=hO+/Uv+qBQ/kh3FjHgjFP0qqmP+YiLTVyJAbkoH/0ddBJJl8u63sGUwToue6MbbWPY pAx2WfOmP0gx6FNVFXSwdo7IhXm0Wl9jmQTaArnaoJrUkZlUCukIzG4+PthmHEGnz5Vc MJlTzuY0lIHMPBSuQPzypDXGKj5UqwGNyD9h+ATZ5ou5XHQcaUOvDAdGp3AcBxogD+17 aBrLYIneJ2TUu90cG++x0Ht7HWTO/2viOXSoML468SmqieURY8BnfQX8/lAlT6P8uG3k uvIupg6NIopPSTN5rH/KiGV4EPgVCh3sUgXoJqW6kNkv699cvVE4Ffyjx8ONZ9Z2EC46 TQpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4ads+JC+pnaiuxpj+lDhOlDCJhqTh+qw0pq53LvZh1k=; b=qKN95c+uavzm2nQoVTboHM1IxDN++2e4H0i2Arir3xQbD3+fRQ7UlbRvc1pA0XqSgN wd1AKzr+Od6OQkrkscjDrVydR0ije/iAr/RF/TcsHAi+DvVtvzG/p5Fb6R7XZFHnCib2 YoQ/TaY8kqSXJE0lMT/KUckWuRgU2pzE71dMDFPZ1zI0KrHFqphlw2lklTaT485TBKfB OH6WbKttCyLm5s085xsCaD9zphYMjOKbg5Hk8tH+2nhV6mFWX70rBk2xek4vtRMrqu0w sfFhZBi+Yz93KJLMdXpUKUvqS4m2y1EWqhyCzXqkrCnxCSD9ucorq/2kuuNfk0xg2B06 /mwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kS6Tq8/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c22-20020a1709060fd600b00944a52dd3b9si1623142ejk.452.2023.04.07.10.13.19; Fri, 07 Apr 2023 10:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="kS6Tq8/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229868AbjDGRIR (ORCPT + 99 others); Fri, 7 Apr 2023 13:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjDGRIQ (ORCPT ); Fri, 7 Apr 2023 13:08:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E5DA5CB; Fri, 7 Apr 2023 10:08:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7D20C61128; Fri, 7 Apr 2023 17:08:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2739C433D2; Fri, 7 Apr 2023 17:08:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680887293; bh=F9eXAOVjjUTkx4GJvdCe60V7AF+Tu5+yzB4QhkxKFzw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kS6Tq8/AdhYkJvytfHyj4T22LnB8x5qWAr3izYZ8j0HPSLGukGTc4IRs9yCSVwrou MfEBswBPApPcffskt2iQwKY/uACFaIjWZUg7sKmcKKOwiX+9/zoF0Wt7GR+09c4ob0 VotnV0BFo9CsDi2+kgIXTiv4yYxQ41ZmI6v5UlBim+jwCwKeoiK7AAIS4aGPmj4FCa x3lODavUnCHkfyQSV3/jfQUI8wALlCIbnSizDjy/LA8hIs1K1r+ptaqEOSs/se7eOl 6Qoe0GilPN/DfVBFnkAJkaff4kcVtouznnXtBG0c93tWBxNH2fSLA95jbvduQXg5Aa mxRXW/l3sD0jg== Date: Fri, 7 Apr 2023 10:11:03 -0700 From: Bjorn Andersson To: Gergo Koteles , Dmitry Torokhov Cc: Jonathan Corbet , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly Subject: Re: [PATCH v4 2/3] Input: add ABS_SND_PROFILE Message-ID: <20230407171103.5jf46g4hw3fed7dn@ripper> References: <1a4752739568afbdbaaff48436d2bb595d2bda0d.1677022414.git.soyer@irl.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1a4752739568afbdbaaff48436d2bb595d2bda0d.1677022414.git.soyer@irl.hu> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 22, 2023 at 01:10:33AM +0100, Gergo Koteles wrote: > ABS_SND_PROFILE used to describe the state of a multi-value sound profile > switch. This will be used for the alert-slider on OnePlus phones or other > phones. > > Profile values added as SND_PROFLE_(SILENT|VIBRATE|RING) identifiers > to input-event-codes.h so they can be used from DTS. > > Signed-off-by: Gergo Koteles > --- > Documentation/input/event-codes.rst | 6 ++++++ > drivers/hid/hid-debug.c | 1 + > include/uapi/linux/input-event-codes.h | 9 +++++++++ > 3 files changed, 16 insertions(+) > > diff --git a/Documentation/input/event-codes.rst b/Documentation/input/event-codes.rst > index b4557462edd7..d43336e64d6a 100644 > --- a/Documentation/input/event-codes.rst > +++ b/Documentation/input/event-codes.rst > @@ -241,6 +241,12 @@ A few EV_ABS codes have special meanings: > emitted only when the selected profile changes, indicating the newly > selected profile value. > > +* ABS_SND_PROFILE: > + > + - Used to describe the state of a multi-value sound profile switch. > + An event is emitted only when the selected profile changes, > + indicating the newly selected profile value. > + > * ABS_MT_: > > - Used to describe multitouch input events. Please see > diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c > index e213bdde543a..76fb2ecbbc51 100644 > --- a/drivers/hid/hid-debug.c > +++ b/drivers/hid/hid-debug.c > @@ -1018,6 +1018,7 @@ static const char *absolutes[ABS_CNT] = { > [ABS_DISTANCE] = "Distance", [ABS_TILT_X] = "XTilt", > [ABS_TILT_Y] = "YTilt", [ABS_TOOL_WIDTH] = "ToolWidth", > [ABS_VOLUME] = "Volume", [ABS_PROFILE] = "Profile", > + [ABS_SND_PROFILE] = "SoundProfile", > [ABS_MISC] = "Misc", > [ABS_MT_TOUCH_MAJOR] = "MTMajor", > [ABS_MT_TOUCH_MINOR] = "MTMinor", > diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h > index 022a520e31fc..e8d5ee027b40 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -866,6 +866,7 @@ > > #define ABS_VOLUME 0x20 > #define ABS_PROFILE 0x21 > +#define ABS_SND_PROFILE 0x22 > > #define ABS_MISC 0x28 > > @@ -974,4 +975,12 @@ > #define SND_MAX 0x07 > #define SND_CNT (SND_MAX+1) > > +/* > + * ABS_SND_PROFILE values > + */ > + > +#define SND_PROFILE_SILENT 0x00 > +#define SND_PROFILE_VIBRATE 0x01 > +#define SND_PROFILE_RING 0x02 The patch looks good to me, bu I'd need these header file additions in order to merge the dts patch. Could I get an ack and take it through the Qualocmm tree, or could you pick it up for 6.4, and then I can merge the dts change after that? Regards, Bjorn > + > #endif > -- > 2.39.2 >