Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3372130ybt; Tue, 23 Jun 2020 00:09:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMXCuTSeZXKtrVtsQKaD2L+QJDPPJJdgxoysM26tXhONBhcWA0zkYDaltlOcisBA7h91Kh X-Received: by 2002:aa7:c590:: with SMTP id g16mr20929660edq.5.1592896162208; Tue, 23 Jun 2020 00:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592896162; cv=none; d=google.com; s=arc-20160816; b=SvQH+wyJtc5a7de1boI4pD1j2NjtGTmWZppSkvvTQeHKctfanS5BSLDY9oWq+lpmH0 CsmRHT/nqplF9xSu8E7L+ZFUF/A9pvDZlGF9Kepvc0Dz6daZkYlKVrcu2ETHn8/xj8UC g3NA2vVaMavDHxozpjQdtBlIMYr+k/qsu3KaepT2cQrpVpCx7X1fvqbLibls8oFXuxp8 JFV+R02dob+oRFiMHyUjFKzu6ovSoH5qUHoe+N0GLaLk/2ZISEjU/8mZOByerckSLb83 u4fArtW3Q4/ZS2hi05tWJHLeEsJT/yVG6ji60vCHBhzzrMBkciE3lQUJiti+jebCb515 Xrtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=IOCxtGcK+5PPTQNp8/Q64agBk3Il+s5QRVsKlU8QZTk=; b=W/yAgjKastJiRic8gNTxvwdP2+ElgCzz9rlF1Up3F/9xHMutjfxQy5Dgk01p5CRqFo awOx0ogS9rmupOemOsbfgCAoqN+mWhHuIVDNLrvCol1082U3tGW3HWdOw5qid1LjMMgN kCxIGHO5e2R81JaGcbgVY/7sL+goc/+iEgGPVrzdbhc19xWCiArXR2xLyNblHsngPutH SOcEPvk+BDNIG/3og9Pfmv8JX3uwOl3X+u3e3sXSW+fuVw6m9k8fV66cazoyRyTI9CoF XHnNIILbkKM3FchgEG6cMEjUn2D8x3D0Bf9sOAj8tw3sVzkqc+QuCFKnmt4ikgNRY/S7 SyPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si10411319ejg.263.2020.06.23.00.08.58; Tue, 23 Jun 2020 00:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731173AbgFWHET (ORCPT + 99 others); Tue, 23 Jun 2020 03:04:19 -0400 Received: from inva021.nxp.com ([92.121.34.21]:38036 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbgFWHES (ORCPT ); Tue, 23 Jun 2020 03:04:18 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EC9CB200BF3; Tue, 23 Jun 2020 09:04:16 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6CC3F200079; Tue, 23 Jun 2020 09:04:12 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7C58C4029C; Tue, 23 Jun 2020 15:04:06 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Date: Tue, 23 Jun 2020 14:52:46 +0800 Message-Id: <1592895167-30483-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WM8524 only supports playback mode, and only works at slave mode. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl-asoc-card.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index d0543a53764e..57ea1b072326 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -611,6 +611,15 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) priv->dai_link[2].dpcm_capture = 0; priv->card.dapm_routes = audio_map_tx; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); + } else if (of_device_is_compatible(np, "fsl,imx-audio-wm8524")) { + codec_dai_name = "wm8524-hifi"; + priv->card.set_bias_level = NULL; + priv->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS; + priv->dai_link[1].dpcm_capture = 0; + priv->dai_link[2].dpcm_capture = 0; + priv->cpu_priv.slot_width = 32; + priv->card.dapm_routes = audio_map_tx; + priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx); } else { dev_err(&pdev->dev, "unknown Device Tree compatible\n"); ret = -EINVAL; @@ -760,6 +769,7 @@ static const struct of_device_id fsl_asoc_card_dt_ids[] = { { .compatible = "fsl,imx-audio-wm8962", }, { .compatible = "fsl,imx-audio-wm8960", }, { .compatible = "fsl,imx-audio-mqs", }, + { .compatible = "fsl,imx-audio-wm8524", }, {} }; MODULE_DEVICE_TABLE(of, fsl_asoc_card_dt_ids); -- 2.21.0