From patchwork Tue Dec 1 13:21:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzung-Bi Shih X-Patchwork-Id: 336020 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB2E8C64E7B for ; Tue, 1 Dec 2020 13:22:36 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 811D92084C for ; Tue, 1 Dec 2020 13:22:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="FFGMxRgV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="jSEubekW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 811D92084C Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 3CC3F16FD; Tue, 1 Dec 2020 14:21:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3CC3F16FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1606828953; bh=h83gcMeZ6eWLb8mfBkIF63aDLofllJVu2lOGtMCVB3s=; h=Date:Subject:From:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=FFGMxRgVWEQf8MjJZ+h50WCvRF7KzoVx9boBGwdXZWv2VZU+0FjLqL6lUfroKlUH7 cf6OUzfJP3xXWbe7B3grdt/YXZMRX2xxCXbgWJx5/S8kRHyWxnxDhmrepV55v9e8On WjJkjdKHE7oEbGEmFY5neiBbXEJNi047TjHl6CVU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8D01FF8016C; Tue, 1 Dec 2020 14:21:42 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 97700F8016D; Tue, 1 Dec 2020 14:21:41 +0100 (CET) Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E6574F80168 for ; Tue, 1 Dec 2020 14:21:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E6574F80168 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jSEubekW" Received: by mail-yb1-xb4a.google.com with SMTP id e19so2361072ybc.5 for ; Tue, 01 Dec 2020 05:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=acp8e1gkaaB/fBTyrmi5rUj2D525BAkZdj4ZlarzG/Y=; b=jSEubekW63hjhQNb7+QhOSDN8Nh5OKsNOgkA9vj0mUNod/ofPdaIQSFk3smoFlT/Rt REBBkeIOtC7gGS7M5gWGI3GOwYr+F1GMMp8GLvHrTroMxox2mkXkVrUhhKVvES7JwhW8 5rM0GcRhiPAURVo1W+gQrIx+hV20COaiq9SagWxni+OZNfj7OM38R6yF0ym317A3PqZA NiVU1Ha/IGEv/FUQTYW3LQFtX/AzufoJAqFWpys5eEKios4I0KBjadsUZGOP8J2rF2/j JO8GVRDEmQM9/9f3PZFqpvA/DEmvt7jqZ8ErkAsmE3xKdR8ePRpIAXW1BXp2gyMwUbT2 uTFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=acp8e1gkaaB/fBTyrmi5rUj2D525BAkZdj4ZlarzG/Y=; b=K7GhrJigyoagqiVDIsTlwje7d6E3+koCTywO1Aw7TMpaFzBtXYrkSjXRm/PO+7kDNv cUJYls0GDH7iBqqjnhN5bOSrW/8mmYmCL7QrZmQpgY29aa/oZ6MlmehwmiLPBMj2I4cV ro6yDgXfDPNWMG013lXhStdTa9WKRV/JzBLN0ZESzqDb7l5TRpiE23Lp+5MKA1mYCuMI JrZj0oCGZD7jx3fbxD9KZas5IwN0V+TLNEfffxxBrPUPsCikKrvitPanYeQC4RYH7L/i EyL8EKy5kW9iQWXOMAsv766x2THJdPEwYVPYPbJajzN+PGZWUyE+VS9kEVmzEEQrAZmt yzsw== X-Gm-Message-State: AOAM530s0LNAe0JRF5PUojGTXrSOjIAfrRYNIIsXUR8qaboyzGAcP6gW UaJXJ62wcqZ42gUpOoECPbsBqDbQK9oX X-Google-Smtp-Source: ABdhPJzt7Kig1jGX4rSHuADIjVQjtG44viovaYZ+bkLJjc3FUgfEOiTHGDlh+jEJ6l5OYtVrfqLlcBKGIzQe X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:b:725a:fff:fe41:c6a5]) (user=tzungbi job=sendgmr) by 2002:a25:d997:: with SMTP id q145mr2894345ybg.212.1606828896162; Tue, 01 Dec 2020 05:21:36 -0800 (PST) Date: Tue, 1 Dec 2020 21:21:20 +0800 Message-Id: <20201201132126.1676005-1-tzungbi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH 0/6] ASoC: mediatek: mt8192: support new machine rt1015p_rt5682 From: Tzung-Bi Shih To: broonie@kernel.org Cc: tzungbi@google.com, alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The series supports new machines with rt1015p and rt5682. Reuses most of the code in mt8192-mt6359-rt1015-rt5682.c. The first 3 patches refactor the existing mt8192-mt6359-rt1015-rt5682.c. For easier to support newly added components later. The 4th patch fixes a typo in DT bindings document. The 5th patch proposes a new compatible string "mt8192_mt6359_rt1015p_rt5682" for machines with rt1015p and rt5682. The 6th patch reuses the existing machine driver to support machines with rt1015p and rt5682. Tzung-Bi Shih (6): ASoC: mediatek: mt8192: rename common symbols ASoC: mediatek: mt8192: extract rt1015_rt5682 specific DAI link ASoC: mediatek: mt8192: move rt1015_rt5682 specific data ASoC: dt-bindings: mt8192-mt6359: fix typo in the example ASoC: dt-bindings: mt8192-mt6359: add new compatible for using rt1015p ASoC: mediatek: mt8192: support rt1015p_rt5682 .../sound/mt8192-mt6359-rt1015-rt5682.yaml | 6 +- sound/soc/mediatek/Kconfig | 1 + .../mt8192/mt8192-mt6359-rt1015-rt5682.c | 171 +++++++++++++----- 3 files changed, 129 insertions(+), 49 deletions(-)