From patchwork Thu Apr 26 11:15:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 10365635 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 4AFDF60547 for ; Thu, 26 Apr 2018 11:27:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3840529082 for ; Thu, 26 Apr 2018 11:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D18929091; Thu, 26 Apr 2018 11:27:23 +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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID 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 12DC029082 for ; Thu, 26 Apr 2018 11:27:22 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id ED463267803; Thu, 26 Apr 2018 13:17:53 +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 8A508267812; Thu, 26 Apr 2018 13:17:51 +0200 (CEST) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0084.outbound.protection.outlook.com [104.47.42.84]) by alsa0.perex.cz (Postfix) with ESMTP id 3E13D2677EB for ; Thu, 26 Apr 2018 13:17:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wG4b9fJIN8a0FqiMKemPK2h8e87VQVLgc3DdIHajNEU=; b=GBQdM/W+rFhcnL85d2BO9L8zD/9QZlIEhjIx6U/wnSql5hIgwNpYI39i3MvOz3q20atp0j0Ho2jM0V3cEGBGSAvwlYS4ck4eHnIQEdepfz7lVMAcNbPRDz7GdaaLwr4cF39SWA9T+VK+pN0LLznfE9lkQvvNZU43bvI9NsiPqXs= Received: from BN4PR12CA0019.namprd12.prod.outlook.com (2603:10b6:403:2::29) by DM3PR12MB0762.namprd12.prod.outlook.com (2a01:111:e400:5984::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 11:17:46 +0000 Received: from CO1NAM03FT063.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::209) by BN4PR12CA0019.outlook.office365.com (2603:10b6:403:2::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Thu, 26 Apr 2018 11:17:46 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; huawei.com; dkim=none (message not signed) header.d=none; huawei.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by CO1NAM03FT063.mail.protection.outlook.com (10.152.81.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.696.11 via Frontend Transport; Thu, 26 Apr 2018 11:17:45 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server id 14.3.382.0; Thu, 26 Apr 2018 06:17:44 -0500 From: Vijendar Mukunda To: Date: Thu, 26 Apr 2018 16:45:55 +0530 Message-ID: <1524741374-13523-9-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524741374-13523-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1524741374-13523-1-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(346002)(376002)(39860400002)(396003)(2980300002)(428003)(199004)(189003)(426003)(48376002)(356003)(50466002)(1671002)(105586002)(53936002)(4326008)(5660300001)(6666003)(7696005)(109986005)(77096007)(26005)(68736007)(486006)(50226002)(54906003)(53416004)(39060400002)(186003)(106466001)(316002)(2906002)(81156014)(8676002)(16586007)(81166006)(8936002)(476003)(126002)(11346002)(86362001)(47776003)(478600001)(76176011)(104016004)(51416003)(36756003)(97736004)(336012)(2616005)(305945005)(446003)(72206003)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR12MB0762; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT063; 1:cPklYH58FZM8gxCgK3LKTQExrDY/QtP78pjOjddmC5B4oSE3R+4OHsWalIkTsbEs/kjcWcAfyazPb6D69xtdCmnFi10Ut4l7zm5re/SwnWY7OzPicN/HyoUlyVTlPM8T X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM3PR12MB0762; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0762; 3:IxIaVjJapKI2sfybg/mVZoPSPVEjkojOS+/s7405bHg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HSMA3H+6S0dkoYUqO6k5MqXrs1xKCQ752ynichGYhejvioml4XkyRpXo5eI35ZdOiB4+Ch3SmdWx/xlHT9EO5olwX/C7b8x78fR2hEuooWBfVMTczLnWWQeXJM59rczhsZqU3/J8tvCLBG/AIM5o3Ow++8rYvgMnjATnTJ9O6cPxyyIL05Vc0G53NgQdYk9fuIzIphMifvcNtKMnoGMASMBFK5PdqoKjPwipYrjHNwGGWYHsVB1hnjEpzqNbseALYuRTyd/o/tw8YwjwZMfKSHuD/PlbH9hwfxpthnCaep3Qd6Q3HamagBFYZA3XfwuLEA2vrmGMOmULfHhu4Sq42PQWv4YJgomyYKUlwYnlsUyrMskLz+KjaA0YZWBx5dlo37TZJCXf94f7OCEGwLUqU8pmdIdND7qEvIOEsLOlQ0v+jkjA0RAHr+7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93003095)(3231232)(944501410)(52105095)(10201501046)(3002001)(6055026)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:DM3PR12MB0762; BCL:0; PCL:0; RULEID:; SRVR:DM3PR12MB0762; X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0762; 4:ODsqzXaa8GT1QWxhwETzGUbrH3O9vM5B94bhbapskYiydGtW+R/O8/LakGS0cPH2wpBoMtAdwrUGSVsWTJomvCnEMLQefS+3VBbKHioxwHXO7xKYzcyWGxYJ6o4XccqxpkrkEd2/QbLuVl7XOcrQTHLc47K9Hnlo8SK8gIJbqK741fe4i+3RFfeBjhFcbpgnP9k/yfS/klURHJWrzKk9gCSeskK/lMfeBD57WcUIdve865Htu2FvcF3Cn4BSdy7OrjyLTDCmzLkbhUJHdMs6eWnCMr0NF/v2tulGRxJ1h5HsgyST8r+VfZ8l5U5bNTcp X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR12MB0762; 23:0oIgOCdgoxKp3wXwK2EbR4jjNpTrM6olXJwdVJcM0?= =?us-ascii?Q?RRBU4EmI8A0YJ/CgyT8IpVrUqbAnNeuyVCwLTEF/IgzjpZ6iRv3YFvsTO8sO?= =?us-ascii?Q?YtHL08ZTR/MY5RuAJ6qthbSpiUzSwsdeT6/4DBbsicqI4L8qp/K8NsIBc7dp?= =?us-ascii?Q?maec5kyywytvD+BdSyLEKNUZ44x2j7s19kO952/5oahSsx/Fp5JImrDyWi2k?= =?us-ascii?Q?46+C7YUnCR4FWylncO2tUVtYke7BXgLSGbRopT3Ok6xHUFuxyZPy3JD4rSRt?= =?us-ascii?Q?gfiP45noI9UMbXLT3PykvMessRy+P5N6rlG415vnJH8m/GqzJdzEHMRjk8Jg?= =?us-ascii?Q?soOjsXtdo2YPHW7m9vpPcBIlYRzrO2Glpsxfn+y3UigkFEqm52m9QauYnc+R?= =?us-ascii?Q?fLqimFQJt38XhY6Lbu+FvNcLjT5UARvj5TOBs4ODKlI8flWBYFkXB6fHnYxv?= =?us-ascii?Q?iy/tXqHpj+L61CqC2Zynoo+/kcc9Fa94CT54LlztKIKrSBe0iymZd9njY+QF?= =?us-ascii?Q?E8p5UjFGESTBUzuYKmcJeA3tGxaTqpnC5rbHQP2T2d7BhEVTHsiU4P34TV4w?= =?us-ascii?Q?QWXZg41opGOiPPxZF/xkDA0G/Yd3S5UDR7324RT62W0JUtdMhdhkWWG/Fr/9?= =?us-ascii?Q?TiIsd5rv7Bkf0rr26SWbGrRtgg0DyS6c3Rcn3w7K0amir/XDQnZF/oxE/01Y?= =?us-ascii?Q?wqGqivRguvjEuUeP1GYP9AZZnFUyfhJapM5jBczNhm8TThwBpckUNyhTXokt?= =?us-ascii?Q?w3yNhLJbmdf1IfTKaHlP8hVLM9hhDyt3FwodCTsR9U6DfM93YVcWRX/Pp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wcfhhZVg4uTeRTNiDoCuPUKzOt88sRUml4rLZUQpR7fqT6/3WnfozSKLQSSkP7NuhT5xB23QheSHgSX2DL0N1W9xVbmy8+YPhgfZ8V+QyU3/P9rqnyrYC9IoXkgjWCpWBMnuiJQ9IF1kavq7v8er986WMSNkawUjedmGH5CDlz5KHYxiAN9YxxZYg==; 5:r8EWy1fbtRbM4D3BsXllKgJ+nAH2+itPgWVMbzPKDG8iBc9wvgNqK4yUkdgItkZx9Md+F/emFxU737tv7toore0EM9xRZ1nu8LogJ7N56Tz6oA8a8KtCtOx2lzOx/q8KPw860iqkhjO2PEdrNyFkNsHZGbHCGITtt4RiMluGuug=; 24:kwCa1gokDeI2b5wrF55qUTE3E3siCHks0yrWP0r+8UWhAKZufCiOwrrJQR4LnjWlZo8de0hxCoG3mNZOGUpDYV9ZIEyny3QdpMt7jAdB/Oc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR12MB0762; 7:zIa8vAbbohxE9dvFljxp57evu+pJnlA/bdAoa9hF0+FJC4EmSkeMhf1NzlifPPVPw9Hsab96YCNVIj0acRjLhEz78HH5biWOa/mngmSPL1Pid5f+pcedziSD+k4ZpycIEw2+ThNG8ilmS8qV0TA3CcnLyNFIJPoZ4D9JBIGORa10R+p3ldr2ykmGMvkIkxj7RpajpCOw7z72cXy6FMjZ05dFlOFhtcOPQ3iqGjHeiRoBmvwr6LTrJS6BeNW9ZIi0; 20:KMreIMZMwnn1TgkkAxsEth3GLlBlGhzh+/mnLohkDrp+u9PIGaEIxinvppB+NdgBReUxLcrDhtNqE6sIbA+CVdaKxLV0kxlAhrE5OcAvbKKAbvUJeeyWy8I9muTsVEqfevBJHOvG8J/hnU9zPj0bB0dZrlBRIS1rEc+kgnaZmPYmf+fTiuUAQtfGBR3LT/lkssZBi2+w+TJiGO6D521NBc6cqp9vJkYTrMsf6sEY9lY0ToJeeGksPgZqyjMruTsx X-MS-Office365-Filtering-Correlation-Id: bec1d87e-a066-435a-01f8-08d5ab675641 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 11:17:45.7062 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bec1d87e-a066-435a-01f8-08d5ab675641 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR12MB0762 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , Mark Brown , Wei Yongjun , Vijendar Mukunda , Alex Deucher , Akshu Agrawal Subject: [alsa-devel] [PATCH 09/11] ASoC: AMD: Fix clocks in CZ DA7219 machine driver 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 From: Akshu Agrawal System clock on the platform is 25Mhz and not 24Mhz. PLL_OUT for da7219 codec to use DA7219_PLL_FREQ_OUT_98304 as it is for 48KHz SR. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda Reviewed-by: Daniel Kurtz --- sound/soc/amd/acp-da7219-max98357a.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 6495eed..fa5ad5b 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -39,8 +39,7 @@ #include "../codecs/da7219.h" #include "../codecs/da7219-aad.h" -#define CZ_PLAT_CLK 24000000 -#define MCLK_RATE 24576000 +#define CZ_PLAT_CLK 25000000 #define DUAL_CHANNEL 2 static struct snd_soc_jack cz_jack; @@ -63,7 +62,7 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) } ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL, - CZ_PLAT_CLK, MCLK_RATE); + CZ_PLAT_CLK, DA7219_PLL_FREQ_OUT_98304); if (ret < 0) { dev_err(rtd->dev, "can't set codec pll: %d\n", ret); return ret;