Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp314185lqp; Tue, 11 Jun 2024 05:38:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd8uAD+dfz7wCC0Q4MQ9Wqp3aEGvlG77NpizqXJ0JRgZVsbXbzkgcMVIY1p4RG4q+ITXXouAVEjGm+v1ZVqGP9ktULJ9YaT7yflO2VVg== X-Google-Smtp-Source: AGHT+IGlO1wYHqGsLjywUuts0brrxNMeapuUGCN8x39s2m0DpbyJRiJ50RVVgu4k3d7b1X3kt1QS X-Received: by 2002:a17:906:d196:b0:a6f:1378:1328 with SMTP id a640c23a62f3a-a6f137814f0mr426050366b.10.1718109532002; Tue, 11 Jun 2024 05:38:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718109531; cv=pass; d=google.com; s=arc-20160816; b=K3wGKOy1G7F+j2x9VnIGmzVGcr2pNF0v+L1hOg1Adxc7KSBZCfsJ5xkh3Fap0ZW+ra VpEPw3N2BEn133oLX9M1Qamy+dv3cSRFvlQ6cYjpXfJko+859Ab7lPmDLWDNRkWgebjH +CtP4nLbFr/yirOLf+ZBppHm3a5Gdiv0BtGxG7Rxn0cQvhZcew5YPv3kawQw3/Nl2t96 HNinSJ7hDdE8sewDJHRQ7sOQioMrdx2+WX390YqixV8m5mDaP2nzcAqmzCaAfz0jc0Ch BUswXcuzpt+rav0XV89bjOS3HK0ERpFauUZCbkqiy8qwqfryYXd64t3Orb83kKWDC5nO l+0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rRCcnj2jMkLvJXHyIOV1qFH+HjkbeuzHzQOHUvj+aHc=; fh=6jOzLnHJKJ11bdL7GKzTu8dqiOySsQekNvOZTO4ctAU=; b=NVKWFwPErPG5y/HimOCAYWoPggiJjMjE7of3GN8z269nV74hPg63RDD6/EY9jOmAp4 4QMWxBTq+3ZVc7aalhsVuiDlE6uL3AM/VtJGhlizUc8EFrTwvjWBcV8i1heUeBMVlJCQ oX37GcVSDCFG/0Ba8LU90GeD3tC/AC5MSTt6ncX0/LTXFC3YBUvc0InyzxavZvZdxJWk OVzXdhXqyCmx0w2WYxUZE+VRxCZy6KD4aXOSj794Xil3R/75Le++RosHpDFUn7P/qQfN wkTLtp4mKSmP2BsE1BXGff+iVIvoJIUCAPVF8z5+al3OPtpBDAkwpM23TsmVsf5lCO7f sCjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CgsuC1JE; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-209869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6ef440216fsi397705666b.942.2024.06.11.05.38.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 05:38:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CgsuC1JE; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-209869-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209869-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 C78511F23C35 for ; Tue, 11 Jun 2024 12:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF0CC17C211; Tue, 11 Jun 2024 12:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="CgsuC1JE" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 573BE4CDE0; Tue, 11 Jun 2024 12:38:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718109494; cv=none; b=KZM5Zl1F3oQPBIizTXLuA5bWoZ7PMaTH5YrN6s6eGRshmY6lUtSjFF9aag67qLMyk/esXqI4XNuKow4GR+0tq86RbFd5aWrQK0wxLLfdNjO46lcjHvCWNP9f0WW1MEVpp+fdmsGY21tWgMhAMGXfpSR0p9eAYMtomOnhuQwPOkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718109494; c=relaxed/simple; bh=kj5qaVbqaQZcuY/DAi1KbmqH4orxFs4setQOSPqpduw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GkuSvKBRM0PxyVyozMJI391NKayOWUQToRFafi5gNnFegjkGwTMPuxIMgUBsSSmQ0iStiEs6JPcbCeiT1j4RkbLMltZCbRfS6nmQqMbP5l4Ch9qaSEEmseLXaO9P/ygUSuCL8UaRgTtc9IrY9D1ZG7PWtsQW8IMnUCZ2tP4K5e8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=CgsuC1JE; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718109491; bh=kj5qaVbqaQZcuY/DAi1KbmqH4orxFs4setQOSPqpduw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CgsuC1JErhyECA3tzoGI0mBBnijkB/u/D7XKU3ntgykQVAZiOzecN2VpOqbnLs/Fz Ao5uBmpzwfBH2KoRca+AYtHxsG3iBuukpbHqChzqZc01QTZV6FvEty7rwQujKUMrRt a8PhUuf7EkaqVl9/En2ck6ePLXd/VphRyG2cYrRThlBnUlsyuNv6KGin+k91A1/OI8 Qemx6TjnsCUTWMpiMMwqANCZSYiR/LXrsj/jRxzZJL13pGekvL+CQK0ZXZZBgI0QZD V355vc7Gcb3N3B8urMSe5AYyVZc9IDSocaWFXLkbjJuHu83HmBFUCOZLSb7ZkK+T3u gIwuvLGRaOZvQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 7418F3780EC6; Tue, 11 Jun 2024 12:38:10 +0000 (UTC) Message-ID: Date: Tue, 11 Jun 2024 14:38:09 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] ASoC: support machine driver with TAS2781 To: Mark Brown , Rui Zhou Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com, trevor.wu@mediatek.com, allen-kh.cheng@mediatek.com, kuninori.morimoto.gx@renesas.com, maso.huang@mediatek.com, linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20240611022227.2508354-1-zhourui@huaqin.corp-partner.google.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 11/06/24 12:52, Mark Brown ha scritto: > On Tue, Jun 11, 2024 at 10:22:27AM +0800, Rui Zhou wrote: >> Support amp TAS2781 for mt8188 platform >> >> Signed-off-by: Rui Zhou >> --- >> sound/soc/mediatek/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/sound/soc/mediatek/Kconfig b/sound/soc/mediatek/Kconfig >> index 5a8476e1ecca..07f67f96c889 100644 >> --- a/sound/soc/mediatek/Kconfig >> +++ b/sound/soc/mediatek/Kconfig >> @@ -233,6 +233,7 @@ config SND_SOC_MT8188_MT6359 >> select SND_SOC_HDMI_CODEC >> select SND_SOC_DMIC >> select SND_SOC_MAX98390 >> + select SND_SOC_TAS2781_I2C >> select SND_SOC_NAU8315 >> select SND_SOC_NAU8825 > > Ideally this would be sorted to avoid spurious merge conficts. Also do > we really have dependencies here or should these just be being enabled > by users - these drivers are all pretty generic now? The only dependency is on the MT6359 PMIC's audio related IPs and nothing else. I'd even remove the other select statements for the other codecs, honestly, as there's no reason why MT8188 wouldn't support a codec or the other, and there is no reason why that SoC needs exactly those codecs, apart from some board (Chromebooks) having one, or the other. Instead of adding a select statement on MT8188_MT6359, adding the TAS2781_I2C driver as a module in defconfig is a better idea..... at least, IMO. > Not that this > change in itself makes a huge difference to the existing state. I agree it doesn't make any huge difference, but I also don't see why users can't simply enable (y/m) that in the kernel configuration :-) Cheers, Angelo