Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp769618pxv; Thu, 15 Jul 2021 15:49:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwftfOnUnxJdnVEVeNSFY5VmdQ1q6cSRoux2GebaxmLphpCtYVMCX3E67LWFQtrxQrMsb5k X-Received: by 2002:a92:b111:: with SMTP id t17mr4418775ilh.208.1626389394703; Thu, 15 Jul 2021 15:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626389394; cv=none; d=google.com; s=arc-20160816; b=RkB/vkuOfq/vabHknAZWASsyC5Uy1kGwu3ajDlWbMk+Y8ip5wDAVCaOngsPCkR8lbp N4n5dgCw4DG3+1DYg7SQTa64M+TX24FlYvZIwlED2erXduoX8W5g2p5htWaiQLa8q4B3 niCWu9MgamcJWH3HUAQcEZdF7AKQQQtaEoYoFcEAV7FTBSdE1isiXa20TBKVHSNaxf0U wYUEcVDPj2ZeAw4GTXqEC6dFm4u0Rmy6mPrU27H4iDwrAzL6JOLb53/aCbJyphn4biB6 NGUmQJviK/MRauOy1MKmJ1xorVkP0TYh41bbigOnjbPjs3Zybe62zUwdir8jta8YphGS cHPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7LMQ0Y5xBIycrJ5TmUkmqCokApvl89aR/tU4bvETQu4=; b=a3UiIDjLaWtgcdUc+NLPdTNSyhY+aczgqCclFYVCIl+nPggL4nhKnQzErlvY9t83m2 orrBp+iK8tFkMp/tmoWYtP72eMFrI1+ZjwAbIZQWsWX7V28Blyw2N/ru68QdWT6257Rh DZlHxYsF81YW9fLrDqg04jDkdR238TFpyvMcHrW5c7REtyzVJi7StlGJgsDEx4gIorGt kpazC7H2L4YtbMcK54HQSzJLviX/Q6jvmTMTYNGA511lddKHbV8Y3+XstZ+fmgTi7HKA /UdQSXXP4xBWFiEs1XEn/8Ip6Y9/9jFbW8KRwHiU2HZQN+p2JAvbuHvnzMoj3lXu79+D 1UPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si7913512ilo.41.2021.07.15.15.49.42; Thu, 15 Jul 2021 15:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbhGOWwB (ORCPT + 99 others); Thu, 15 Jul 2021 18:52:01 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:54670 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbhGOWwB (ORCPT ); Thu, 15 Jul 2021 18:52:01 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0C4C81C0B82; Fri, 16 Jul 2021 00:49:06 +0200 (CEST) Date: Fri, 16 Jul 2021 00:49:05 +0200 From: Pavel Machek To: Dmitry Torokhov Cc: Jiri Kosina , Benjamin Tissoires , Maxim Mikityanskiy , linux-leds@vger.kernel.org, Daniel Kurtz , Oliver Neukum , "open list:HID CORE LAYER" , lkml Subject: Re: [PATCH 1/6] HID: hid-input: Add offhook and ring LEDs for headsets Message-ID: <20210715224905.GA18180@duo.ucw.cz> References: <20210703220202.5637-1-maxtram95@gmail.com> <20210703220202.5637-2-maxtram95@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2021-07-15 13:39:26, Dmitry Torokhov wrote: > On Thu, Jul 15, 2021 at 08:57:44PM +0200, Jiri Kosina wrote: > > On Tue, 6 Jul 2021, Benjamin Tissoires wrote: > >=20 > > > > A lot of USBHID headsets available on the market have LEDs that ind= icate > > > > ringing and off-hook states when used with VoIP applications. This > > > > commit exposes these LEDs via the standard sysfs interface. > > > > diff --git a/drivers/input/input-leds.c b/drivers/input/input-leds.c > > > > index 0b11990ade46..bc6e25b9af25 100644 > > > > --- a/drivers/input/input-leds.c > > > > +++ b/drivers/input/input-leds.c > > > > @@ -33,6 +33,8 @@ static const struct { > > > > [LED_MISC] =3D { "misc" }, > > > > [LED_MAIL] =3D { "mail" }, > > > > [LED_CHARGING] =3D { "charging" }, > > > > + [LED_OFFHOOK] =3D { "offhook" }, > > >=20 > > > I am pretty sure this also needs to be reviewed by the led folks. > > > Adding them in Cc. > >=20 > > Can we please get Ack from the LED maintainers? Thanks. >=20 > I do not think we should be adding more LED bits to the input > subsystem/events; this functionality should be routed purely though LED > subsystem. input-leds is a bridge for legacy input functionality > reflecting it onto the newer LED subsystem. If we do it purely through the LED subsystem, will it get trickier to associate the devices? Anyway, it is a headset. What does headset have to do with input subsystem? Sounds like sound device to me... And we already have a "micmute" LED which sounds quite similar to the "offhook" LED... no? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYPC7YQAKCRAw5/Bqldv6 8gcPAJoDbpsTmTdVpXp1Ml88kfL3fP+EawCeOSmtI7COjr20zwk8v32ccx3+yWw= =9Htt -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--