Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2602662pxb; Sat, 30 Jan 2021 07:59:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwh4fY4JtJY/fhP7cmhXZqfbnqtVXvYMVJgChD3bfunPPVhFYK+tXz3OmpTZgel+Fporeu+ X-Received: by 2002:a17:906:4c85:: with SMTP id q5mr9488409eju.375.1612022367522; Sat, 30 Jan 2021 07:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612022367; cv=none; d=google.com; s=arc-20160816; b=Uf6yX3Qc4wa46AmlDZU79Weg/TcWluRf43X/eUUOosRVOv6aanKl+CeNi9RpvawvOp D1cSkWpk71Q33ko8ThXdNIZIBsFZiVeWV47UbLJsE4weAlJWjcXokfP+BZO6Uus7GQ3w NRAGTC3NWl/CTcUkcJwZ5HGxj4S7DLM+UCM9LTSZfBSRLPR9Lcf+PzCID4Xm24eS89Iw QGgcr6TxppQcU5Ewlguj7cmHX/bcVuVanSl5W+e0QrD0MWV2awYoRGZ62T/X6NVcybRM +OdGNNspR2fbaLdISZCNaINsiTLGqJF/8TTHKU+ZB/5x5PDIo9M6Ye70FVz8poI+rgpW I3qQ== 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 :dkim-signature; bh=fx3dkMJOLSIWNaFDZpEzH9Ayv8+vFheSBmg7vPaoZAY=; b=EhN3dfPRaPtEcxlPFR9n8u/SVH00XzYJyWkLWpmKvm0htv5OuvTLmtpu9cpMVfIi06 FsL3msN2aztFYXYhUVdUkL9t4H6ScNY9yhzum44hN/qW9Oc2Oq2F7cjZioipRkOuaMUi 7G30Y6f5uFN6KECAUNRpuRMB0WOcSZ+WHNTTeJ4sUpCKj2/leCI9YgHJSRc7K0IAY+Tc vJCBELApOJwqhIqMoPIyuY2kwqdxPMkC7Vf83rpmDc0wuHdN8sbkOasL80vajSvOBFwC u6Z6iZ59TeHltXeogFoCjwGtZXPxG/9WBmDxMlXrxR0I5YubHRwf4ddqNCFX78TPuCuR VubA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="H/ADGv7d"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si6792787ejg.362.2021.01.30.07.59.02; Sat, 30 Jan 2021 07:59:27 -0800 (PST) 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; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b="H/ADGv7d"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232340AbhA3P5Q (ORCPT + 99 others); Sat, 30 Jan 2021 10:57:16 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:60504 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230085AbhA3Pzh (ORCPT ); Sat, 30 Jan 2021 10:55:37 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10UFNtbL032436; Sat, 30 Jan 2021 09:28:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=fx3dkMJOLSIWNaFDZpEzH9Ayv8+vFheSBmg7vPaoZAY=; b=H/ADGv7dBadeen5KXtwLE3d4vd7T0aK/MkB8Iv+yMQs8jshzwELzFp+1xcXBEh3SMyoI sRoL/nTF3TahcWsdS3LfvnyzEMSBXetLKLhcNdPkSma67xgHIP8RhURhnYk6WXryNpSg fB9cFKUCeOrfV5cfgdlwjojA6B6E8RUVzsmcMpRSspPuqT6kieNZrPa5IRwiwmoSKRrx DYIUjE9uEVEyL8jMlC11INb7V1OxHMBUEKHNCuwOZeLdZoXwtRGRbCI0kbV3RKrHMbjw eJtFQ0nBZD2MKEG23c23qMlSKEhCPP+7rxN3270Bk4qg9dW9RmW/QBuh5wWYbmgnFbME Eg== Received: from ediex02.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 36d4rtg65c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 30 Jan 2021 09:28:52 -0600 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_128_GCM_SHA256) id 15.1.1913.5; Sat, 30 Jan 2021 15:28:50 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Sat, 30 Jan 2021 15:28:50 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id A31D045; Sat, 30 Jan 2021 15:28:50 +0000 (UTC) Date: Sat, 30 Jan 2021 15:28:50 +0000 From: Charles Keepax To: Hans de Goede CC: Lee Jones , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , , , Andy Shevchenko , Subject: Re: [PATCH v4 10/13] ASoC: arizona-jack: Use snd_soc_jack to report jack events Message-ID: <20210130152850.GU106851@ediswmail.ad.cirrus.com> References: <20210123121313.79530-1-hdegoede@redhat.com> <20210123121720.79863-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210123121720.79863-1-hdegoede@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 impostorscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 phishscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101300085 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 01:17:17PM +0100, Hans de Goede wrote: > Use the snd_soc_jack code to report jack events, instead of using extcon > for reporting the cable-type + an input_dev for reporting the button > presses. > > The snd_soc_jack code will report the cable-type through both input_dev > events and through ALSA controls and the button-presses through input_dev > events. > > Note that this means that when the codec drivers are moved over to use > the new arizona-jack.c library code instead of having a separate MFD > extcon cell with the extcon-arizona.c driver, we will no longer report > extcon events to userspace for cable-type changes. This should not be > a problem since "standard" Linux distro userspace does not (and has > never) used the extcon class interface for this. Android does have > support for the extcon class interface, but that was introduced in > the same release as support for input_dev cable-type events, so this > should not be a problem for Android either. > > Note this also reduces ARIZONA_MAX_MICD_RANGE from 8 to 6, this is > ok to do since this info is always provided through pdata (or defaults) > and cannot be overridden from devicetree. All in-kernel users of the > pdata (and the fallback defaults) define 6 or less buttons/ranges. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Hans de Goede > --- Acked-by: Charles Keepax Tested-by: Charles Keepax Thanks, Charles