Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp150659lqr; Wed, 5 Jun 2024 01:38:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWb3kmfEqd6NeueHvw/Ccp+Ifl8QTTac8gpYOVP6fo7AaKW+lsLd1c7JDEp4vcGalW03GOWsJNCpHaDMdK1mP5R/CZUSUUg/Iph1dsY8A== X-Google-Smtp-Source: AGHT+IHdr4krvJuKhed2hs5o6frpFH4HgLbIkiZf2ce6Ss35aBuSabTxA5KHsOJsexc44haEuR5x X-Received: by 2002:a17:90a:f2d2:b0:2c2:5b8a:efb7 with SMTP id 98e67ed59e1d1-2c284a8c5fdmr813512a91.3.1717576697274; Wed, 05 Jun 2024 01:38:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717576697; cv=pass; d=google.com; s=arc-20160816; b=cYPAOGAM9m5dNzIzCO8j+fDvnkrcTI7AKaXgyUV9WAUHpRSFNq9xGxlVMMj/BCvHwj 77sFgkwl3JL0I1le/3TOsgSSrAfzfE9oDOxUP4lWt6B2QlwYToMB1pm/xluFZyc1xrTn BaT1QMqy+9r+BSzFrHtUJheMxUsfADwao1YadtsSPyh/3sfsb+Lf6+nWxX1gPXvLyDRR AIUlH9911N9T5OZ5aX/54CxEpD3LfEPSaJiZcDiSWV5n+eL2HSTfucENDg3ReJGzEv+g KfwOg2B4mWMTGxyKuVG9+nCSbVKEaVBrPm21cBk/lzB9CJzL+gEuzX48QvA5ZDEhUspA 3Gwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=LBJGp2n7Qi8iczry8F3rJYPAUsV9sny6tREW8YboOY4=; fh=qDXyHNEFJUeIYWlh2G1/XZKsdTia8CauXvlKGg0dbfk=; b=J/uEN7N6Tsod05sxnuTiNPsUHhI9jZmDehPAl3bijraLsE+taTzbNORP+IJLYrBixG osCMn5MvK7GTW8Z+7YJguPkFmLBm/K0FZYhpP+MjhTwEAjmIXrwGy0cJ3CYo/q4tnFdz sVCx7EKTaTlT4YBPRkXBESOioq6H0KWv9b+GH/OagFQCaoY1rtJcAZg5HIvFw2J5SJ+L uXRAiPwDtCAbFwY4YZah5GAy/yPiZ+7VRfTOYa3avq33GCdeX686BYZrLwY6PNUv/1kC uZULnCjcBPjsqDQVlRZ0N3LGicc/Ava4Iwn7P4SH+MgBI8Jns7EU7UOjz7cuWsMG5vi7 jVPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C3vRmnba; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-201954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c280662151si820384a91.40.2024.06.05.01.38.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C3vRmnba; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-201954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 814E8B231F2 for ; Wed, 5 Jun 2024 08:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D7CE195FE8; Wed, 5 Jun 2024 08:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="C3vRmnba" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0CF4195FC3 for ; Wed, 5 Jun 2024 08:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575335; cv=none; b=Vun0QmRdL+rNZg0IziTonP9Ix3Gj+THyjcd/pCGx5HCHahQRy/2lxp6mCqF/Bqbg3t4vxcOUfidVKjwmpyDc4Wcnw/hT623U7w52lemku6ZcRVco+xXGBy9FcGS75SsNqnvw1FcDd7FjfYoimEwXCjCza9Bj04CK3+7sLthwPHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575335; c=relaxed/simple; bh=wwczkAnxiPnhiTU2luJ8i5BIFpa3mGxUm4/6rAw6d74=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AUcCkcO4YCOJS4hw/mdt2JSIBjCFO9T+5F+EEbYrX35gvIY2Dkec4L3MsnGHgiMJuXwVXzSf5iHW/AisgdNX8W7gyhlgp/7X0fSTdScrUp+Q0MqTh3jl2ijQFs+GmEwpP0FyvO6ZZgcelGlUsm2SRQ67w+yBpwxDUotPcoifPvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=C3vRmnba; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52b894021cbso6241145e87.0 for ; Wed, 05 Jun 2024 01:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717575332; x=1718180132; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LBJGp2n7Qi8iczry8F3rJYPAUsV9sny6tREW8YboOY4=; b=C3vRmnba8MFnJL4smuV5/tHhszOwASBsR2hcIClDtW60ccR1m2UlMAS9MfJJDwUG1D uIgnCFluUb6F05o3q9hOskfiXdbrOgPufnQI+XsSp8UZGwup2DADEDUo4XtBPdMRMj9m UiMCRemvV0ZExTGcL9tkEu0Cf5ldAEVFtyUOc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717575332; x=1718180132; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LBJGp2n7Qi8iczry8F3rJYPAUsV9sny6tREW8YboOY4=; b=EEaLGQELC+a+xIN1yuLX3lZ3gurY5wdh+lceyRfDUdMttrPLKzthOaFN8RJ3RtY1y7 hxUqFb70eVTUPjmfuqyHAaTU029z8GDyndruP+sdI4JvWWfjSQ7JyRpQtNG6EZASn1lY apGQx/ZGkSiV9BWnoTSZpZNnb4C8/zhYwJMmzg/m7rPHg2jr8g5jhESNx09Yf+DW+dE7 JNYVYrYdi0Tq+QpgBoEtN492VOSsHU/bLTU2Lsbdq2rzK+L2kEj3Vwr3IE5TzUGMNKZQ ppcbDmEibX/XFoiC5Vye8PGHARwYQKToTr2KUMhvX78Rbu1Sgz+jGXevuUlCzYXvQeUb gYgg== X-Forwarded-Encrypted: i=1; AJvYcCWJkS312WIsmfxtRuDFsJqwKB6ktLeLtndL2Gw4iVVKxlGzc3tDAx/BQgP3Xl4uJPYXbyIj1cci9U8va39izQqwndqnYNbfLbeJrrU4 X-Gm-Message-State: AOJu0Yx0pT0VkYVlBoQG6y1us/spJ4RrdicllWoW44t5mncl1GDtXCZQ oLc/z8jP5AX2MIYc0Ewn/X7VIeD9Op/seCfVt3tsEUXO6P2jUAXjSv2HKvgNl/tZbOQgo7ZdrPy upGK8jwfPCRiGNJosctHGLYrhl4DtATBo7vrE X-Received: by 2002:ac2:4c92:0:b0:52b:84bd:344f with SMTP id 2adb3069b0e04-52bab4fa611mr941691e87.53.1717575331623; Wed, 05 Jun 2024 01:15:31 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240531-da7219-v1-1-ac3343f3ae6a@chromium.org> In-Reply-To: <20240531-da7219-v1-1-ac3343f3ae6a@chromium.org> From: Chen-Yu Tsai Date: Wed, 5 Jun 2024 16:15:20 +0800 Message-ID: Subject: Re: [PATCH RFT] ASoC: mediatek: mt8183-da7219-max98357: Fix kcontrol name collision To: Hsin-Te Yuan Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Alper Nebi Yasak , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 4:38=E2=80=AFPM Hsin-Te Yuan wrote: > > Since "Headphone Switch" kcontrol name has already been used by da7219, > rename the control name from "Headphone" to "Headphones" to prevent the > colision. Also, this change makes kcontrol name align with the one in ^ collision > mt8186-mt6366-da7219-max98357.c. > > Fixes: 9c7388baa2053 ("ASoC: mediatek: mt8183-da7219-max98357: Map missin= g jack kcontrols") > Change-Id: I9ae69a4673cd04786b247cc514fdd20f878ef009 > Signed-off-by: Hsin-Te Yuan Otherwise, Reviewed-by: Chen-Yu Tsai > --- > This patch fix the kcontrol name collision in mt8183-da7219-max98357.c. > Originally, the "Headphone" kcontrol is added to meet PulseAudio's and > PipeWire's needs, but that patch was untested. Since I don't have > either setup, I wonder if someone can test this patch. > --- > sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/s= oc/mediatek/mt8183/mt8183-da7219-max98357.c > index acaf81fd6c9b..f848e14b091a 100644 > --- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c > +++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c > @@ -31,7 +31,7 @@ struct mt8183_da7219_max98357_priv { > > static struct snd_soc_jack_pin mt8183_da7219_max98357_jack_pins[] =3D { > { > - .pin =3D "Headphone", > + .pin =3D "Headphones", > .mask =3D SND_JACK_HEADPHONE, > }, > { > @@ -626,7 +626,7 @@ static struct snd_soc_codec_conf mt6358_codec_conf[] = =3D { > }; > > static const struct snd_kcontrol_new mt8183_da7219_max98357_snd_controls= [] =3D { > - SOC_DAPM_PIN_SWITCH("Headphone"), > + SOC_DAPM_PIN_SWITCH("Headphones"), > SOC_DAPM_PIN_SWITCH("Headset Mic"), > SOC_DAPM_PIN_SWITCH("Speakers"), > SOC_DAPM_PIN_SWITCH("Line Out"), > @@ -634,7 +634,7 @@ static const struct snd_kcontrol_new mt8183_da7219_ma= x98357_snd_controls[] =3D { > > static const > struct snd_soc_dapm_widget mt8183_da7219_max98357_dapm_widgets[] =3D { > - SND_SOC_DAPM_HP("Headphone", NULL), > + SND_SOC_DAPM_HP("Headphones", NULL), > SND_SOC_DAPM_MIC("Headset Mic", NULL), > SND_SOC_DAPM_SPK("Speakers", NULL), > SND_SOC_DAPM_SPK("Line Out", NULL), > @@ -680,7 +680,7 @@ static struct snd_soc_codec_conf mt8183_da7219_rt1015= _codec_conf[] =3D { > }; > > static const struct snd_kcontrol_new mt8183_da7219_rt1015_snd_controls[]= =3D { > - SOC_DAPM_PIN_SWITCH("Headphone"), > + SOC_DAPM_PIN_SWITCH("Headphones"), > SOC_DAPM_PIN_SWITCH("Headset Mic"), > SOC_DAPM_PIN_SWITCH("Left Spk"), > SOC_DAPM_PIN_SWITCH("Right Spk"), > @@ -689,7 +689,7 @@ static const struct snd_kcontrol_new mt8183_da7219_rt= 1015_snd_controls[] =3D { > > static const > struct snd_soc_dapm_widget mt8183_da7219_rt1015_dapm_widgets[] =3D { > - SND_SOC_DAPM_HP("Headphone", NULL), > + SND_SOC_DAPM_HP("Headphones", NULL), > SND_SOC_DAPM_MIC("Headset Mic", NULL), > SND_SOC_DAPM_SPK("Left Spk", NULL), > SND_SOC_DAPM_SPK("Right Spk", NULL), > > --- > base-commit: 4a4be1ad3a6efea16c56615f31117590fd881358 > change-id: 20240531-da7219-2281085838a5 > > Best regards, > -- > Hsin-Te Yuan > >