From patchwork Tue May 1 20:50:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10374437 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 2E4AA60234 for ; Tue, 1 May 2018 20:50:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A78928CD6 for ; Tue, 1 May 2018 20:50:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1916028D3A; Tue, 1 May 2018 20:50:40 +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=unavailable 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 7606828CD6 for ; Tue, 1 May 2018 20:50:38 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2036E26763A; Tue, 1 May 2018 22:50:37 +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 55271267641; Tue, 1 May 2018 22:50:34 +0200 (CEST) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0057.outbound.protection.outlook.com [104.47.32.57]) by alsa0.perex.cz (Postfix) with ESMTP id 6303826762A for ; Tue, 1 May 2018 22:50:31 +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=lvdQI2r8P71OYnvtW/J6Pnp49wqzxVnBfnNc1/pZ9R4=; b=aYvOpfcqMnZngOy/kcXhLfPe53q8eicR9XFKFV5hnsPOI4qPHoytIVDz8L+G6yPgyxbK5Bpg9OHySC8d9aw0RfXugDiyFQnjH+h4shHLtbGXtsPZA7q4X/seCc/XOSfh4fhFAwT9N0SE/g299DUjS3n4iNMpO64ep5NAtJZK7eE= Received: from DM3PR12CA0052.namprd12.prod.outlook.com (2603:10b6:0:56::20) by DM5PR12MB2421.namprd12.prod.outlook.com (2603:10b6:4:b4::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Tue, 1 May 2018 20:50:28 +0000 Received: from DM3NAM03FT025.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::201) by DM3PR12CA0052.outlook.office365.com (2603:10b6:0:56::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.715.24 via Frontend Transport; Tue, 1 May 2018 20:50:28 +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 DM3NAM03FT025.mail.protection.outlook.com (10.152.82.181) 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:50:27 +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:50:26 -0500 From: Vijendar Mukunda To: Date: Wed, 2 May 2018 02:20:01 +0530 Message-ID: <1525207810-1305-7-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)(979002)(39860400002)(39380400002)(376002)(346002)(396003)(2980300002)(428003)(199004)(189003)(104016004)(36756003)(6666003)(26005)(2906002)(305945005)(16586007)(478600001)(77096007)(4326008)(72206003)(50226002)(81166006)(81156014)(8936002)(316002)(54906003)(105586002)(39060400002)(8676002)(126002)(476003)(336012)(446003)(426003)(53416004)(11346002)(97736004)(486006)(47776003)(86362001)(48376002)(53936002)(1671002)(50466002)(68736007)(51416003)(7696005)(5660300001)(186003)(76176011)(106466001)(2616005)(109986005)(356003)(266003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB2421; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; A:1; MX:1; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT025; 1:UxXEjQJoqseU8Dy9h9vQj32pDRfBoE7VMg1bMyGyIjxhy/R0813lD5yqKmBycn66fXYgglciniXQWy2sLakuT1z8//ASm+pUjEZTr7UUMZaGvJNHVDueOnpL3CuO97Mr X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM5PR12MB2421; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2421; 3:XndBeFYTx6ZvhJY2PKxOrKrbTj4nRJIRYwh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ufh2DqkEgr986nwjHiB38Qi6gl1TuAVuZF+qg8cuK8YcMbJgPoJkZJiwgPHpMwBrO4zs7kP/WdGWwb4Y7Yt7B9Gys9FHuidNsy2csYIs1c17ndlnPSKQgrO9i7pCmJjuchIgcvVWGn4IJUZy82Lk4o4rYksZwjmgrB++0U1U8JkKWyrNrkYUyO97OlWUlJukTh0GqUdi4mEdVlOZ00jjhLuWwqSsBZYq5lefY9hrj6+QhIHsZjZi9aijgwegp3cbgvdoxPJFK+/jxlbjDikMkX4iiIlyDFnMRtzXqli/ESyXY/j9D3TTKHmVNbRrVQ99IxXQFk5sbhL+XwHnsU5fnx2OAqcqjhZQRn7f0NJxa6cTxs4/A8NpxhdyNJEYgf1bVmyLtKXO0FGvtQbN/5RNJ6//tDrLfaPO1 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)(10201501046)(3231254)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR12MB2421; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB2421; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2421; 4:wFblLmCmNL7whg42aE3Ww/h0i++JoC511w7DciqZhgz4SKlArikl/gNoNqiBa8ieGAYZA88WJrMrhdVc3nGQ9NVTwxDmMFM7xGks6HqR056gNuV8URWphdIARAcXQbEi7UYOUGdbECK8j9sD2CMkrCRP7Sc3P1D/Q0e3o/OU6hFxre3EcWHvfdjp7zjY4l5B1QnYjZw+5GqoHjKcF3LlkNdWJt9fHmv7x0dIIKVwPaYN9soeX5wEHjAMNVZPjiHZWy1Xqa+2oGpXJSW7tO8xYYQpe3rYCCj7lNRhbaWPJj4dUJ7zM4uJx+QW+Kj0zBoF X-Forefront-PRVS: 06592CCE58 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB2421; 23:tRkUh78n5AMSAz6anFSuFLoB+A+4PGgf2S+IAjQax?= =?us-ascii?Q?6IGpfp7b5mYSYBwyUQ8kcNfSdfAQoxh1lqEutn0M3WnppNoE2AaKMvZOINa2?= =?us-ascii?Q?GXmfmBeJAKo5SbsE6uUMZRQh+mhGZc+POC8OIiFMMHngYo/aCL2P/Wav5VjP?= =?us-ascii?Q?vYAkbNf2i2hGg0GncQQX3Pr4gaheTUdU9xIiwP5J1D+PmaOplcDZuppBbRpG?= =?us-ascii?Q?1KeZn8N4XvjJzB+c73H3ykSqEIVZAHIWGPdD1tTkf6XD70X7/Du5Uz96NV75?= =?us-ascii?Q?WuDYDM52EvigQHnkqvoWIEZ0LZwp+7AQLxH7V69NRWROUR36i7BGB+Q4ZxA9?= =?us-ascii?Q?RJwq/NnuyH0x82qXRS9twKYCo/zl/sUPotKmWnbUbqRCxaKoxBiFJgK2vSxc?= =?us-ascii?Q?ndpkI1tKEY/adBe/Xa4RYmhMUQ3sOjoL+XaomSIYefXqIbboSmc13FpEJnsZ?= =?us-ascii?Q?caqt2sbURkB7MQ2TG0kPv2q9EWM/AcmA80aCi/PV4Kq7VvDA+y7RZ6IBZ2j4?= =?us-ascii?Q?BeRWH/CT0EDUesbhSS0jPVBKLH35Cjb4nHSD+ZeMdtdgS0YBC+p06l6ovare?= =?us-ascii?Q?mKCmUaxd3wD5WyBcZsAbYzy0nxTswoWbcxwDB/TQoUyIA/80KlmvWCGmF2D1?= =?us-ascii?Q?aHq9/tXM6U5QicEl3uzcNaz1cVoZT+8elvF3xHklms5CdsHa2zkpOfm0myQ2?= =?us-ascii?Q?7f3bmdANoqioMuxZvKuMb1xaEtC/e3BPhtIveXESJ9I8qHqsXF1O4YajpTK9?= =?us-ascii?Q?atBvy1daB+ONHcnv+nfpMBy611igmMjDtgkJ+BtODDWl0LKxqx7JeykZLEaT?= =?us-ascii?Q?si6B1B7w9Nc6wcm+xVH9+SN/hTOG/fzYsZa6wa5AYBVApEStev/18+B4+EAN?= =?us-ascii?Q?IDJ/uWwCUxRTFTnJM+lj4ZAtXUPc4UDSqVpf+2f2nMdilNtKP+yS1kkW51tT?= =?us-ascii?Q?v2rVI8mHUhAtXQTXL3etbmW3Rfz2Xu7OE7kFJnNP93XOUZ1YVuM+8EEyy54Z?= =?us-ascii?Q?dXVksO02nHpIUA+ujemckRpNBgZUK2F0xlLXvnsvftxddUSPHac01CqYMcbM?= =?us-ascii?Q?4lBUngi/5eUY5Z5vXFwEu49M0ZI+HLGHQalsGIQT64PqFjWwmDvlDqLF/XzE?= =?us-ascii?Q?ZCqXS/pmZUVXgE8OPzi8e3/V6Q/ADRb6H6emMck2OQoJ4JaLXpbPQgeyTUo3?= =?us-ascii?Q?ChTrfQJ8xv91xOxZ7zncTj22YCDNCnf9fq81tmvIxiDVVIe+gzwQJbIYpySu?= =?us-ascii?Q?WBOiWpUhKp1sCIyWVbE1I7rvNIWq07/H7gNsLNj64TiWctNoI/elHagZCmUp?= =?us-ascii?Q?Q+PTIYJvb95JiJcRTXNacUxIMP4UDnIVEZZTLIfKDh+?= X-Microsoft-Antispam-Message-Info: K4fpo/ldTzMzhOjh0jhCDcIFMKdOPgeAD9Rv6OrSaIsIzdLClxmCQLB5fCGnthhXijXf+shd+4yvDQG/tTfXfhRW98Y1c0vSk4MlNcKIt2IO3mtlIm2nszm3G8rIRebNFW6Ru243Sc62jeiRO23vIouV79kutYL/soNhvE2bFLLJf7qfffI/ZdlfiFxm1R6X X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB2421; 6:oA8MDi/dsdI2Kt5ovB0q7iq8SQu+kcr9ru96Gmzw7SmIxedw0Jgr777drp7G/htMkVZ4mCy9RYvXm3rDjRFlevdHoDcyIXurpspRFijRE/CepDg4xH4IeBYVCSEX6DJiUDL1ukwQeB/XiBGzOEs4Y/PootLg4x955rUlj07wyfe+h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cue3HiTnFSAYl1NwA089IujY+osVPYU3UF0nzdJ15c75DsKatg9DhBCBtzSBjVqiHrRm4CeD0TqXHbD0+HZEGo4GhEabN6AzgBT0 X-MS-Office365-Filtering-Correlation-Id: abeed655-d439-4358-a554-08d5afa52ba6 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2018 20:50:27.5224 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: abeed655-d439-4358-a554-08d5afa52ba6 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: DM5PR12MB2421 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 07/10] ASoC: AMD: Move clk enable from hw_params/free to startup/shutdown 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 hw_param can be called multiple times and thus we can have more clk enable. The clk may not get diabled due to refcounting. startup/shutdown ensures single clk enable/disable call. Signed-off-by: Akshu Agrawal Signed-off-by: Vijendar Mukunda --- sound/soc/amd/acp-da7219-max98357a.c | 49 +++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 14 deletions(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 215b06b..6495eed 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -91,8 +91,7 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) return 0; } -static int cz_da7219_hw_params(struct snd_pcm_substream *substream, - struct snd_pcm_hw_params *params) +static int da7219_clk_enable(struct snd_pcm_substream *substream) { int ret = 0; struct snd_soc_pcm_runtime *rtd = substream->private_data; @@ -106,11 +105,9 @@ static int cz_da7219_hw_params(struct snd_pcm_substream *substream, return ret; } -static int cz_da7219_hw_free(struct snd_pcm_substream *substream) +static void da7219_clk_disable(void) { clk_disable_unprepare(da7219_dai_clk); - - return 0; } static const unsigned int channels[] = { @@ -133,7 +130,7 @@ static const struct snd_pcm_hw_constraint_list constraints_channels = { .mask = 0, }; -static int cz_fe_startup(struct snd_pcm_substream *substream) +static int cz_da7219_startup(struct snd_pcm_substream *substream) { struct snd_pcm_runtime *runtime = substream->runtime; @@ -147,23 +144,47 @@ static int cz_fe_startup(struct snd_pcm_substream *substream) snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &constraints_rates); - return 0; + return da7219_clk_enable(substream); +} + +static void cz_da7219_shutdown(struct snd_pcm_substream *substream) +{ + da7219_clk_disable(); +} + +static int cz_max_startup(struct snd_pcm_substream *substream) +{ + return da7219_clk_enable(substream); +} + +static void cz_max_shutdown(struct snd_pcm_substream *substream) +{ + da7219_clk_disable(); +} + +static int cz_dmic_startup(struct snd_pcm_substream *substream) +{ + return da7219_clk_enable(substream); +} + +static void cz_dmic_shutdown(struct snd_pcm_substream *substream) +{ + da7219_clk_disable(); } static struct snd_soc_ops cz_da7219_cap_ops = { - .hw_params = cz_da7219_hw_params, - .hw_free = cz_da7219_hw_free, - .startup = cz_fe_startup, + .startup = cz_da7219_startup, + .shutdown = cz_da7219_shutdown, }; static struct snd_soc_ops cz_max_play_ops = { - .hw_params = cz_da7219_hw_params, - .hw_free = cz_da7219_hw_free, + .startup = cz_max_startup, + .shutdown = cz_max_shutdown, }; static struct snd_soc_ops cz_dmic_cap_ops = { - .hw_params = cz_da7219_hw_params, - .hw_free = cz_da7219_hw_free, + .startup = cz_dmic_startup, + .shutdown = cz_dmic_shutdown, }; static struct snd_soc_dai_link cz_dai_7219_98357[] = {