From patchwork Tue Jan 15 08:41:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-yi Chiang X-Patchwork-Id: 10764093 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 AF2E713B5 for ; Tue, 15 Jan 2019 08:53:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C9242B95F for ; Tue, 15 Jan 2019 08:53:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E0052B961; Tue, 15 Jan 2019 08:53:36 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C8D62B95F for ; Tue, 15 Jan 2019 08:53:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D609C2667F5; Tue, 15 Jan 2019 09:42:21 +0100 (CET) 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 18D2526742B; Tue, 15 Jan 2019 09:42:18 +0100 (CET) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by alsa0.perex.cz (Postfix) with ESMTP id 80EB72666B3 for ; Tue, 15 Jan 2019 09:42:16 +0100 (CET) Received: by mail-pl1-f193.google.com with SMTP id t13so945767ply.13 for ; Tue, 15 Jan 2019 00:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mhru6wLl9kz+UIAzkZRUNY2BQGrA9zV8yTyVy7573Rk=; b=RPsmqt7bbJK9BTMZ343ENC9MtLG6QzpzbduiTIY++f5Y598NVi2y2qUyXxqDyCtOlC sAlJT95csHRYrV9e3RMDxOmywqXyUkBkFUrLv1MAWmI7QUuB6h4RcCXWE0m22x4Thddd 5fcoqeXPyekQD30EQ6p69iTh6W2h8j6LCCaNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Mhru6wLl9kz+UIAzkZRUNY2BQGrA9zV8yTyVy7573Rk=; b=HGWRqqP8uA71SxA7ssM9vxjewQOV3+qfr+tUaEIHirINCpydUBQ5GXmyjfMDtZ4tn+ nht4AcMkr192BFppvdnlzbUqmybSKNFQ5cfJFSAUQlKRDE25/CYteSzYahhAQ2EytFsp R5ifOqrDutjibRsLZy5AxOvVz0R69+5PZ79Vi7h9xMeoJfdRRwno4R5QV68IE/KV/BMA TmcyDknIR/yGKeGP8lbI82M8Okg+h5Ad9F7xFFKyfI8bDlghyzntgI2A9RtHAoxD0oAI 3JfsPhW7ynrS22kPRELL30Uc20HPStT/B6WtkKCOLnd2heE91DI2Tk4BiPXrU49Ixvbn 0NHw== X-Gm-Message-State: AJcUukfG3xd7ULqopxJCrULsx6uOgWKJT2w1yNGNO1bxUok6JisQgafX 02wPvEJzf+fe2bYlANUq2xjLzw== X-Google-Smtp-Source: ALg8bN4Qc5pwrcW3UoJk7QIVDhTBpg3encsvGah7/VAqG22sJ5wee2OLUwAdzWQKAOTa6Vby0lG3ZA== X-Received: by 2002:a17:902:bc3:: with SMTP id 61mr2931685plr.15.1547541735057; Tue, 15 Jan 2019 00:42:15 -0800 (PST) Received: from cychiang-z840.tpe.corp.google.com ([2401:fa00:1:b:d3e3:8b64:9238:2823]) by smtp.gmail.com with ESMTPSA id w88sm5388037pfk.11.2019.01.15.00.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 00:42:13 -0800 (PST) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Date: Tue, 15 Jan 2019 16:41:59 +0800 Message-Id: <20190115084159.135113-1-cychiang@chromium.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, tzungbi@chromium.org, Mark Brown , Rohit kumar , dgreid@chromium.org, Cheng-Yi Chiang Subject: [alsa-devel] [PATCH] ASoC: sdm845: Set DAI format for dmic codec 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 Set codec DAI format for dmic codec in startup. Signed-off-by: Cheng-Yi Chiang --- sound/soc/qcom/sdm845.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index 6f66a58e23ca..882f52ed8231 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -248,12 +248,14 @@ static int sdm845_snd_startup(struct snd_pcm_substream *substream) break; case SECONDARY_MI2S_TX: + codec_dai_fmt |= SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_I2S; if (++(data->sec_mi2s_clk_count) == 1) { snd_soc_dai_set_sysclk(cpu_dai, Q6AFE_LPASS_CLK_ID_SEC_MI2S_IBIT, MI2S_BCLK_RATE, SNDRV_PCM_STREAM_CAPTURE); } snd_soc_dai_set_fmt(cpu_dai, fmt); + snd_soc_dai_set_fmt(codec_dai, codec_dai_fmt); break; case QUATERNARY_TDM_RX_0: