From patchwork Wed Oct 21 07:26:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent Lu X-Patchwork-Id: 11848507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B63FC561F8 for ; Wed, 21 Oct 2020 07:39:14 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5C7322251 for ; Wed, 21 Oct 2020 07:39:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="ulpCSUc+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5C7322251 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 242F616EC; Wed, 21 Oct 2020 09:38:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 242F616EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1603265949; bh=ByjuYXaPslY2lp5ApVl+sSwmnPdlAXkDzNsSxTOVY50=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ulpCSUc+jkjvM4fjj+vDz/SV8nlUW0dYr97UZXF1Oin/qWUyHG5+FoMUUa0C81++W 9K6Dujw8Y621UUmm1DEat6f2kZbcS2aNIpQR2fZbBiYRf/Glx1hgk5qRC5NFUz+LDV pKV4HDawphM0h6FdqJyIJA/trclhauWxopamx4+4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8E350F80253; Wed, 21 Oct 2020 09:38:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 993FEF80264; Wed, 21 Oct 2020 09:38:15 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id ABD95F8011C for ; Wed, 21 Oct 2020 09:38:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ABD95F8011C IronPort-SDR: qenKH4v6GbM9I1bh0TgXVD7bZz1id5JsLCqq8/THKKPCtWlrpZwM4NoBNyse1PBRSx/I6FEg4I oFovKC0cz0uQ== X-IronPort-AV: E=McAfee;i="6000,8403,9780"; a="252025708" X-IronPort-AV: E=Sophos;i="5.77,400,1596524400"; d="scan'208";a="252025708" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 00:37:58 -0700 IronPort-SDR: 08o/ogkN8JaVAoo7XISqQiD8L4Uyt8Gif7lA1S3DPv610Flkkzv5obdRQg175n2LF13+cjRu8D EFq4dhovEyaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,400,1596524400"; d="scan'208";a="348206927" Received: from brentlu-desk0.itwn.intel.com ([10.5.253.11]) by fmsmga004.fm.intel.com with ESMTP; 21 Oct 2020 00:37:53 -0700 From: Brent Lu To: alsa-devel@alsa-project.org Subject: [PATCH] ASoC: Intel: sof_rt5682: update quirk for cml boards Date: Wed, 21 Oct 2020 15:26:46 +0800 Message-Id: <20201021072646.7980-1-brent.lu@intel.com> X-Mailer: git-send-email 2.17.1 Cc: Guennadi Liakhovetski , Cezary Rojewski , Dharageswari R , Kuninori Morimoto , Kai Vehmanen , linux-kernel@vger.kernel.org, Takashi Iwai , Jie Yang , Pierre-Louis Bossart , Liam Girdwood , Mark Brown , Sathyanarayana Nujella , Fred Oh , Brent Lu , Yong Zhi 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" The default quirk data of sof_rt5682 is for tgl platform. For cml platforms to reuse this driver, the flag SOF_RT5682_MCLK_24MHZ is necessary to setup codec asrc correctly. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index ddbb9fe7cc06..fa2c226a444a 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -768,6 +768,11 @@ static int sof_audio_probe(struct platform_device *pdev) /* default number of HDMI DAI's */ if (!hdmi_num) hdmi_num = 3; + + if (soc_intel_is_cml()) { + /* default quirk for sof_rt5682 is for tgl platform */ + sof_rt5682_quirk |= SOF_RT5682_MCLK_24MHZ; + } } /* need to get main clock from pmc */