Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7288548rwd; Tue, 6 Jun 2023 08:41:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PrVLGDrtDZ2knpbSr+3SNL1uHHssj2wA+cCgEbbYYfmYrR+MPbIifC7p6JfOIOlfVcRsL X-Received: by 2002:a05:622a:1346:b0:3f6:a3d3:a518 with SMTP id w6-20020a05622a134600b003f6a3d3a518mr2725551qtk.44.1686066095846; Tue, 06 Jun 2023 08:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686066095; cv=none; d=google.com; s=arc-20160816; b=w7BpL606Dvsv0ZXfEZURiOiFwNeJEZYCDdIlYjs9LBIscu+nSP/qTLBOPysiZezPOJ 4isdRFmTbsK1zOsnEce0qmC4g5+iD4CG/ERdZb6HX1XBRlyCrx+9i0ZNZoa1tDxKUuhr QXYwX2bFEAa10j80f450w5fZULHPM3iMfn7+TONTXJ490YPkwj1k/VRC7Y4XBKUhxRhl imKW+CFWIqMwj8WZKeyVbQhpuBZzQiGNsA9B5J2Mnc6cgTvsQqaIZiqNYaeUP/U6bOdz 8f/ukvN3pczNpdpaT1D++hWvk4HrBSCqydij3O9y624Lx7yuNTHEbgOuPRtJtKMhTdbB 1kbw== 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=jV79KBTf09snI307FDn7GImXhJUdtnOioxK1jFHD4Sc=; b=0SlXlLmiQh9vK78hY9wucBoens5OmuhRuMUxvovZAFGPRCOvr59fdgflot0F2KnBny CWOcZa79eeugjaxeoEfTBT1yv33auAS6cFZ0Nqhi1PlaO+kGMi5BrphSN2OnbWfqD9T6 XSuIztMCPPlEN5JKME1dCAV7xstG6H5xNp25VVvXVLwSU6A5vRjlhbT0TuLdzD9t1ryV fu5/nLXUvXIpliuzGDOCby5C2Qr1Q0nwqOO8cyZljUeocjVtkZ+81Snm40x648XAGAAB /NddMjVeBlZNZlynocmS2z2vL6I7h+gvK31VsDw0kq6O697VWB4cviA75ptOhfHA2WVo CAsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h9bki2II; 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 e4-20020a0562140d8400b006210472fb87si6505651qve.256.2023.06.06.08.41.20; Tue, 06 Jun 2023 08:41:35 -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=h9bki2II; 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 S238387AbjFFOnL (ORCPT + 99 others); Tue, 6 Jun 2023 10:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238379AbjFFOm6 (ORCPT ); Tue, 6 Jun 2023 10:42:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C2530CB; Tue, 6 Jun 2023 07:41:02 -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 9FF2861261; Tue, 6 Jun 2023 14:40:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 749F4C433D2; Tue, 6 Jun 2023 14:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686062405; bh=ghbtpfgzEXDZlStE43dHNyo9glR2yfvAKES2S5iqao0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h9bki2IIyHiObYwlt0XmTTgUGm8+InDcRMFw+o9s5a89DTT5WIBZFbGXQBjF2yGjr dUfmvE1sb5uGpA9/T+SZji32Q9ia4LFIrIiX1iLyMdVMtLK3tOL/B3DqGzWKI8nEr4 ABFEy56A3uRC3y9xb0KUyOBtuxFH+K0ZI+2JL4sptX/J8sqviCqB1xTeR0o/kgDord tA+jZBs1UZgpOjeTEwP44O+9CrEpxUSQ+nVE2bi5+oe9pifrnVJsEeSkAZ5Ef40GJU dB+JysfYjL/5rR+DIUyFi2USlyfiZrvu+i8Ypfk85+3d9EZEWenb2kNvViqPkV5QGB FGuJhiyyW69TQ== Date: Tue, 6 Jun 2023 15:39:59 +0100 From: Mark Brown To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Alvin =?utf-8?Q?=C5=A0ipraga?= , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , "alsa-devel@alsa-project.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] ASoC: dt-bindings: document new symmetric-clock-role flag Message-ID: <9ea5a0be-606e-4c65-914f-c249d3f1b513@sirena.org.uk> References: <20230602090322.1876359-1-alvin@pqrs.dk> <20230602090322.1876359-2-alvin@pqrs.dk> <3fe93662-82b0-4834-b6c3-473669c66210@sirena.org.uk> <7csvw25vhyal2jsznb3jykuijxqpk7bzyguxvl7cyitosgga2w@pxmkce22cm3d> <91b6d02a-25d5-4835-942e-3f8072bd8897@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GvMNWsvRI2cx5zFa" Content-Disposition: inline In-Reply-To: X-Cookie: Keep out of the sunlight. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --GvMNWsvRI2cx5zFa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2023 at 12:42:49PM +0000, Alvin =C5=A0ipraga wrote: > Yes I see what you mean. On my platform the clock source is actually desc= ribed > by the common clock framework, so I would want to use that. If it were a > component driver then it would most likely be a codec that is part of the > dai-link anyway. So what about having two struct clk pointers in struct > snd_soc_dai? >=20 > struct snd_soc_dai { > /* ... */ > struct clk *bitclock_provider; > struct clk *frameclock_provider; > /* ... */ > }; > If non-NULL I could then have the ASoC core enable/disable the clocks on = demand? > I would say in hw_params/hw_free, albeit that runs after set_fmt. hw_params() can be called repeatedly so that's not a good fit but broadly yes. > Having said that, I see ASoC doesn't really use the CCF much... am I way = off? Ideally we'd be representing more of the clocking via the clock framework but at present yes. > I don't think it's feasible to modify every component driver to explicitly > handle this and then ignore any CBP_CFP bits set in its call to set_fmt -= this > is why I want help from the ASoC core. Sure, but that's not going to impact the DT bindings. All these things are driven from the machine driver. > > If simple-card can't be made to work that's fine, it's deprecated > > anyway. > Ah OK, I didn't know that. Right now I'm using graph-card2, that's not > deprecated, right? Yes, audio-graph-card replaces simple-card. --GvMNWsvRI2cx5zFa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmR/RT4ACgkQJNaLcl1U h9AOGAf9EegtL3c4zrX74J8pQRZd4hNb4Sdz7YOKInPb59JgB7ox9bswVlvLt+d4 BrkL3O10PUppYenoCq91zVnJV7QCXrJNwmt2PxxoAEm2QODPTgDGYF7qqIYVFqqZ DFeRW8iIXBl5H5pzm3ubN1JnnUBTBoN1HklWggVlPm6QDVMJlPa5DtmGtgXfICin bF7AZl/jmdRkl419mnCVn8IqnbxtxBkMdOfll8Mhl5m37708v/GBSJuu9NuMucYT qqPl8DAzGmFux4oQWugYZJo8xsjaHNOLbb+i3Lv1tXeW24BrM/G/o2tzXNs5NGl5 RecfVJxwWf7elqqloUovb6ii2Be/HA== =EUDa -----END PGP SIGNATURE----- --GvMNWsvRI2cx5zFa--