Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp462570iog; Thu, 30 Jun 2022 04:20:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1XgewUsi0fHy/gcw1emv9KHdlAClyWCsYMeoe0KEWRzapr/tv6o41UzHuDbwC1Jvm6Izc X-Received: by 2002:a05:6402:27c9:b0:435:d420:5ebb with SMTP id c9-20020a05640227c900b00435d4205ebbmr10693231ede.89.1656588020880; Thu, 30 Jun 2022 04:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656588020; cv=none; d=google.com; s=arc-20160816; b=CHl39eDqdfOELX3FlpiKpS80FfBBPtsmIRWmWO5BvGcAhdDot6SCzosQzL9nKQ4jsF cpElcwXkNnO5sIxK6X5ElxW/cfBGcUAb+sETFpMzArtUn8BGeGrfpesLVv/Zrd7XALeh OuSBM459RBsPD6ShdYqxdd7s1R+lrDtEiNtQi6NPGtEv6mKf2/0P5O4wdLdPP+4e/gfS aoc04OZJPgoJPKe/hryhqC04R7/Vo06YKz7kTC5gF1iMyRjuagIY6OYdBebR6r3/IlaT n7iio8FzkN/YDwNXSGfxE5ShQumyMKiJ4cuM4I7twLShqvGGrel9wAvcsoJCiyHWucg6 PBew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/YTZ31sr7KYxFpomnuruvTQbi6OcJxn+yjgj6Erwb3E=; b=e+5KFVUieEbsksQu2oCiOBKx/oSpx8sJp8OU3FrDq1OHwdZDB7z6Y7Ag4oBul3zkbE rfl/i4ROJRT7khX2++k85OVTWYZZGh+P7JYHY6nOz++od1z8FofWTHMY/spdZK0sU3Zd 6j6M45++d4juODMJlG5zdCSZPR4fjQRZCwsy5rTYu6/5Y2E21rjORbVL/ocf6tQxn9Rk iZXOa0PsyKxUG1f5C+FIQ8pXfpT/v0cMIZO2F1WnQO55b/iFfL+KHoNCMShUG9ayOJJj N4eJhCRuR/hn2aQFhch7vtbbxnaLvgwbayWKGdM6znjL0d0t2s96rTSfc0IRuYgeOZrT dl+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KwZCxI1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d24-20020a1709067f1800b00718cc500533si3107571ejr.608.2022.06.30.04.19.55; Thu, 30 Jun 2022 04:20:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KwZCxI1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234445AbiF3LKp (ORCPT + 99 others); Thu, 30 Jun 2022 07:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234426AbiF3LKn (ORCPT ); Thu, 30 Jun 2022 07:10:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A72DA45790 for ; Thu, 30 Jun 2022 04:10:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 43638622B4 for ; Thu, 30 Jun 2022 11:10:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 229ECC34115; Thu, 30 Jun 2022 11:10:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656587441; bh=Ocbgb/7jtbPf5c7P3Qu4IS2stjMJzDoFkyyY73hHr2Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KwZCxI1QdcIf76JP3BhOMJdxLR4B6uWo/VApAlYCAbryYteKxpiJDv8mks3WPbn/t PN0nmyRcKqUNvQWLX0i4UeGSFYMJg/aJRPtIItPf5ZbGJFlTgo921PPtaBAkcMOfwS EAviKJu/LaVJQnqEAMkfWG8YsiYjdWOBiCPVkp3jUSN7a/BNoE2dxQcvi6boI8iEE1 kG+kDnIwIwvKk2KA7/GI7v7uXdSJUVryiLAvAUno8r+dGCAjnpQrQrIbdvT7znkem2 wtbsma0gtl/xN3EfCxjcGT59nTF9hSZ+cjUmMY3rJQ3yjQ16RK16uPcLGCXgC6hRkT fUVm+4Tup/Uiw== Date: Thu, 30 Jun 2022 12:10:35 +0100 From: Mark Brown To: Vijendar Mukunda Cc: alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com, Basavaraj.Hiregoudar@amd.com, Sunil-kumar.Dommati@amd.com, zhuning@everest-semi.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , open list Subject: Re: [PATCH 4/5] ASoC: amd: add Machine driver for Jadeite platform Message-ID: References: <20220630031755.1055413-1-Vijendar.Mukunda@amd.com> <20220630031755.1055413-5-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VaXjt56hsiVkurul" Content-Disposition: inline In-Reply-To: <20220630031755.1055413-5-Vijendar.Mukunda@amd.com> X-Cookie: Today is what happened to yesterday. X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VaXjt56hsiVkurul Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jun 30, 2022 at 08:47:54AM +0530, Vijendar Mukunda wrote: > +static int st_es8336_hw_params(struct snd_pcm_substream *substream, > + struct snd_pcm_hw_params *params) > +{ > + int ret = 0; > + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); > + struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); > + > + ret = snd_soc_dai_set_sysclk(codec_dai, 0, params_rate(params) * 256, SND_SOC_CLOCK_IN); > + if (ret < 0) { > + dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret); > + return ret; > + } > + return ret; > +} > +static const unsigned int st_channels[] = { > + DUAL_CHANNEL, > +}; > + > +static const unsigned int st_rates[] = { > + 48000, > +}; If the clock rate is fixed why not just set the sysclk once at startup too? --VaXjt56hsiVkurul Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmK9hKoACgkQJNaLcl1U h9D6iQf/cdNWEk90vyAVgMDGpqVrhhgGkycVyqRydGaLYCrCQXsnLdtPqtSpQCyB doEqq9MwQGoj/8uz5i/0althh56A2dV2L6k/81LuXbX685XrtdvosvEv9m37y+ru ZebtRcmQ668WOgeLYHmthArmVUwjPmUtcOkZ1K7dibKXWm7Elhv0kkXZLTM+UyQs MoFY3kjXWMu3vEm+ZTogS+YhilD8EE5Vl3pvGJKZ8NKJxDMrXQbNlO5XMkY+9IaR O1U0u8iVoirNM0GWyHbVCwqOPQCIbhqc2g89N1teq8Qs+1WTf8MRAfuo1gnGfbrg c0/bwEED3n4t0Rgqqhau7Dq1qPLViA== =9h7K -----END PGP SIGNATURE----- --VaXjt56hsiVkurul--