Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2125391rwd; Fri, 2 Jun 2023 05:21:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CYfDxc/AtckN83iEwXwNtVNlzNhWXFPX9Zn7kVfH7PHkyo3OFdFNpBgQ2WaQcDrZuQUZw X-Received: by 2002:a05:6a20:4387:b0:10c:c407:92e5 with SMTP id i7-20020a056a20438700b0010cc40792e5mr12265625pzl.22.1685708474568; Fri, 02 Jun 2023 05:21:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685708474; cv=none; d=google.com; s=arc-20160816; b=0OrWcEdKjuBZXB4ljZWjSYlAQduEr6MSWLFvQmx7zPgo/wiIl1yNaotiwhMw9ENp8o WLf9RwMUNg/jPZfim1bYbG4LJKFY+6eR2rP65m6GmGKzwNPIbPGNt0Ofp/E43cunF1mt 4EqF6QlCOdHrOnLRcbK/hBY3mc1x7jrG1k5NrFSGpPpUwMjcM36wLfrqkH6Hz8GmvrnJ JsF0F/7ta4Aoo/wC8Emb4G47rsPiuZnz2+9HPkFFPBte/58vudNH2GKV+43WxMUye9zx j1X3PdbECGIeeqrUN2v5mxAdDS3WIRl/rPwmDkDpuY5EgaQOaTRaUHB2Duk/8esWHgXW lkfQ== 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=4p4YzaNabrFXQpYNn8dp7xhx/l+rlqI9TLluZ17E1QI=; b=aaTs5i/l5txOtcvf4ywV+NFHcNMnsG9WIKSLinrM6HV1rudnyhJkmQsJdDVbS2VI2D BPA1NwAffOfJDW+WwfSkkxbZ4OpLD2vErUgaaJDJNwaK7kL/W8sFMPgJxzsMSaPk3kD2 Xwxp18GYEbGokMqQ/xgDOFM3nPSINuSGywbvgpGU57uu8cDbTyBHAjy3W0mjtAskCGF/ z66Jk53lGXRwfHdi5COxcpcObFtDkM/vdvb+ve2Jl+FWgg2d/91NMeFYVv0cl8tjDVnZ iEm5jEqSC1O240n0PgHLXX2dZnGjJeDv67BV4jkGjQ9R6XLzlBt+/aeLf66QPC7Exi4J s33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=al0vYMzs; 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 g129-20020a636b87000000b0053b8f80c65esi908896pgc.730.2023.06.02.05.20.59; Fri, 02 Jun 2023 05:21:14 -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=al0vYMzs; 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 S235760AbjFBMU1 (ORCPT + 99 others); Fri, 2 Jun 2023 08:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235306AbjFBMUZ (ORCPT ); Fri, 2 Jun 2023 08:20:25 -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 2F5DCE6E; Fri, 2 Jun 2023 05:19:57 -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 B14D564FCC; Fri, 2 Jun 2023 12:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96100C433D2; Fri, 2 Jun 2023 12:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685708354; bh=v1yv6jsgbmHl+5NaoACfNaefQuLeoFE1uwpGD8SeaIs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=al0vYMzs78qApmR2nyyVBNzdSuWQh0Ug+iqj0oX5yM4zClF2iv8KLNBh4sC6OgclM /3V+58WCgUImIh2y6B5Ohc9ZwBL2Y/wvaQbIdVnI25kpHYhnVEOUeJlb0wcRjNlaAl ohVAn01nQN9GWX1k4dK9xh22RrBx0tOm5DPaUQk8g29E4ZavfVQtCmGwgENhzIwP9n iTLh+oA37gfB1tpSr7wIgigy1QTx32++LuofsLrwvK+60i0LCsubykSMGFc5RDykQz zBOyFWsNcIzuXOMW+L3KKwCpXNYI8dy23TzX28Y77a/Hli95kfTPV+7IgQwoL9Gp/c m5cxwIyPMqj/g== Date: Fri, 2 Jun 2023 13:19:08 +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: <91b6d02a-25d5-4835-942e-3f8072bd8897@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eKLqXSuhsjfwfQXk" Content-Disposition: inline In-Reply-To: <7csvw25vhyal2jsznb3jykuijxqpk7bzyguxvl7cyitosgga2w@pxmkce22cm3d> X-Cookie: War is an equal opportunity destroyer. X-Spam-Status: No, score=-4.6 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 --eKLqXSuhsjfwfQXk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2023 at 12:12:52PM +0000, Alvin =C5=A0ipraga wrote: > On Fri, Jun 02, 2023 at 12:43:51PM +0100, Mark Brown wrote: > > Why would we have a property for this and not just describe whatever the > > actual clocking arrangement is? > Sure - let me just elaborate on my thinking and maybe you can help me wit= h a > better approach: > The clocking arrangement is encoded in the dai_fmt field of snd_soc_dai_l= ink, > but this is a single value that describes the format on both ends. The cu= rrent > behaviour of ASoC is to flip the clock roles encoded in dai_fmt when appl= ying it > to the CPU side of the link. > Looking from a DT perspective, if I do not specify e.g. bitclock-master on > either side of the link, then the dai_fmt will describe the codec as a bi= tclock > consumer and (after flipping) the CPU as a provider. That's the default > implication of the DT bindings and I can't break compatibility there. None of this addresses my question. To repeat why would we not just describe the actual clocking arrangement here - this property does not specify where the clock actually comes from at all, we're still going to need additional information for that and if we've described that clock then we already know it's there without having to specify any more properties. > The other issue is that for the simple-card the DAI format is only parsed= in one > place and applied to the whole link. Are you proposing that it be modifie= d to > explicitly try and parse both ends in order to determine if both sides wa= nt to > be clock consumers? In that case I'd have to also introduce bitclock-cons= umer > and frameclock-consumer properties to mirror the existing bitclock-master= and > frameclock-master properties, as an explicit absence of the *-master prop= erty on > both sides would have to default to the original ASoC behaviour described= above. If simple-card can't be made to work that's fine, it's deprecated anyway. --eKLqXSuhsjfwfQXk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmR53jsACgkQJNaLcl1U h9AqQgf+Jtc2Ihjbp82B3yzWnRCVZupKiJ+T2iC3qd0hfq3+jWz+RFnFHdNMk1Zw iXOOvYCFENv9fZ3QnfkSGDXxEFfoPxPMaHZw3TgCWz3SjjotWePvHqRbEsvEOYFk IB9Qp1phuf/2LLkB7wowMhaPjieW0MM2ju5LtpR8Ghf/f1Uq2GsI5cyHqme/9vd0 0q4Ti4HqvkAcrxIFsxp/PAY2z16ZKqPWLfErn3eFXsMpncYxyPu3Uzp51WFEdoTJ BhbptiaicarUbEua7PiWAWEMo5p9lfUavssHcAbShWxI0rGof7/3PwlzKdlmjbv1 2Xc68INUB1l4EBgnVbZtFeX8YqFScw== =FVEu -----END PGP SIGNATURE----- --eKLqXSuhsjfwfQXk--