From patchwork Fri Jan 6 09:15:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ki-Seok Jo X-Patchwork-Id: 13091143 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 919EDC3DA7A for ; Fri, 6 Jan 2023 09:21:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C75D1CB28; Fri, 6 Jan 2023 10:20:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C75D1CB28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1672996867; bh=nS9gbnxwufmObv6n0JCGQlG4xZiMk9YsU4TFKGc2byA=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=lzk7kn4aggwtkwOAW3YW86DPjef5No/imWQtr5PZxffj7dhtXg/FrtETX0B5ryFrV K1fqutOjaPJhPBOem65d3zixfnNlfrdd7MFxHlTlThFtalwAd7yfzabxL+7pRi9ZnA om/Isd3u6kPlobNPB5cgXSUgrUqLxkIMvwEdAnA8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9498FF805E6; Fri, 6 Jan 2023 10:16:23 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 73A1AF805B1; Fri, 6 Jan 2023 10:16:18 +0100 (CET) Received: from KOR01-SL2-obe.outbound.protection.outlook.com (mail-sl2kor01on2059.outbound.protection.outlook.com [40.107.129.59]) (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 880B4F8057E for ; Fri, 6 Jan 2023 10:16:12 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 880B4F8057E ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ARdBkP7Kgx+pGPLpINExNM85llX2ck96BYf3poHBfqiYDUGX3rAVNv64zfM8QOE9LxW07YmivxZElzwqcFAtmKU7f6+ubxlcF8oGjPRN04QO4WJAxIrQl97QIXwkf6EIFA4Yqa13DuZyt6yYFyo3CROVfrTjf/FaXfctCYBFvceiPx4exUsGoUtdLmVMOfotHMxMCfwVq6xCJsXh9MmOsNUot6mMVCXeJLLZEsVnTR4w6X0WQWDt7xsjRT0nmifrvj5TNn70mfyKRPO0ZknwKdArFLRAbQ+hnT80mIrm0DIitjSpX/2svvqwOwPnD3pxh7XuhOEFUxpmARlFNi89SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lA+ZO2SQADMxLPUhNfCsUBUr0jRQNbQcQrMQkCAHX+k=; b=IAHecKwYbegLF1een6cQ8IYhLrgFa6zqq8+4wmfnnVSMB/t3hn6dXTLvcZC3FmRGvazVxUkl+QwbjFVLXlWkLpsOF78QeDhCF/B/DS0s7vO/YefhDXI+09O/CaxLDnNtDVH8S7kQjPPFqwRutJVZZx726/TdBXLYrQt81OHDlBweOgpkSV/vH6nFVffGc1LxWTF/dG4RowfRoenC1tmf3ISEQ8YuAOLiAcdjQDcJVCLj6bWEex/oA0bFxtLu5IsknKbF9YeEvJp5uAdqJEwse7IoZ+AYlAtJSE2qaY9E2adNrtL7M/qcO2rz1omcnX70x7g4/YkkPV/1qvhNCd6GaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=irondevice.com; dmarc=pass action=none header.from=irondevice.com; dkim=pass header.d=irondevice.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=irondevice.com; Received: from SLXP216MB0077.KORP216.PROD.OUTLOOK.COM (2603:1096:100:7::23) by PS2P216MB1300.KORP216.PROD.OUTLOOK.COM (2603:1096:301:98::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Fri, 6 Jan 2023 09:16:00 +0000 Received: from SLXP216MB0077.KORP216.PROD.OUTLOOK.COM ([fe80::3d9:7f82:fa73:e727]) by SLXP216MB0077.KORP216.PROD.OUTLOOK.COM ([fe80::3d9:7f82:fa73:e727%7]) with mapi id 15.20.5944.019; Fri, 6 Jan 2023 09:16:00 +0000 From: Kiseok Jo To: Mark Brown Subject: [PATCH 10/14] Remove the shutdown and startup when set PLL Date: Fri, 6 Jan 2023 18:15:39 +0900 Message-Id: <20230106091543.2440-11-kiseok.jo@irondevice.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230106091543.2440-1-kiseok.jo@irondevice.com> References: <20230106091543.2440-1-kiseok.jo@irondevice.com> X-ClientProxiedBy: SL2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:100:41::29) To SLXP216MB0077.KORP216.PROD.OUTLOOK.COM (2603:1096:100:7::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SLXP216MB0077:EE_|PS2P216MB1300:EE_ X-MS-Office365-Filtering-Correlation-Id: 530d975f-61c2-4c1b-ac42-08daefc6a075 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /WR/z1ezy8FNNJh3GnJOTaqEUsAWDE3yU4d500FiqJ8HnFaJLKwFvoSZ4dEzqZ3+TD564ZcinjrJZgNC2ZJhkdviCruL0hxg6guNZGjMAoJaG/q2s8f2/zuTzEnchx79tvKA9I2LNdUlRrdokLdNIIP92iNmnJuBvCSWa953dzXEzBI0tLjvzNp3i4Ivu6it97Z0k7keRzqr2WFCIqmVKz/kXGkkOau6L7j3ExucBVWrFmz1jp00A+8O1zSLGQ2zpw8BTDZI6+P+KizQlTdgsPzNall82OS9OkIp1ABxmWkgUwwmNFZlhzCjwm1qkFQEejqgNFu9parNs/ESgkJF09KhQcLwxuZaJmJyOyE5MJIixnJkxAtWIdSvg2g7+P0/u4xlUxSvpfWkOOvE8tRXGG71QelCbNKg2R9qS/RtCOHjlmRTWV+4lbYTsOKSE4mpnCnH+iJHVBRdLiRotSPw0eB7yLdMPcJHTCy/FpOvKqY9GiARQOJRsfQp4Yvh9blzk46rMz5wfU87Lr1RI/vpihtsXuMgZP82HNbmBZ/cAJHIuLgO6pJ7yFOZlfMUXXQkkWwoT8cOuDCNBsAzdIob1sMMDot9saTyCcpqbPeIkROiyvMA2qj742kgTHy2TA0kJpKeVGUBaB4JFU8I+vRrwqi4PcstKMEBXSVj25GUdGH+KeW6Fvg4xOi5fZ12Evzx6oJ3401G5OUy+dHH6XcyAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SLXP216MB0077.KORP216.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(366004)(39840400004)(396003)(376002)(136003)(346002)(451199015)(4744005)(8936002)(2906002)(5660300002)(44832011)(8676002)(41300700001)(4326008)(6916009)(66476007)(66946007)(52116002)(66556008)(316002)(6486002)(478600001)(83380400001)(26005)(186003)(6512007)(107886003)(6666004)(6506007)(2616005)(38350700002)(1076003)(38100700002)(86362001)(36756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JfaH8oMG17wgMmgt2LrBPScDqaX7aC3esDQ0uVIsl+h8rbzxL5/nti6XcMuM9PLboj0WDyaJCtEyPHd+oOVg2xbfJLucny9LU7sMYTGGuKJ91Vgd1nvcNezOv9SqA4PBGkTUUhXlLGfQCjMePD2Ii3VftYZewejsvRweiIUpcDANffYuTvr6ygXo0a0Our97XyE6DGlfMeg422cnyLdOcnfMIReKZ/guACvIZaRnhFA5KoNblVHoPuYTv4uVK1WJDV85QAXZomVR01fjIT8ZJM7t9VqlBVnX3Rg9R2KDhoRimccMO1489jGV5h0qCnyDfSxGGoduVbln6QxFLRdM4qL/UsW0W3446QkTDqYHP7B6LU4HRGzrsuR4K1WuvfaqNpiO9fN0re7pkOCm9CJUZsLi33bS6eMvTtwlpSIzawvL+0GyN423b/njQh8I5vKdlNbo2iCROhkZBXye+StEyKD/Xv0bhiM5yCxSJyjc0Vt9GA8nv8bGsCs8Fthlh5CW6faSbiN2R6WrBRDMwmq+dO2x6opQqE7AsXmUKN61/hlUH3TQaN+vtCis5aRujPtHo0vKDUwsWjsBXKVT6qlhkmrneGTXUjHtamLdoAow== X-OriginatorOrg: irondevice.com X-MS-Exchange-CrossTenant-Network-Message-Id: 530d975f-61c2-4c1b-ac42-08daefc6a075 X-MS-Exchange-CrossTenant-AuthSource: SLXP216MB0077.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2023 09:16:00.3944 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b4849faa-3337-494e-a76a-cb25a3b3d7d1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jBPPbpIkxyfaexNmQVGIV/qXQu3vZNwXLKbUEUW9f/j9KIi1OcrnE+uX8UpFwmiK1kSrlGthkdOiHFaDoJJPtnq7tDv+qC9TKIvRxcRA45A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS2P216MB1300 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 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: , Cc: alsa-devel@alsa-project.org, application@irondevice.com, Kiseok Jo Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Signed-off-by: Kiseok Jo Reported-by: Mark Brown --- sound/soc/codecs/sma1303.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/codecs/sma1303.c b/sound/soc/codecs/sma1303.c index 1991c8d21ba3..0b4ca935ae9f 100644 --- a/sound/soc/codecs/sma1303.c +++ b/sound/soc/codecs/sma1303.c @@ -943,13 +943,7 @@ static int sma1303_dai_hw_params_amp(struct snd_pcm_substream *substream, || sma1303->sys_clk_id == SMA1303_PLL_CLKIN_BCLK) { if (sma1303->last_bclk != bclk) { - if (sma1303->amp_power_status) { - sma1303_shutdown(component); - sma1303_setup_pll(component, bclk); - sma1303_startup(component); - } else - sma1303_setup_pll(component, bclk); - + sma1303_setup_pll(component, bclk); sma1303->last_bclk = bclk; } }