From patchwork Tue May 23 02:19:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?VHJldm9yIFd1ICjlkLPmlofoia8p?= X-Patchwork-Id: 9707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1848021vqo; Mon, 22 May 2023 19:34:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5q2xz/Is5eCPUETE9Z6c58sXv+kHOCT1GwW5nZkZbVZIY2plHPqq30RGdWi/UriSm2+v/o X-Received: by 2002:aa7:88c4:0:b0:64c:f4f9:de87 with SMTP id k4-20020aa788c4000000b0064cf4f9de87mr17485644pff.18.1684809250547; Mon, 22 May 2023 19:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684809250; cv=none; d=google.com; s=arc-20160816; b=N/MOAhuteFP4JJgtrVJE2a4ajFoQ+hL2ZVdcWWowm/NcIAB2VIabLreYtHD7HDwOrE Znsec6bNv0wFhnVa6LMTMbP523KilaqyUoNl1zUEHC1OoU11OvSxeqFXeZ9Ahp+Xj0oS JB8FB65ebR+A9vOKNhOfGJOxl/ZU9ZqcTMjAxj55Ey9T9wsRV0bc42Q3QKGtp6reS8I4 tPdjUVUjJ4lMY7nvH8um+fJfAxWwuexsu2PPTHeDgh7tbODK3MiX2hT0X13NXw68cZ2J 4RQUWTF7CvkMoGSVOX54jAhiHIAsuHa+++2ElOP7isS3sBsvL71rLHLJCmOg6ASv8RuM /DuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=4SVZPGbhJ5N66g97GSvBiW6bzWBET5n9wyQ0lreUVes=; b=TFHXzKVxHG4fdfHhu/xqIXVXzYjcLtgzN7ICCA/pqwIDykGVFR4QwS7Lce10+8Q7Qi 40sLlx2SzIzBS0HRuW9y7vygS0OL9ysbJ5MeycmjdvJ93nfLmGNaUd5AzLsLp8CkA8p9 f/iNh+zuTHatxxvbMh3Pb40GFCCPLsdkAr/DKVGLd8p6h/1IzX2g5HPBFSR6WdcSxTUO WNP457Yyk4SVHjuqkoTv60pLgpb8x9jXpIH51wFP4KwV7q/2QYqKy02+CiL1VbzhRSSz NyQnsLV2djSIYvfNPRIwOBIf1QkYQMB7nPhvvIVZb4iPEnA4nr2veBlIJ5TlhRl35GU4 pLwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lQb5KlcK; 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=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020aa79785000000b0064eeb3d3a19si1209245pfp.158.2023.05.22.19.33.58; Mon, 22 May 2023 19:34:10 -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=@mediatek.com header.s=dk header.b=lQb5KlcK; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234655AbjEWCUU (ORCPT + 99 others); Mon, 22 May 2023 22:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234349AbjEWCTr (ORCPT ); Mon, 22 May 2023 22:19:47 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31DDEF4; Mon, 22 May 2023 19:19:42 -0700 (PDT) X-UUID: 42da1610f91011edb20a276fd37b9834-20230523 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=4SVZPGbhJ5N66g97GSvBiW6bzWBET5n9wyQ0lreUVes=; b=lQb5KlcKkNTw1HA2ZswPkVQN1DhwNRAjiYNo8CEdX8M+Uw0sWeCPCVQoPleSp0T47LUEfCj0Q4kP3ENmR6W0dQHG3+MDqtnpV7q1l+INT/E8kvZqPTzhOCE+OaWetVn45Mcc60f6J85WoenuIl6xR3oIFyN+87p6GUWKoTlH/gI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:7b9db993-9cfc-42b6-b40c-5ba5cfa44ecc,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.25,REQID:7b9db993-9cfc-42b6-b40c-5ba5cfa44ecc,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:d5b0ae3,CLOUDID:76ceab6c-2f20-4998-991c-3b78627e4938,B ulkID:230523101937JAP1O262,BulkQuantity:0,Recheck:0,SF:28|17|19|48|38|29,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: 42da1610f91011edb20a276fd37b9834-20230523 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1724671407; Tue, 23 May 2023 10:19:35 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 23 May 2023 10:19:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 23 May 2023 10:19:34 +0800 From: Trevor Wu To: , , , , , , , , CC: , , , , , Subject: [PATCH v2 0/7] ASoC: mt8188: add new board support Date: Tue, 23 May 2023 10:19:25 +0800 Message-ID: <20230523021933.3422-1-trevor.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766650544753545563?= X-GMAIL-MSGID: =?utf-8?q?1766650544753545563?= In the series, we extend the capability of mt8188-mt6359 driver. The following changes are included. 1. Divide ADDA BE dai into two dais for SOF. 2. Register hdmi/dp jack pins. 3. dai_fmt can be configured from device tree. 4. Add some I2S codecs support. In addition, new compatible string "mediatek,mt8188-nau8825" is included for a new board support. Changes since v1: - add "Headphone Jack" for Nau8825 - separate binding patch 2 from patch 6, and rename the subject - clean up debugfs for freed widget Trevor Wu (7): ASoC: mediatek: mt8188: separate ADDA playback dai from capture dai ASoC: dt-bindings: mediatek,mt8188-mt6359: remove ADDA_BE from link-name ASoC: mediatek: mt8188-mt6359: register hdmi/dp jack pins ASoC: mediatek: common: soundcard driver add dai_fmt support ASoC: soc-dapm.c: clean up debugfs for freed widget ASoC: mediatek: mt8188-mt6359: support new board with nau88255 ASoC: dt-bindings: mediatek,mt8188-mt6359: add NAU8825 support .../sound/mediatek,mt8188-mt6359.yaml | 27 +- sound/soc/mediatek/Kconfig | 4 + .../mediatek/common/mtk-soundcard-driver.c | 49 ++- sound/soc/mediatek/mt8188/mt8188-afe-common.h | 3 +- sound/soc/mediatek/mt8188/mt8188-dai-adda.c | 73 ++-- sound/soc/mediatek/mt8188/mt8188-mt6359.c | 389 +++++++++++++++++- sound/soc/soc-dapm.c | 16 + 7 files changed, 507 insertions(+), 54 deletions(-)