From patchwork Thu Apr 26 11:15:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijendar Mukunda X-Patchwork-Id: 10365633 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 17ED3601D3 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 077412906A for ; Thu, 26 Apr 2018 11:27:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFDDE29091; Thu, 26 Apr 2018 11:27:22 +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 0CE172906A 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 71400267800; Thu, 26 Apr 2018 13:17:26 +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 04F7526780B; Thu, 26 Apr 2018 13:17:23 +0200 (CEST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0068.outbound.protection.outlook.com [104.47.34.68]) by alsa0.perex.cz (Postfix) with ESMTP id 82C7C267800 for ; Thu, 26 Apr 2018 13:17:21 +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=NkXKbq/X1ZLxahNVChPloiCz0OWyiIahXUYWggTNkdWpwc5eNy9Im+vI8oQGrtbIvjLlBRUhOfPrOW5NeixopyGs7tDUXbA32581jNEuGMDNZt4b8EinV8oAqAQHAyzPdsFv2iNsm+XhjFw8p82TZDwYu6s07WIecFgb1ghm75k= Received: from DM5PR12CA0011.namprd12.prod.outlook.com (2603:10b6:4:1::21) by DM2PR12MB0332.namprd12.prod.outlook.com (2a01:111:e400:50d0::27) 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:18 +0000 Received: from CO1NAM03FT062.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::207) by DM5PR12CA0011.outlook.office365.com (2603:10b6:4:1::21) 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:18 +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 CO1NAM03FT062.mail.protection.outlook.com (10.152.81.50) 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:18 +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:15 -0500 From: Vijendar Mukunda To: Date: Thu, 26 Apr 2018 16:45:54 +0530 Message-ID: <1524741374-13523-8-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)(396003)(346002)(376002)(39860400002)(2980300002)(428003)(189003)(199004)(86362001)(76176011)(81166006)(5660300001)(1671002)(126002)(426003)(104016004)(4326008)(316002)(6666003)(68736007)(105586002)(2906002)(16586007)(36756003)(109986005)(7696005)(72206003)(54906003)(50226002)(51416003)(47776003)(478600001)(8936002)(26005)(8676002)(186003)(50466002)(53936002)(97736004)(2616005)(11346002)(336012)(77096007)(446003)(305945005)(81156014)(356003)(476003)(106466001)(39060400002)(53416004)(486006)(48376002)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR12MB0332; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoDomainNonexistent; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM03FT062; 1:fiZf16ybdmhbvnLSHDj4u5GW8+O2b9zVA5SX7noPMeIF2vppTwpUL7nQZUzgH1CYe3EjM4AhWc76VG0FyHOrNCtg3PwVn8TsxkgMYqsTSTb1w26KhOepk55HMYd0IEdl X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM2PR12MB0332; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0332; 3:5Bipu74NudiSBOzmPluzwZvg6SQsEINSL0DtgZvAOj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FifV0NOGe7hBJhQOo6bRodpXeoS9a9tfziH9YCppk/YQSVzm0HCh+uCIG2DKFZn2xcreVnRmzzzb67fFfEBf4ybi6SdjUbuayXrna7G1sCUmc+q0whfbR12Q1WNrsXDzkKs7hbp4vc/qhERnZDdI9UbI5OavFzqNsTFMPNfUU66JxdOXtqG2e2rmpsORwoeBGHfOZWJ+6CrTT01UuaZ55pKgxv72PB6ecY++KH/NXrqdLRnc/MGzGeydcjBPraoPFwuGTEGfXA+fQPDhokFRHphMs7Ej1M7Q5aaEsmjD2TNepFxwq5laXZMTsfhVM5QQupNuA2/h42/MhlMIG3cdaksqiF1FGtgoNd+VXYtYlg8wLFEhuBMv0qqlcNag2ltO080wJgloP5EsBU+rA5lw5uCHpSgitCgrxkRl3QeLcwhJCClNf1MrWySwNgZ3x0 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)(3231232)(944501410)(52105095)(93006095)(93003095)(6055026)(6041310)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DM2PR12MB0332; BCL:0; PCL:0; RULEID:; SRVR:DM2PR12MB0332; X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0332; 4:GTEknSQ+fnTVYOrE6ZroeVbUL+l0y5+mf51YwoxZjw5AkPfpp7rcGnrqYWnzGxYniqBd340saQ475gf18Qlwmy53K7oy1sxS8/nz99dfRTw1CmNdcZ52hoqaV0Espz0YXOJjjJ1L2Gss7MuX50/+5upwa2/7vopAzPDwxC+Pj9F1L4gyV05cSyy8FQ3FTdumFu3Vhv1rQbG8tgDNQYDyaOI6z0PNyVbwMfd4PzV1uljRlzaCiqhYgwIemauNGQqdUXlLeNu03f9MJxV6x1VAQ3lj57BWUMb2wfvcK1wSl3Gd63/zZ5UegwmjmT087EDJ X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR12MB0332; 23:hea3qphIol/zsmMYAzUzKGp2NZHVb3nHCf2/7MJaK?= =?us-ascii?Q?ilA09zS0Mn+bwseZzEx9sebqLJwMGzpTApFsLBqFZB9k13PbezNh56HOH4Zd?= =?us-ascii?Q?i/Qfb5XdN8jYUjTZNtqEg4aPO9NLW/5FIeNbfZStW2gB0kBPYD9MU2SDVLr5?= =?us-ascii?Q?keNXR4YfvrMAeHOb0dmzH0L7wj2UdhXsLms3h0TtRzAFmY0WvMit+n9Jt853?= =?us-ascii?Q?YFJtlOLjEb5Fw8ZJAiQSEFpQnLaAYVnMumRoBe7BIjIOKdR20D+M7Cn6W2Wn?= =?us-ascii?Q?EcpRAf2vdJ+8cnUAT8bl588/J2gRRNb41ZZwRHN2R6LJ/yPOsaQLo5b4eLtR?= =?us-ascii?Q?EvgeMHFdj9YlM3bL88sLAn5pL5kzYlg1ZRQzc2OZHxaTHUBFLpc5bAtzuayv?= =?us-ascii?Q?SL3y57zWEmLvkOqhW2+psL50RtsBUFqjILErOWL7DccHmNdIMbsbokkvMkeX?= =?us-ascii?Q?GN9rcp5puEvYp8g6X/xa+FVHLtQC3ecfRWebssBqoWOkXaAdcqJARxKtBlXK?= =?us-ascii?Q?7TmLbwM0w+KfPJyRAElXjKwpGaD/3pst/ztjmFyyyyU4KL8WrAhs0nn04f6+?= =?us-ascii?Q?TNGK9iI0D2D0wUT5lZHEJI4SMwg2b4SndnU9YjkN7z+qdJb3pY5Z6k315/eV?= =?us-ascii?Q?YXY/3POPul612TCGndJPW+SE5nB88XTUtDwE03T8b5Q8+uEQekbmoDnhWBiB?= =?us-ascii?Q?uUIyKMTR87lsjC76v4EVDCGcPD62YxTRzaH4fT0d2f4IF7FUW4uHHiCUuxJN?= =?us-ascii?Q?YIOJFtVnfg5jWgtLzGnTcIFvJUWvP6JWDBo7iB25HFzlMjJVU3GVYU38THQK?= =?us-ascii?Q?d97L3JzMiNjW6zKKi5oc+tHkiEsvx3OlNWGT+JZZ8Rws7k3opEk7WyPkZT8J?= =?us-ascii?Q?u4djgNbAIZFOvs1B/QBVIZeLd1SCWb5RCZIB3WHPNU91yzWTftDSimgdre5a?= =?us-ascii?Q?bnOs0HeK90/RsnOMsiRe1Q5qv/M01puyOTlb8DsLwzlrUwkVUhpnqRAXDtGu?= =?us-ascii?Q?RDBozXSQhN754NGpncyyFZFJ180cvOaevRc3ZtNyXrUvRaFQ8M74uwvWoiV2?= =?us-ascii?Q?8B2JGEh85tP+XUlXEA9aC1jsudiydH317I8olQkVnTzyyLoEp8ubG3/WVYnL?= =?us-ascii?Q?bOsn/MdAlSPCGiBlLbFnNLTnZnc2AOi0YmDVuwFkQm082mm0VCUqSRa5IHDI?= =?us-ascii?Q?/atcGmwfEUQ82rwYoCn9nG41hGJL8abGLE7pBDh7qp2cf1ZX02h7l+JCg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Antispam-Message-Info: kSjNAIehi6BOOQNehSnphgb/Bm1FqpC031wIo2jq6p2GVifJJLk7QXMIboSmnNhsw/6XJ9v8f1EpWNkhPnzxFaLsx87vAXa4GUvGS0wuMUoZAlPc/HqAIJCdwEus8fJ9GvDby6ZKFaEvTowzKID9zfhgRqwcS8qQVPxxIVtPxJDq3PQGpzZ+rvOG0fQgdg5N X-Microsoft-Exchange-Diagnostics: 1; DM2PR12MB0332; 6:b2bgK7xlVucL0pr8RQLHIp4biipSR4/dIuseesEASLqu4e3FYeMSagzhgeTaoR1NoJhakoHsCLbvwp7lQdnR8i5yC+8M+QJpqmYNRoZcSKV3sDorOTELGFP/Gvag7p82OEzxCGfdM8qMMjpgIrUGLNx0rnic2KxCm0MRrJM/vIED/2jblp+Mg82SLiCDrenqa0GrY1Iww1Xpj6EAxkZnH0GXgkXTX++A4jDTZgWA4+sFF7Q9CImgtT86ft4xrFzMsEr7yslLvPnF1fDKynY6MhA6yY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filtering-Correlation-Id: cbf01bcb-2034-4ca2-5c1e-08d5ab6745d7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 11:17:18.1547 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbf01bcb-2034-4ca2-5c1e-08d5ab6745d7 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: DM2PR12MB0332 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 08/11] 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[] = {