Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp499572pxf; Thu, 11 Mar 2021 08:18:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzV6aYPdmj1r0lj9fZCfJQMkDdVaFOcnRmWpSoTiIKDAkU43JgyLruCGLqjPe4m4W/3wCUM X-Received: by 2002:aa7:d9c8:: with SMTP id v8mr9135677eds.9.1615479532313; Thu, 11 Mar 2021 08:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615479532; cv=none; d=google.com; s=arc-20160816; b=bEMlYDcGZjYku1zalQyqJP/YBVL+DIxkzmRADSFgrCdyPol8R+CdSJKwyE7ffsDH9a Zy12gnNXWvh+lu65V1PHgbfKx5pcZg0bIf/RHiJrWYEi9HYbw4pc2I/L3KbCCubRQp6I Nxc67yYnZ0p4orBuvuyYHvvrauALcTXy7gp2Uhczslr3/mwgEfjR9X9w8T2a0K498D1O pbc9yMLrHShdyrjxqWwumG54IBo1l3OhV6j6s6uE4FDF4um7VOrfW/5kV4ro+Cxnc5RR 1GaM6VKqS9HwifNlItw5YTezFm56WofN5NC6pIZQ8jL+12RPG5WrfZEgItKi3JGJ4EIG OkxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7QwtUIXwI4hwUxop30jeHfgAf8XVyD41FX0zhZ/c1Ck=; b=o8yPFLZDApWBFPU1XbJsqgh2RiB2hyGHzjOU2M3AuvsCYF/++FHHzYq+Eioh+9JZQK PmbBFwNqARKL1Ab6hRVn6cjEaWPp1Mxg3aA33XClKXGrm3I6wAs1MfhqfyDhFj/T1ZVO Yolh5lbIuLYAwJivGVVbUGdrGGr0DHbi593Vb6Nr9JJjfStGTyZU6xi7/zZMK9XNGpIt b9uMX5sNQAKvvkkM5agcC351obR46dQymknwGap6g2M0G/gNpo5xVL/xvQm+96thJ7No qv6rMiWZgp5pl7dNlZdjH5K81amVoyT802fQ9xgWvttf6cIQaet6NMzLQ+N/uOmNe2t9 BTrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RyuJ62MV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si1882321ejk.585.2021.03.11.08.18.29; Thu, 11 Mar 2021 08:18:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RyuJ62MV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234465AbhCKQRQ (ORCPT + 99 others); Thu, 11 Mar 2021 11:17:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:51800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234527AbhCKQRN (ORCPT ); Thu, 11 Mar 2021 11:17:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id DCD8464F88; Thu, 11 Mar 2021 16:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615479432; bh=tC8xQLvl0ED5iaAOUU3NWeADhke0KZJuMgdD9l7TFWA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RyuJ62MV0j1/0koV3tq8MZh+/x1RDJHUX5qSrZ3paxvAockMHvG17rC8qJac4MdSf sHjsYIzxL9OLh0PxPjAaWR59N2TlKSdwzPDYcFN/PIrCOxPJ1Kg4hn4kpogdt23424 7fYazPCBxabTn60iy1PugT4Y81/xcWpa8tySmBCpMPyACfFXtg8I9dYITP4zcgVR1v xCS5xx73GHuHAf8z11KTd1NiFz5+tksiIeZTJ5ce74kJntcxiJJu8LL87Jd7wMuOYK E1XQe3JZQXwXi6u0TyBhVZzfePlBs7lF2b2B8LZhOh43QTbgnL1VbK4fi3FFU2ApBA DycL7AFAZDTxQ== Date: Thu, 11 Mar 2021 16:15:58 +0000 From: Mark Brown To: Sameer Pujar Cc: Michael Walle , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, jonathanh@nvidia.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, robh@kernel.org, sharadg@nvidia.com, thierry.reding@gmail.com Subject: Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock Message-ID: <20210311161558.GG4962@sirena.org.uk> References: <1612939421-19900-2-git-send-email-spujar@nvidia.com> <20210309144156.18887-1-michael@walle.cc> <611ed3362dee3b3b7c7a80edfe763fd0@walle.cc> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eMnpOGXCMazMAbfp" Content-Disposition: inline In-Reply-To: X-Cookie: I'm rated PG-34!! User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --eMnpOGXCMazMAbfp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 10, 2021 at 08:20:28PM +0530, Sameer Pujar wrote: > If I read this correctly below is the configuration you need, > SoC -> MCLK(fixed rate) -> PLL(wm8904) -> PLL output (256 * fs) -> sysclk For this device for integration with something like simple-audio-card since there's limited flexibility within the device the simplest thing would be to not make the internal clocking of the device visible and just have it figure out how to use the input clock, using the MCLK directly if possible otherwise using the FLL to generate a suitable clock. The trick is figuring out if it's best to vary the input clock or to use the FLL to adapt a fixed input clock, and of course adapting any existing users if things get changed. --eMnpOGXCMazMAbfp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBKQj4ACgkQJNaLcl1U h9Bm7Qf/VJ91STTM9RrXZ6oXyjy90lybK+uguct6tIBOH/cCBlf2qGxlWOIaKw2w ybRwqTEJm5fKKRDMqvUBk7y7O3VF9onjg5x8N/+FcbPgrK2hEuzBJQlzEn47GEpK wangKZc80y5Sz7jPi5yK2dRyMfClSIyv78y5rFHcetDHH2+xLFz7com+SEczQeyx gBNaIJ7xyQb6/KUQQLPO21wTy4rzFpurRatmPJTVlUM1qREmptX8SB5lRFXIb8yJ gYp353sgoWIwm71bhZl2xtBuNyZJg7w4TnvPIaEBPi/cjaQvSUohaDJXui1tFITq JF2ZCpVivFlMaIgQNfKfH+lSv5Feag== =OLq0 -----END PGP SIGNATURE----- --eMnpOGXCMazMAbfp--