From patchwork Tue May 1 20:50:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mukunda,Vijendar" X-Patchwork-Id: 10374439 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 6DF1D601C7 for ; Tue, 1 May 2018 20:51:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E98B28C3E for ; Tue, 1 May 2018 20:51:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52BCE28C6A; Tue, 1 May 2018 20:51:25 +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 77CA128CA6 for ; Tue, 1 May 2018 20:51:24 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 140C1267628; Tue, 1 May 2018 22:51:23 +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 218F8267640; Tue, 1 May 2018 22:51:21 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0068.outbound.protection.outlook.com [104.47.32.68]) by alsa0.perex.cz (Postfix) with ESMTP id 52035266F44 for ; Tue, 1 May 2018 22:51:17 +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=nIokoRU5jYfP5+sd+UkwC4xt1JhSTrWIM+7Mecz/S8I=; b=AFKsYXaG0BNb3EPOoF1fQE45UF6HAdccIuhlxk3xEI+VWVnLbd2iVPFrSYXona7nnQw9Sy1N39RjWuomad4JDgAumLUJRfa0nYg0LGj4Bo6Jg7Sg5QxDjkEyNrPI584rCvlOQGYN7YlVsSfNx/pbClDxJXgooA7zd7EWqHhsM2I= Received: from CY1PR12CA0057.namprd12.prod.outlook.com (2a01:111:e400:c42b::25) by BY2PR12MB0324.namprd12.prod.outlook.com (2a01:111:e400:585e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.24; Tue, 1 May 2018 20:51:14 +0000 Received: from DM3NAM03FT044.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::205) by CY1PR12CA0057.outlook.office365.com (2a01:111:e400:c42b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.18 via Frontend Transport; Tue, 1 May 2018 20:51:13 +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 SATLEXCHOV02.amd.com (165.204.84.17) by DM3NAM03FT044.mail.protection.outlook.com (10.152.82.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.13 via Frontend Transport; Tue, 1 May 2018 20:51:12 +0000 Received: from LinuxHost.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.382.0; Tue, 1 May 2018 15:51:11 -0500 From: Vijendar Mukunda To: Date: Wed, 2 May 2018 02:20:02 +0530 Message-ID: <1525207810-1305-8-git-send-email-Vijendar.Mukunda@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525207810-1305-1-git-send-email-Vijendar.Mukunda@amd.com> References: <1525207810-1305-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)(376002)(396003)(346002)(39860400002)(39380400002)(2980300002)(428003)(189003)(199004)(48376002)(336012)(478600001)(81166006)(50466002)(97736004)(54906003)(126002)(26005)(81156014)(11346002)(486006)(476003)(2616005)(8676002)(446003)(426003)(36756003)(76176011)(7696005)(51416003)(106466001)(47776003)(8936002)(50226002)(1671002)(356003)(104016004)(86362001)(6666003)(68736007)(72206003)(53936002)(2906002)(305945005)(316002)(5660300001)(109986005)(4326008)(186003)(39060400002)(77096007)(105586002)(53416004)(16586007)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0324; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT044; 1:K1C4z94hHLSxv4ZlqwDwhC04FE/kbzZAlX11Tq8UyNPRdpMrJF/bMnwUERIxpQK2Y39tdpp/BQm4WuEUjkOLmXzPTv/7haTKdW/KUBmIp7PUWXlIVIU/yuQK2kZFq95x X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:BY2PR12MB0324; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0324; 3:itVDb+/uKAFYktGGpJIZe7pIBjf8UX6DBSbjyJgnT3Ecsa9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JZV+eLDPmepkOe1Y2+JgBvZLuL/29xJ7ao6p3N5GJ67wc+8t3RDcmAVUuw9suL3bdiuOVkZk77QT6HKkzh9Y/f+f28GP6W8+Pk6s5RYyFO2VNgevO8xjWvTC/McJC1Sq5+sV7w8BiXIhIqGl2gn/6YiqB8zLGJ9Al4fT6d1FIboI1mlgkNkIildxe1vNI1oMFSWNM+dgMnVjCMaCMlyTvMwN24nsS3EGcvfz+hm8bZhlA5R5DCzN51UUStmxn6/Hk11F+L56Lxsf9ZQxUAFEQfGXpqJ9STVkHq69BtSGvFSMHGW5FW29JaB4Zw15F7dOU1JTh6PNeYfFUPg45CeHtC0KEdUwtQAh9seAcONCBNfnZjIz47u9hX9d4Sq50pEh1GOrmEqAlD/BJ0hn/SA 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)(3002001)(10201501046)(93006095)(93003095)(3231254)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BY2PR12MB0324; BCL:0; PCL:0; RULEID:; SRVR:BY2PR12MB0324; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0324; 4:dM0Ld4eJkKgqMmiRGljwSeZW6pUDlCdXZ7KfJgKff9JJqdkDirf64iCj5duBBWFSB0LTWRif+WVGOYK5OEcq0vLx+ch65jJlKycBdfVWFmqASRWM3fApeUeVVFjPjemaULuXu1Nm4pOOvfd7k4WnEmgj/HEQA6/d77z+XlVV/ZWjQXRA8dOszbbMhAkN2c7uswV5sP6k3ZL4AQxDIsFvjnHcAHBdG1/RKphF0rSOHaXkSdlyKD0Tx0YUmj1wzT/rhj/EMum3Al/R3qTLUjQRmrGjsMjgS/bDo06Klykj0b2/DeRC8wySj3p/F1V/wO5B X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0324; 23:gWOgPc9IBSnSfqQ2ynYD199KTGtJyWOK0vhO/mEoz?= =?us-ascii?Q?DZbunQ2w6KYfWYa3hE9oHGVM3h3JLU8PdSntyiZNuZELZNFZXure5nsbseIv?= =?us-ascii?Q?jMmDu2aLNFuAaKYDWr99efUzIkxq8oEt4mOGRg/1vb+5+eqc9dhZU1d51wrH?= =?us-ascii?Q?FS1pxvlaCeHeHP+O1O2tntrDZjZfehifSf4JxeEXO8VR+6lypm46SCI2LzkR?= =?us-ascii?Q?oWDvWx9nCAT8iJ65l5SaQCHq8M4lWlJ3M6oZQqgqOLOtvQLjiLCQhq9KYUGa?= =?us-ascii?Q?unMOPX1+SDBTMmF22tLQ2WIopu1nJhWXseFjrpEobhPTu/7HR/3kVVSbn3cl?= =?us-ascii?Q?MuU4cqHhl4RwVofj46GVg1hoNrwsHV6ibwMAe1iDEPuGdRoGklxlNRojZSps?= =?us-ascii?Q?d8hH3GYFZHcaI4SrcPS0mfv5a5XdHWrTmlx3QwIkr3GXfAb+FjcksbOv4PT2?= =?us-ascii?Q?Swf0U2WExfiZ/E/2rpRrp8rCxtNjB1Ps4LBFsk7j/EPgO/N8LnivV/PkVy5/?= =?us-ascii?Q?88lF3voD2h3eVuciFNcpqfhRd6JhJdx+E48FdNRIp0QHe3GKFg+kAHF53ihv?= =?us-ascii?Q?byev7EkF5BkDJulNyZgtStTceTFNXjknhjLnY4bI67O/xJYN35F76V/sThRs?= =?us-ascii?Q?u4K/MnVlT2Zkt0BLd1aCdlcwWbmlNLHsbE5A8ZrrSEAG0BpMjCunBCnJgli5?= =?us-ascii?Q?roSjj5qakJjaSZpcK6YlSmE5Ov/B/03wSKkbvP7g+PRY2TFiNkRkwCvtcBSR?= =?us-ascii?Q?GqavegEuBXTitF+bjdKtV2vbfGeh+NjuVQ3UJgCyTKNKqdV7qcVquzQ42zPd?= =?us-ascii?Q?tQ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KrwMbXj3zVI0lB1lFAGHVopMaAap/mjVLPdYFrxNJlTYhXcYQhaE37ldNznoTdmXhJlul/CjJQysjv1fMiY/YLtfK1/WxtDVKRLfEATUHGS4UDNGRWVPOEdJs+Q4oKrRqlzP9s4mhG0keE+nnnDBPe591ri2ONppbwAlvg==; 5:HrLOktx3avyKxqR9xtqe4Q1eNJVtsNjNVZG0Ve1aGh+OG+msCxvfJthLmo3Jvu7SQD2aLsIbi2qtNGK/YHL/3gjU6biqN0X8mqSUl0XBVWSl3hRNJzU1ggxAfwEzk1jTspaY5uXXDc7GrbuyKfqfYM9puvdhuVAF6L2nHzcPXW4=; 24:6cOmWkFxkGA+OdMDv+1rD62QkyKocq4yI7wyDpp7YOtvuQ/4muHwhiL5ms8o60YlynG1UyJirPT5EjrnHz6YPm6DViuX0oxhsBG6Kzqdh/4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0324; 7:SMg9b6/wgUt5+UAT/IYEjNBZ9MPCb6Cplbq1WLX6ggTa/Ekni8reOyRPatMoA1flfeiSW3tlUWzODrvkRzLD3Skt7iUP3wQSaVnG1RpbTVDF6NfobsAtYRrOZEtYWG7WvsU8cU9aIUHbBBTRVFMuVx3BRvSIk2KonaCXP5Jr7bgjVxyfLZDYCNDQWKrDollJmlQp9N4toY651QDcfwRMw5gsOpB5gohW2OmEgTfRLQ5LFRTLRs3dOUFIQ4lwVfeS; 20:6KpixdllvBWAvu8p2za/8iWAzs0UZ5Qm4yFb8td44qABwaYhInamTxh1yJ8ESMysj6K3KONLkdznMjxmOlD53p+C71f5It+4se0bnnzKQEal5huCwaG+1I0awG7T7kHIjSnVjr+rbWcc5vr8HhKG6VOfS7w1FQHNNN7XYRpZ/oSCd4VS+bnDLUAomRaGxG2xxeId/stlNcm5mtBNxxg9ArtagH7ReO1UDMsUo5U2LZtCPn/Qkj2uqjfshDiQCEt5 X-MS-Office365-Filtering-Correlation-Id: 92c5f80f-0cb8-44c4-b376-08d5afa546bd X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 20:51:12.8938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92c5f80f-0cb8-44c4-b376-08d5afa546bd 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=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0324 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , Daniel Kurtz , Mark Brown , Wei Yongjun , Vijendar Mukunda , Alex Deucher , "Agrawal, Akshu" Subject: [alsa-devel] [PATCH 08/10] 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;