From patchwork Mon Jul 31 05:47:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oder Chiou X-Patchwork-Id: 9870907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5188C60375 for ; Mon, 31 Jul 2017 05:48:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 413FB28544 for ; Mon, 31 Jul 2017 05:48:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35B982855C; Mon, 31 Jul 2017 05:48:04 +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=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 166C928562 for ; Mon, 31 Jul 2017 05:48:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9B771266F16; Mon, 31 Jul 2017 07:47:58 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4F6E6266F1D; Mon, 31 Jul 2017 07:47:57 +0200 (CEST) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by alsa0.perex.cz (Postfix) with ESMTP id 69087266F15 for ; Mon, 31 Jul 2017 07:47:52 +0200 (CEST) Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.60 with qID v6V5lnPL020408, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtitcas12.realtek.com.tw [172.21.6.16]) by rtits2.realtek.com.tw (8.15.2/2.56/5.77) with ESMTP id v6V5lnPL020408; Mon, 31 Jul 2017 13:47:49 +0800 Received: from RTITCASV01.realtek.com.tw (172.21.6.18) by RTITCAS12.realtek.com.tw (172.21.6.16) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 31 Jul 2017 13:47:49 +0800 Received: from localhost.localdomain (172.21.85.85) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.294.0; Mon, 31 Jul 2017 13:47:48 +0800 From: Oder Chiou To: , Date: Mon, 31 Jul 2017 13:47:43 +0800 Message-ID: <1501480063-32225-2-git-send-email-oder_chiou@realtek.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501480063-32225-1-git-send-email-oder_chiou@realtek.com> References: <1501480063-32225-1-git-send-email-oder_chiou@realtek.com> MIME-Version: 1.0 X-Originating-IP: [172.21.85.85] Cc: Oder Chiou , jack.yu@realtek.com, alsa-devel@alsa-project.org, hychao@google.com, shumingf@realtek.com, bardliao@realtek.com, chinyue@google.com, flove@realtek.com Subject: [alsa-devel] [PATCH 2/2] ASoC: rt5514: Set the pin GPIO6(IRQ) to output low as default X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The patch set the pin GPIO6(IRQ) to output low as default to prevent the IRQ pin to trigger the IRQ function continuously in the float status. Signed-off-by: Oder Chiou --- sound/soc/codecs/rt5514.c | 6 ++++-- sound/soc/codecs/rt5514.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c index 21cbb56..7a1c2aa 100644 --- a/sound/soc/codecs/rt5514.c +++ b/sound/soc/codecs/rt5514.c @@ -58,7 +58,8 @@ static const struct reg_sequence rt5514_i2c_patch[] = { }; static const struct reg_sequence rt5514_patch[] = { - {RT5514_DIG_IO_CTRL, 0x00000040}, + {RT5514_DIG_IO_CTRL, 0x00000240}, + {RT5514_GPIO_CTRL1, 0x04000000}, {RT5514_CLK_CTRL1, 0x38020041}, {RT5514_SRC_CTRL, 0x44000eee}, {RT5514_ANA_CTRL_LDO10, 0x00028604}, @@ -74,7 +75,8 @@ static const struct reg_default rt5514_reg[] = { {RT5514_I2S_CTRL2, 0x20000000}, {RT5514_VAD_CTRL6, 0xc00007d2}, {RT5514_EXT_VAD_CTRL, 0x80000080}, - {RT5514_DIG_IO_CTRL, 0x00000040}, + {RT5514_DIG_IO_CTRL, 0x00000240}, + {RT5514_GPIO_CTRL1, 0x04000000}, {RT5514_PAD_CTRL1, 0x00804000}, {RT5514_DMIC_DATA_CTRL, 0x00000005}, {RT5514_DIG_SOURCE_CTRL, 0x00000002}, diff --git a/sound/soc/codecs/rt5514.h b/sound/soc/codecs/rt5514.h index 2dc40e6..3da40d1 100644 --- a/sound/soc/codecs/rt5514.h +++ b/sound/soc/codecs/rt5514.h @@ -25,6 +25,7 @@ #define RT5514_VAD_CTRL6 0x2030 #define RT5514_EXT_VAD_CTRL 0x206c #define RT5514_DIG_IO_CTRL 0x2070 +#define RT5514_GPIO_CTRL1 0x2074 #define RT5514_PAD_CTRL1 0x2080 #define RT5514_DMIC_DATA_CTRL 0x20a0 #define RT5514_DIG_SOURCE_CTRL 0x20a4