Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9782582pxu; Tue, 29 Dec 2020 05:10:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJymlWCOcjd0RdrI/Wj9PrR67kKNON7A3qUmd/A8uh0N09tXTMGR8APuNf8Bwmn6NW2TOpkO X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr46201189ejd.226.1609247410101; Tue, 29 Dec 2020 05:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609247410; cv=none; d=google.com; s=arc-20160816; b=S4tfwrRVYN0hLDtozRha5+LkIgEXDpp9nVERdBbg4dm6kekk6QWtT+GYq9fhQGpkv0 GmoP1UBSfSDcABWfa9qFR1ChpJiLXXyUUKoIHejmN50WcfQiUN+U+L8X9OT6N+MpdcpR o6LxPCo8zKt5Fdu/IiuL6eafsklPlMkNV82daZHHyRqJiKiAEVEf0ThLReo/K5S36lzm soDA7GsId9S4AXjQCOecO1zwQ/OnecVydnuWMUTniHxHcMthdWcetsXFzAjfqdrtaQuD fIgmIym4FWxFA/bE+CVNtkogYKw/QiY71TKkmDevv1vx9/zX/NQNzLWL+d7bjWDECF46 M3mQ== 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=uU90DJMC7gOVeuziT4MtY3N83Bz0OgswiG8k+8q6tXM=; b=yGzgg6LQ0mlDgK/STWSHK7vYuFyZRoKdqzcV6qbFEpI7R152vyTUWjOcp++zVJs0oh a7GQroiO8sNGH6J83L8a0T9r6PzBvWpH/TnYod1vy2ftTZxivND7RAjGygMrnHj5X/vz OZE615iatP79tFpZBAsp8S2eoUCqB76mUPZz5Ow6p10MLGbDUptu0TsfXE+ElHbjgnGn bPBv+3gKZEeTHvP6kav48f0oU7Sxt25a7ablupWoILSv22SHc0ORGFy1n8wnXqdyn+66 w6IKjPd3piqhMi+NwIZwyQPD5Xoy2JFaNMwBF/4FWbG0a4dgzXuvdky/7pkVkXV2I0p9 g4Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Ik8e7Jr+; 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 lc8si5205266ejb.145.2020.12.29.05.09.46; Tue, 29 Dec 2020 05:10:10 -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=Ik8e7Jr+; 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 S1726316AbgL2NHx (ORCPT + 99 others); Tue, 29 Dec 2020 08:07:53 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:54386 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725964AbgL2NHw (ORCPT ); Tue, 29 Dec 2020 08:07:52 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0BTCviBw002861; Tue, 29 Dec 2020 07:07:00 -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=uU90DJMC7gOVeuziT4MtY3N83Bz0OgswiG8k+8q6tXM=; b=Ik8e7Jr+W2X4P2xZq97YXVi9lYDg5kNMlHYu08QQDfpsxhYOmx9xaCxSb9y0gqirD3j4 BG9XiHTp3O5bQ+0HlSJ08M+Jm4M1SZz9xnaJfFlTPBsDxvzdCfl699YtCodxOxrZwWr3 0rAQT7LMhOKdrg1NJ2jWMtgW91F8AxIU3+x1tklVyN+gpGVcm1GEBEFl1KfIAC+mQMkb Hf9XqTTljT/epI3KvMlBDAmRfkXYwmJCUI5tweuEAAM7f0uACRVzn2EGIPhc8hIH2eZp DjXdsvb5gvfZ9Ykt302+aukXE9EOShj/PMqDzi2TCtWk3WHp1UGY+PrOMnu55oFBofN2 Gw== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 35p3f7aa01-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 29 Dec 2020 07:07:00 -0600 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_128_GCM_SHA256) id 15.1.1913.5; Tue, 29 Dec 2020 13:06:57 +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; Tue, 29 Dec 2020 13:06:57 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id D391F2AB; Tue, 29 Dec 2020 13:06:57 +0000 (UTC) Date: Tue, 29 Dec 2020 13:06:57 +0000 From: Charles Keepax To: Mark Brown CC: Hans de Goede , Lee Jones , MyungJoo Ham , Chanwoo Choi , Cezary Rojewski , Pierre-Louis Bossart , Liam Girdwood , Jie Yang , , , Subject: Re: [PATCH 01/14] mfd: arizona: Add jack pointer to struct arizona Message-ID: <20201229130657.GN9673@ediswmail.ad.cirrus.com> References: <20201227211232.117801-1-hdegoede@redhat.com> <20201227211232.117801-2-hdegoede@redhat.com> <20201228122138.GA5352@sirena.org.uk> <44f84485-8efc-39f9-d0a7-cb8db2ea3faa@redhat.com> <20201228162807.GE5352@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20201228162807.GE5352@sirena.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 mlxscore=0 spamscore=0 priorityscore=1501 adultscore=0 phishscore=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=791 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012290080 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 28, 2020 at 04:28:07PM +0000, Mark Brown wrote: > On Mon, Dec 28, 2020 at 02:16:04PM +0100, Hans de Goede wrote: > > > And more in general AFAIK extcon is sort of deprecated and it is > > not advised to use it for new code. I would esp. not expect it to > > be used for new jack-detection code since we already have standard > > uAPI support for that through sound/core/jack.c . > > Has Android been fixed to use the ALSA/input layer interfaces? That's > why that code is there, long term the goal was to have ALSA generate > extcon events too so userspace could fall over to using that. The basic > thing at the time was that nobody liked any of the existing interfaces > (the input layer thing is a total bodge stemming from it having been > easy to hack in a key for GPIO detection and using ALSA controls means > having to link against alsa-lib which is an awful faff for system level > UI stuff) and there were three separate userspace interfaces used by > different software stacks which needed to be joined together, extcon was > felt to be a bit more designed and is a superset so that was the > direction we were heading in. Android has been updated to have the option to catch input events for jack detection now. I have always been slightly confused between extcon and the ALSA jack reporting and have been unsure as to what is the longer term plan here. I vaguely thought there was a gentle plan to move to extcon, it is interesting to see Hans basically saying the opposite that extcon is intended to be paritially deprecated. I assume you just mean with respect to audio jacks, not other connector types? I would agree with Mark though that if extcon exists for external connectors it seems odd that audio jacks would have their own special way rather than just using the connector stuff. Thanks, Charles