Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp304627lqh; Fri, 31 May 2024 01:38:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUrjX1Stjv6j/RafkCDRDfjqqSPDqUPtTcyC92Yb8nOCktEqD4oM/ivP1Anli8l2XUlNadelywIJ9ComV5V3Bv2CCbBpzOQIh8X9GbpfQ== X-Google-Smtp-Source: AGHT+IGjwRFpQJDYVMPN1Z2QeQVot6mdh55JMLAeH7PsamUrvPwAg1IDVHl98ICUH0KoFWn2sWDk X-Received: by 2002:a17:906:b24c:b0:a5a:8ca4:6781 with SMTP id a640c23a62f3a-a6821f51918mr81974966b.51.1717144719885; Fri, 31 May 2024 01:38:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717144719; cv=pass; d=google.com; s=arc-20160816; b=ZEk6gDu2PnO34QMKedakZnqpc7WgyZm9D+ldeU34HsCXIEYRLmYqW87PVIBfICckqw DiJqP9AzTT9XcSBGh0n5VIcCYh3NDw65tbnnQGPmx81V+IOO0lD2PmH6rYFjBB9bMIOK ykeRqoQYZkh0nlwkPMewCb08WF/4qfejNP8SMen/eIJUeIiA7o5eNMlZvn1FD0COpoCy Dp3mZCzrSCeyBom761Zyr9WBk2LcyhLt38HxvjDrlYRYvxacQksQnv/0ZHE/0ADBfRKJ n1sAssjNHGimDjHCdZXjhikzT0dqo221vSlkVpXXhu3vC/KuqMkakuJVW4sEc9uflnUZ etaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=BMwLestZgmk4mqZillFQkfuSiKmx8+iHR4IW4Az53nU=; fh=a8m9Gt84pWJBwX/tZvExFVvGIZreVfCEIIWwFCPpdHM=; b=EBun/PoTkXaSkeVjTj7qfLJ3aI46/B6cKXIZjlN+8mKNt4aE5EyySHzPNzwoYyesTq OZtZQHR/zft+g2G3952OPKCU2M9OMrgVLpYS7NZAba1xxHJxx8XAsSC8Y8a3JIXr2JFw 5xg0VXk2LrYhpCyDc5o8s1/Aljd3e9Bp7IUmHR0ihD/nIaN1Yld6MqGF/sSvS+mHnTsf Rc6KvuP+1GxvPuCpBAsEYOtDE5/lG2p+LyeaR7WYjLcue3nS5yUu1asP5/g4MNAh/cVI 6GIArwyncO+tecaCbW5EqXDLDlbqGIFnsVeSkYGGQxnqtefVW9JMffwxQyCIizxP3NiU iOPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XBMuAXpC; 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-196487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67ea8866edsi71713166b.573.2024.05.31.01.38.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:38:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XBMuAXpC; 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-196487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196487-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D4C51F2642B for ; Fri, 31 May 2024 08:38:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5081415098E; Fri, 31 May 2024 08:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XBMuAXpC" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 E099E14F9EE for ; Fri, 31 May 2024 08:37:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144681; cv=none; b=W/8b9zcYmKWcXkXgKK8MREEZIZbL5klh705i+DazPUTAo5Y4XX7qtF08i6/+WdAB/1VhDqMv5vcjaWcDP1vLsdZ4lPXkLYJR80yel51rSuaZsw4UFxfEe36IpBgrTXgNCmx1SMeE+H1GOdyTWd2ZHVvagMmlOey6LJVlc9HmKbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144681; c=relaxed/simple; bh=0ybdQoPao3Fs+wvAdUgSdweM9qNoDU9X/xhgb/ynYt8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=dPT4hzSieisSDmJwuWx0gNbkFy5yOiJy9XhiX7V4NGsYkdRK+DYntypgZEK7k+8qA12cJLp2bBY6YYTTtsGGv3FPgd+7XgrjrWrdHWEoW171PCgkGX/QrW4nt3Ye3lFK+sSrFhvmu3X42CDWo1f4oXT/JGxMGaxEjTPSCo9TAyA= 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=XBMuAXpC; arc=none smtp.client-ip=209.85.214.174 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-pl1-f174.google.com with SMTP id d9443c01a7336-1f6134df05fso16371345ad.1 for ; Fri, 31 May 2024 01:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717144679; x=1717749479; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=BMwLestZgmk4mqZillFQkfuSiKmx8+iHR4IW4Az53nU=; b=XBMuAXpC07qZWmmpti+DDduNj8rJ0DpJGdTkvDW/2vmKrr/tDqfcWwTrjipZE8bqzS 2OfGuyyQTN68DW0DGnwFDaO4sdAAThXPZ/XLn0ad8pnMLFRg4b2db5rF0mcIsRfeFkRZ Ro8E4yWgi64lCoL18KZXqnPNys0Rx9NcGo8cY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717144679; x=1717749479; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BMwLestZgmk4mqZillFQkfuSiKmx8+iHR4IW4Az53nU=; b=rtNhO8Gcd7v71K3AhQlOr+gnVLeamWfl/3UN1wZr00jG0Hu5yLD01oVjyLyb3Rq8z1 thAzQsj7JyMmFSFkr0v4ArL9l2As7g7v3PXak9z3LIdxoSySvXTdUnR9SyLnf4j4nAOo 07kuexSUw+kSGSoluEiI7WtfTsnDNJv4QsPvDyJrH0RnBIj30Or/XZMvBAhAnvflvAEh mzdSwI4VtO5o9+D8fEHH8Eg9IAO4Bk3ia5sSDtH1kfwqfDTLAMLt7Ue8BA7pebJhoAUk eJD9c3xWFoo3rJsjguk2ye98ZmaIl6pb10RW23HjlP6DjUhS4SpUhkoRPkINOg1HQp4L kYMQ== X-Forwarded-Encrypted: i=1; AJvYcCW6Eu03RqtOABszVfLP9ixawqLImIMbGeqftGzVBKBXlkkANDkZN+eOuo6qXR8RcrAr0VL69gdxGA541Iiv7BFH/skO/0y9Z0xlkO3N X-Gm-Message-State: AOJu0YwojYfnxAFMMOK3eiDvi9o6KhW8ZPQUFinElzu0FadoCmxAH5v4 tVrBReWETrOrCA+hw2UnNkXgele3WjaFi+4rwZL3yiWpX3yEwMORNjZQO/a68Q== X-Received: by 2002:a17:902:c403:b0:1f4:ac56:3d15 with SMTP id d9443c01a7336-1f636fedfbcmr13329195ad.15.1717144679140; Fri, 31 May 2024 01:37:59 -0700 (PDT) Received: from yuanhsinte.c.googlers.com (198.180.199.104.bc.googleusercontent.com. [104.199.180.198]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f63240379fsm11057545ad.252.2024.05.31.01.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:37:58 -0700 (PDT) From: Hsin-Te Yuan Date: Fri, 31 May 2024 08:37:54 +0000 Subject: [PATCH RFT] ASoC: mediatek: mt8183-da7219-max98357: Fix kcontrol name collision Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240531-da7219-v1-1-ac3343f3ae6a@chromium.org> X-B4-Tracking: v=1; b=H4sIAGGMWWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDU2ND3ZREcyNDS10jIwtDAwtTC2OLRFMloOKCotS0zAqwQdFKQW4hSrG 1tQABn+CFXQAAAA== To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Matthias Brugger , AngeloGioacchino Del Regno , Alper Nebi Yasak Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Hsin-Te Yuan X-Mailer: b4 0.12.4 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 mt8186-mt6366-da7219-max98357.c. Fixes: 9c7388baa2053 ("ASoC: mediatek: mt8183-da7219-max98357: Map missing jack kcontrols") Change-Id: I9ae69a4673cd04786b247cc514fdd20f878ef009 Signed-off-by: Hsin-Te Yuan --- 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/soc/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[] = { { - .pin = "Headphone", + .pin = "Headphones", .mask = SND_JACK_HEADPHONE, }, { @@ -626,7 +626,7 @@ static struct snd_soc_codec_conf mt6358_codec_conf[] = { }; static const struct snd_kcontrol_new mt8183_da7219_max98357_snd_controls[] = { - 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_max98357_snd_controls[] = { static const struct snd_soc_dapm_widget mt8183_da7219_max98357_dapm_widgets[] = { - 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[] = { }; static const struct snd_kcontrol_new mt8183_da7219_rt1015_snd_controls[] = { - 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_rt1015_snd_controls[] = { static const struct snd_soc_dapm_widget mt8183_da7219_rt1015_dapm_widgets[] = { - 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