From patchwork Thu Mar 7 02:35:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzung-Bi Shih X-Patchwork-Id: 10842189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF72017E4 for ; Thu, 7 Mar 2019 02:38:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6BBF2EFAB for ; Thu, 7 Mar 2019 02:38:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B82022F0CC; Thu, 7 Mar 2019 02:38:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CD482EFAB for ; Thu, 7 Mar 2019 02:38:23 +0000 (UTC) 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 DFFF6921; Thu, 7 Mar 2019 03:37:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DFFF6921 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1551926302; bh=RVZworHqE9VttbeytcflUQF/iK62PwXywiHZwc+JZ8E=; h=Date:From:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=mTlakPYVowaGj5m+BM482AVGZTcVoEXsNwC+aAEMH6K9v3oOkx+EMBGJ9ULwRhEKA WMgR36/K+7BNQtX2xHbRCB+LTw1IOIhmPo/f+BsU7x07b5w1RfSdTS2i5X9d1oT/X8 IOy7VkEbs0jUU9XLY4+mCJQ1k3giYKd5jfLg/GlA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 95C74F896EC; Thu, 7 Mar 2019 03:36:19 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69947F896FC; Thu, 7 Mar 2019 03:36:17 +0100 (CET) Received: from mail-vs1-xe4a.google.com (mail-vs1-xe4a.google.com [IPv6:2607:f8b0:4864:20::e4a]) (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 BE16AF806F7 for ; Thu, 7 Mar 2019 03:36:14 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BE16AF806F7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="c8ix2Q7Q" Received: by mail-vs1-xe4a.google.com with SMTP id s71so1612052vss.14 for ; Wed, 06 Mar 2019 18:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=3J6j5PPNyXLf07/PtqHsFlZ3dIXFBLPXExy5sKnxAEM=; b=c8ix2Q7QWgEoGGsjr43dOBhvpX5L17ip7Z7WJpQJkLRWJdDxtBUdDV6cnmQWvCj8Rp gFnl7/prROHqU7vOefkYabPHL6K1LXr3CI1QlALIKxNmEIy0r7SAUrT+xv2t2HR+rBOR GSZTDLmqRMBq7uGYg0czktkwTmzsvlAZ5q5dDQ9rTcS7VM/2AUZrqU0kgnVPRDu8oK0A TIt0KjzEhSzCwfiU5zyHNKR3OOeiHaNRxQvh+C7BjbVYNFKN9GeJmIqouwmWAFk6jgZH aVqtdkDjCs1lYoQ+6hUVzN5E+uUULAs+16acAwzo1RazDfk5GVx8aR0/P3fujRq9G1Bp +BiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=3J6j5PPNyXLf07/PtqHsFlZ3dIXFBLPXExy5sKnxAEM=; b=ENN0WmBBvmiUcohGJ9stSVRN/rA/5iXlzaV1d3IJaSnIoxb4epnW6DLoR3nFQ34RSw tSh+PaG9r0Mut09pnO4cYNV2jEAp2bOd3aUhTdde1wMb9bGxB+4VUv0LczyYnZHnDn4K SgFrm34as0lo0PDMTsv6VglKVL4EsZNyJoM3dczpfKkyhAoMMZtx5S5nCbURa7/Xc4Ru ipNV7f1OVTtNMftWquvYjF3a0PU6fuhJhvKAgVG8clsIP1kBLb0ALy8zoFtwUxh8wpIO NcOd1XeIQcw8vhsOwjAGaaceOivfjedVg/gWK9ZTtkbF5uWLnruOULGNTAZmD6EZ5Kye ry1g== X-Gm-Message-State: APjAAAXs3T6IF1CdvDUVOTXe92533Am6OHBAqzbvKd5EcxQw5SM/XcXf OSQiQ5Am9Yf5d93jfKH6h4e8fUfqZzHm X-Google-Smtp-Source: APXvYqy1reQMFWxfXQWQ5FGC4jWN7UbYdP2zd2Ry/wzLaVOE8p4tWisSInsFcoS0a3hoTZ/IXiAtZDXLMKVg X-Received: by 2002:ab0:4103:: with SMTP id j3mr7198178uad.0.1551926172359; Wed, 06 Mar 2019 18:36:12 -0800 (PST) Date: Thu, 7 Mar 2019 10:35:58 +0800 Message-Id: <20190307023558.5148-1-tzungbi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.352.gf09ad66450-goog From: Tzung-Bi Shih To: broonie@kernel.org Cc: tzungbi@google.com, alsa-devel@alsa-project.org, dgreid@google.com, shunli.wang@mediatek.com, cychiang@google.com Subject: [alsa-devel] [PATCH] ASoC: mediatek: mt8183: skip for i2s5 in mck_disable 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" X-Virus-Scanned: ClamAV using ClamSMTP Skip for i2s5 in mck_disable which is also bypassed in mck_enable. Signed-off-by: Tzung-Bi Shih --- sound/soc/mediatek/mt8183/mt8183-afe-clk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c index f523ad103acc..48e81c5d52fc 100644 --- a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c +++ b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c @@ -605,6 +605,10 @@ void mt8183_mck_disable(struct mtk_base_afe *afe, int mck_id) int m_sel_id = mck_div[mck_id].m_sel_id; int div_clk_id = mck_div[mck_id].div_clk_id; + /* i2s5 mck not support */ + if (mck_id == MT8183_I2S5_MCK) + return; + clk_disable_unprepare(afe_priv->clk[div_clk_id]); if (m_sel_id >= 0) clk_disable_unprepare(afe_priv->clk[m_sel_id]);