Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp59808pxh; Thu, 7 Apr 2022 13:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH3LmVmFp6aORFS2CRdjHCOVvhNkF73IsN4Xg3XM2bJRwgn1HIw6VP4RVAZrqp/5X20Sn7 X-Received: by 2002:a17:902:da8c:b0:156:c7a0:10f8 with SMTP id j12-20020a170902da8c00b00156c7a010f8mr15624735plx.71.1649365096385; Thu, 07 Apr 2022 13:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365096; cv=none; d=google.com; s=arc-20160816; b=amQoLyKCid5efkBRSjT/b8iGpQYGh3YwKrjRgSEG/VlHl8gDosE1aQtmxZTEotlf24 1NiCKQI7rbDLvr5l2sxJPYKUsxCztTo9RTS3JHXGUNArUjE5nD+rzcbUgaswR1hkBJ4g sR1ffVBYDuQ37woC9qDa76Kw+pJbyyY0KrWUW0nfbqHcTbqBf+8/2YdFp6PnyCvRq4Lq gHT78nDJU7MEHludQHG07OdIl9DZG0h302Zu7l9/j95ToSGlrapZNSl1sZLyzo3n6m8S /zqRHyni/Q6sfgm+GmxDEAp7NoCPZVZK1emhIj6ZoJq7CBdRlfEzr2YLpBg4w+bp8vhi POag== 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=CT+4wi2ihKgKmP8zrrJbCFmxIO+S/+AUzmsFfhsPJos=; b=Dho0WexNG4Rp0xji+uIietHX2yJqDYyxXk4rE3XP9H8y1GXMt7HdTA8NlXgMeap891 jlTzSy4TLmLnKqPJBAWs5g7DUoVmDS+IEIDZl1nyUfHUBfi1SwlNRx35rRxIV1dINqIs CE+QDRJBlS7bm6X2yo5HFwCi2VhfQJZNh6CLXPLfvO/9v57pQU3C8vvVujhQYIJLVVUY fxUxUbigPv8ksQ/wI08SGbRzUtYAAVw1UhXv7N5JxeWX2gp+uHY4TTIoPMpkmzhNJr0S 0ToqqRxZm4YNBLPhTbNGnt5Rzd4FHWA6asQfvAcrYPKmt+Lwt47OABkZ6KEptAEBVoPp ohig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MeF0uNyy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y23-20020a1709027c9700b00153b2d16582si628513pll.394.2022.04.07.13.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:58:16 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MeF0uNyy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 720B1288A91; Thu, 7 Apr 2022 13:01:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345756AbiDGQjJ (ORCPT + 99 others); Thu, 7 Apr 2022 12:39:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbiDGQjI (ORCPT ); Thu, 7 Apr 2022 12:39:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD9161777D0 for ; Thu, 7 Apr 2022 09:37:08 -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 ams.source.kernel.org (Postfix) with ESMTPS id 7E107B8092D for ; Thu, 7 Apr 2022 16:37:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DAFEC385A4; Thu, 7 Apr 2022 16:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649349426; bh=anQLnsuZxYc4YusrMg10WYGJTNoSFZFyAbngTsYWJWM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MeF0uNyyDZzNOfXb9zUW1ftJBxaHSlt6MObKb6s0BTNxUNtyW0lFoawXT0zMd8biU pyqo1BWrOCMPNYTfZ66BNUZnLqrtLxk7pFLwUgqBD5CX0hKn/Y4mpUjHd0Mi4mKaQ8 YD9TNJta/h9laHydGgegv6HOVBGF2c/eVh+5RwzceEPyjFVqGCbcKON8iKHxpv0zb4 NIGekAl0KkJJ574m7dBxP1xcotWdLh84f1yCIzzXhL64WdIh50aRoAjeqrtgJKREQv M5CGWtlSIYn4PlgnXO/WobFneA1owfz5rpaAb1YEY4qj8vSOeM1lxY5vKevedXQGui EQhk7UaTrKtcQ== Date: Thu, 7 Apr 2022 17:37:01 +0100 From: Mark Brown To: Akihiko Odaki Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Oder Chiou , Liam Girdwood Subject: Re: [PATCH] ASoC: rt5682: Add jack kcontrol Message-ID: References: <20220407141316.5099-1-akihiko.odaki@gmail.com> <96dae189-c0ff-4054-3d00-41c3b44c2cd6@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="K9Hi8t9P2T4/0vtf" Content-Disposition: inline In-Reply-To: X-Cookie: Look ere ye leap. X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 --K9Hi8t9P2T4/0vtf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline j On Fri, Apr 08, 2022 at 01:11:22AM +0900, Akihiko Odaki wrote: > On 2022/04/08 1:00, Mark Brown wrote: > > That bit is very common but there's still machine specific aspects - is > > the required hardware wired up, if it is wired up how exactly are things > > wired (separate microphone jack, headset jack, one of many jacks?). A > > lot of the machine driver part of things is about labeling things so > > that it can be displayed in a way that's easy to connect to the physical > > system. Generally the machine driver would define a jack and then > > connect the CODEC to it. > Whether the required hardware wired is told from the user of the codec via > jack's type specified with snd_soc_card_jack_new(). The other details live > in the codec. So I'm confused about what problem this patch is intended to fix. It really sounds like there's some issue with the driver not using standard interfaces that you're trying to work around but the changelog is not at all clear. The "doesn't use DAPM" bit is a bit of a warning sign, it sounds like the audio signals to and from the CODEC aren't being connected to the jack properly. Look at how other devices with jack detection hardware handle this and follow a similar pattern. --K9Hi8t9P2T4/0vtf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJPEywACgkQJNaLcl1U h9BD0wf/VfBhw9GQTwXU5Qj1Mq/d+fRP1+2jj+kUbV7xuu9nyDuVH7YLFP/Da2G5 dFgQBgY6vSA7++fPrbG4kqzGpvLPcNy6s+kjZHj2anBccZg/4Q9yADqp5ifggHcj o/ltdaGMidJydvYgAF0EZnoW37eKRXNR/caF2nvE4aa7X9t/e3FOFQsfEP9nYi6Y 8zyr5aUabYQe5NYx903wgSoUKQoc0c8VS820KAxyoSw5T7Y3O/CprXZyFk8Wc05y OpPLRzW2d/fqjWe/bhzaC2AYICirJSaO7R6fAMaV12fbZJj4i+F5K3+CU/7GlWc0 H3WCDElgw0O9PivSGGwzUasIlzOWYw== =9nxM -----END PGP SIGNATURE----- --K9Hi8t9P2T4/0vtf--