Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4568950imu; Tue, 15 Jan 2019 02:12:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dxtw4zBhkQUTjHfyJSzhFLZzUCB4SudoiHOsFJKBE48vG2w6EZxW/dwsZOpIzBqzGP6Vf X-Received: by 2002:a63:e001:: with SMTP id e1mr3154629pgh.39.1547547166888; Tue, 15 Jan 2019 02:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547547166; cv=none; d=google.com; s=arc-20160816; b=0ODRV7D9lfrAo1sZsHxShrDDnvB3cg8gFKHCpJ7maUcuuV7gy90noh7lbH9Vozocgm I/2ZgZSaxs7fOu7OLmZxk49Jr90XBJaKdRQHSkcFcKgYCUPfs/9tCtNJtEmq7sTKDcg0 2EdTOzNa5uuYt6jEibOKT1BO7nCk6Ut3yaz9NKJKZAwy2EWYu/8fmpwtZFnGkO35In0h LusUMriTKD61ov0NuE5VM8zcU8BZDmRB2Nf/8X4FI0lumS1pKH/J17/2ysQnYjht1CDY Fi3LXUuGhHN1h9FuidteSsJDH55v9u0tQ0x+RX1f/lLuM8prFoz64WgRfyDNm8ClH+c5 MgxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Mhru6wLl9kz+UIAzkZRUNY2BQGrA9zV8yTyVy7573Rk=; b=lNqgtp4CgIdQy7LSwWOqaXv4aQXd/DHYxjTQjm53/pKEoiII4POK2ZeJsxR8F0fB67 uGpb79mMpHLKuzTxKhvUahLBs1BydDh0IUWFzYeY3OVri9BKTZK4kXKEI73t0aWp6Csp wX8E7mSGbLHD91sn8n66Grm4h/PFTrK6yVfVJ0kOwG+WMm4jZeDq1KEDNQq7gsXH1mW7 NSBXHn36NkyZDfBUp7CVe8lwPE3T5dVZhphGH4lFEFrw+UzmRxzKmsllXzAm+hhBEW5s VC//TZ9QIZY6Rvi0L4loP4DOc9IbWpmXUFoV5R2+fmiuaBNqHb7nincSVhEW4zbspJxR 8U3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RPsmqt7b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si2740698plr.211.2019.01.15.02.12.30; Tue, 15 Jan 2019 02:12:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RPsmqt7b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728405AbfAOImQ (ORCPT + 99 others); Tue, 15 Jan 2019 03:42:16 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:41500 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbfAOImQ (ORCPT ); Tue, 15 Jan 2019 03:42:16 -0500 Received: by mail-pl1-f194.google.com with SMTP id u6so955442plm.8 for ; Tue, 15 Jan 2019 00:42:15 -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=CfK2QtEhnhfU4q1ha5Dsf8+wuOTuaQgKCAhHRwEXhblKrEeBFeTMc22RoWSOFyeaQV mBzwQILHJ9NBEQG1IeS5IW0zr0aIaaRpPUfe0U4FUN7uAUnBqCun9P9ROgWcnrueLYZ5 34eDPC5nlNOUUPjwGCwrTubqJnBanSbncEV93/b4SNCRtSR/y9cFAXXHfPxk2v7khKSu N80F+vRn9mdR8EiJD8nKEt9IeusTePoYiEZpSxMg8NILGUw/kYkqcOuBw/zMOXou7LhT /9baEFBRpflyBz6Nmx35TyknoU0e3UIVfcjwFo/73wT0BBP1faW0J62zX3g5ekCwofVC B+lw== X-Gm-Message-State: AJcUukcTAmo7k9wXUsiMkipcQqrANZw4HJuRhx9G+n8HwZ+fK5JxiOjI SA7+OQUj1cDkhGOb5HYuy53KyytbtYs= 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 Cc: Mark Brown , alsa-devel@alsa-project.org, dgreid@chromium.org, tzungbi@chromium.org, Rohit kumar , Cheng-Yi Chiang Subject: [PATCH] ASoC: sdm845: Set DAI format for dmic codec 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: -- 2.20.1.97.g81188d93c3-goog