Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1716320rwd; Fri, 9 Jun 2023 00:45:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yRvzvkJsF6V2KUB4yhzWFDRo0Mlc2kBTnaN+C2Qa6DXASa0jx1g4SMKDC1hbA5yDaEBt5 X-Received: by 2002:a05:6a20:1442:b0:116:99fe:e674 with SMTP id a2-20020a056a20144200b0011699fee674mr759142pzi.9.1686296713400; Fri, 09 Jun 2023 00:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686296713; cv=none; d=google.com; s=arc-20160816; b=ebboyDlcnPNU2Bx5rCZ6c2eFwJfZ2ribMfHvYQMLQa9iVo2f8DI4CxQP0ap7sNvJzz Fn/p6b19b5THSNr2d6Vene37hGm/sICq5vX7Un2/pt8oPzwLaZVK89DJPowc9OknP75Z HPc6LE+EBhGRlcb1nesxfpN9nevRkT1RzkT7wa7OJVjVJlaOlbeDhVhNpFHb3cnq/vnn 5RGKPu2QSgNE4mxCpl6yHoODc13OpWBvRuYNuri/Vex5gL4yCndjQq0Y2XVuU3n/qXRZ 7AiyIUBUD4Dy5+Dv/sUrXJMp94oCAW6XmmdhiZP18rQ2igVxKx4vFKp50yXdSh3oRhMc GOUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CQy0Z7oEQX8M2+0Sh/DOlLnGFvCAPYjN5ZS4frmv64E=; b=qMN298yABfq2f9wM/uNQkwlALhGxp3jVlmelm6oX4HKHpeE9Hj5cQliEJfX29bN47G x6zFT+zMyU+iQD770L0fPPMYW4FIqQhNDd2bzxc9JBNICF9SEWChxCUx8s3+4oqvr6YO rQwXv24s8YigiJWiJ7JcQORxybNT1aiXbPaeR29sRKb4MgQ4SFyhcj7wwWtqeOmTwXr0 PjgdPwUfwQjAoSwKVvYFi2YbpcP5UUy5w3HQ2IMB75n8tEIzC5ScRJiualUttvl0ZxZH zwui+GLyjM6if2vkzXB0setm3JVVMITsGkpv1MNihTWYUrMKcH/Ziil6oS+Z3HS3YxMF LA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PCWvFIrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a654389000000b0053ef0ac79c8si6932pgp.263.2023.06.09.00.44.59; Fri, 09 Jun 2023 00:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PCWvFIrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238171AbjFIHiR (ORCPT + 99 others); Fri, 9 Jun 2023 03:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239078AbjFIHhn (ORCPT ); Fri, 9 Jun 2023 03:37:43 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB4F30D0 for ; Fri, 9 Jun 2023 00:37:38 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id A03186606F22; Fri, 9 Jun 2023 08:37:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686296257; bh=nv3+VZ+nnLOqcVjviYsmHpsvTnWxCSfjsc5IBhYXT1Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=PCWvFIrzIN+XpN/Vq0x86j0/3TfonqRrg6pxLZyyXg8fwOtMCP2OVRtvGi+r6h6Vy 6DMmDVMGSvr8MDzaDlC6yxw4BamffBmaxzQ7KpwzYl841EK1LrPndyyj46LFlrbQrB WySANsG7/gIZJhvKPBFvNHY4+2p795s2EGQCa2S+tC8fg8duHTPrzA6bsnUCoXqZxB +uebjZDx8pOGPRJgdQBT7M4QD7tnxoEktitlUZNln85ZmTA0Ar0eJTeZ9oto9RYXpc vlkfzhIg1GX3NRJmv5yCBIKps1JE2l5asXqihKFvIYIf4VurtKGtVU7xIAJLf6vVRZ CrmFb0jxDODiw== Message-ID: <1bb65d99-d1dc-7a73-12c0-e7f4cba3525a@collabora.com> Date: Fri, 9 Jun 2023 09:37:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH] Revert "ASoC: mediatek: mt8192-mt6359: Remove " Jack" from Headphone pin name" Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Mark Brown Cc: kernel@collabora.com, Chen-Yu Tsai , Jaroslav Kysela , Liam Girdwood , Matthias Brugger , Takashi Iwai , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20230608221050.217968-1-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230608221050.217968-1-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Il 09/06/23 00:10, NĂ­colas F. R. A. Prado ha scritto: > This reverts commit cbbc0ec6dea09c815f1d1ef0abaf3f2ec89ff11f. That > commit removed the " Jack" suffix with the reasoning that it is > automatically added to the name of the kcontrol created, which is true, > but this name is also used to look for the DAPM widget that will be > toggled when the jack status is updated. Since the widget is still > called "Headphone Jack" the jack can't link to the widget and the > following error is shown: > > mt8192_mt6359 sound: ASoC: DAPM unknown pin Headphone > > It is not possible to also rename the headphone DAPM widget because its > name is used by a switch kcontrol, "Headphone Jack Switch", both to link > to the headphone widget and to assemble its name. This switch's name is > referenced in the upstream UCM file, so renaming it would break > userspace. Since the original commit didn't bring any benefit, besides > sparing a few CPU cycles, simply revert it. > > Signed-off-by: NĂ­colas F. R. A. Prado > That commit is made to bring consistency in naming across MediaTek (with other) sound card drivers.. I'm not sure whether the right solution would be to revert this one, or to make a small change in the UCM, counting that we'd be able to add more shared names around, finally reducing the config length by sharing actual configurations across various SoCs. Any opinion? Thanks, Angelo > --- > > sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c > index 4e0d5bf12b47..5e163e23a207 100644 > --- a/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c > +++ b/sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c > @@ -46,7 +46,7 @@ struct mt8192_mt6359_priv { > /* Headset jack detection DAPM pins */ > static struct snd_soc_jack_pin mt8192_jack_pins[] = { > { > - .pin = "Headphone", > + .pin = "Headphone Jack", > .mask = SND_JACK_HEADPHONE, > }, > {