Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2595790pxb; Sat, 30 Jan 2021 07:44:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4rzd9qWI2AM8yayna76Se3nHDJuqKBhfppLuNV4ZLF2cGTTCApuANRphvo3XkP+4tIonH X-Received: by 2002:a17:907:3e27:: with SMTP id hp39mr9375728ejc.187.1612021472329; Sat, 30 Jan 2021 07:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612021472; cv=none; d=google.com; s=arc-20160816; b=ubuR4dDmB6df7yUU0t5OFrISE1ARbh7oM402iY2XNh/AhvQpKyy1LZzdL0xLA4v+PJ 87kqjvGqUEDyOaU2KSaFrZTZa+MOVM3mzUfuucc53+3YpFIdfYqaGIwratfWCP8PwhcJ 8ljJL79kkXtlW9hfvJw7hKzlfE2AUyAykcL+av54f/YFFYQBD7TgdOAz2iavXvP7poT6 CaPyI+GV2nQkkALaUflbyewVzRVqLt1dZO6vbDDQq/Sv4R3X+sDUtWrMr3Rq8LLzvwA2 Uvb4PncJEehZAkxXdBneqQXvUgFDcBuFvOveyptkYjb2ASYwRJEXRdTHa4n8inPaxbBN FwIw== 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=/lnEmValmQ7Y9KsRET+FL5rf0WEEAzclRUoqWcNcwAs=; b=j6j0qG58ryrZ1JqmxKfg12qugjeF3jP53FaIg9GaJSJip9MfOfMo40lKlsNZ8l1Ntg NViCSdLykrevrPrTqw7DNR+RcB6OV96p3wc3IYh6/4oj7pvSe4tsWx7GxFB6cTVOtXIP HLbqjQujmo4R67pA3BDEFfHYEcD/JBNM0iiT+8UnNm8XB7NtBx0H57eBFHFuKcR/VXuI FNH+ZWCqHYGUM/hLBx/oK0KPyPHuBnWVcMkKM4s8HcA3b7jtZXgapeNVj/sqL/O2neyc NV61Eo7ftmjjk1l1HuZGD+XE0TxOvzAYTdiYcwNQeiVdfSzhOboWIga8AR0JTg0r0326 c4QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=ML+vAnMg; 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 lc16si6458607ejb.514.2021.01.30.07.44.07; Sat, 30 Jan 2021 07:44:32 -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=ML+vAnMg; 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 S232236AbhA3Pmi (ORCPT + 99 others); Sat, 30 Jan 2021 10:42:38 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:25996 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbhA3Pld (ORCPT ); Sat, 30 Jan 2021 10:41:33 -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 10UFcP5g019246; Sat, 30 Jan 2021 09:40:37 -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=/lnEmValmQ7Y9KsRET+FL5rf0WEEAzclRUoqWcNcwAs=; b=ML+vAnMghRRPyPTuzLQn8Agh7DkJmjsaUfqbdNVt0u1LmQPS3Qss7cslGxEfUpwJAbuI AIbxrW8vOc3cTDSu8/RHtpDRTWXio9/eW27JVMEarVzF1d8ec09kAB6f3SAtNTejkwOh zX/EvpE0M70pqLAardP9ofehrINY/oWtztbupLGYUbtOyrNNXrO0JtvAYlnPriN2kk5W Vym5Occd993B/dYpZH3y3rHJw2L/ZS9LIHUB4QHRomtY2huBJ4oLAwLKLFbdEUjKNlGY J9+x5f2o3gFFf19m9topJifSC/2tamH3JfUM9zgRmN1GRcDIpKxrjQuHinNq7JFJGYNq FQ== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 36d4rtg6c4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 30 Jan 2021 09:40:37 -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; Sat, 30 Jan 2021 15:40:35 +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:40:35 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 95EEC11CC; Sat, 30 Jan 2021 15:40:35 +0000 (UTC) Date: Sat, 30 Jan 2021 15:40:35 +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 13/13] ASoC: Intel: bytcr_wm5102: Add jack detect support Message-ID: <20210130154035.GX106851@ediswmail.ad.cirrus.com> References: <20210123121313.79530-1-hdegoede@redhat.com> <20210123121720.79863-1-hdegoede@redhat.com> <20210123121720.79863-4-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210123121720.79863-4-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-2101300086 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 01:17:20PM +0100, Hans de Goede wrote: > Add jack detect support by creating a jack and calling > snd_soc_component_set_jack to register the created jack > with the codec. > > Reviewed-by: Andy Shevchenko > Signed-off-by: Hans de Goede > --- > +static struct snd_soc_jack_pin byt_wm5102_pins[] = { > + { > + .pin = "Headphone", > + .mask = SND_JACK_HEADPHONE, > + }, > + { > + .pin = "Headset Mic", > + .mask = SND_JACK_MICROPHONE, > + }, > +}; > + This patch looks fine to me, but I did have one small question. What is the thinking behind punting this to the machine driver? I guess you can not register it if there is no jack present on the board, or if you have multiple jacks name them meaningfully. Although I sort of feel like those applied to the old extcon approach that just internally registered all the interfaces. But to be clear not asking for any changes just more about trying to refine my understanding of things. Thanks, Charles