Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FA56C433E6 for ; Thu, 14 Jan 2021 13:51:39 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A323923A69 for ; Thu, 14 Jan 2021 13:51:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A323923A69 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id E72A916B9; Thu, 14 Jan 2021 14:50:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E72A916B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610632297; bh=DnFIJriu2NQJ3DPbFgi7Hv3d4fRixKoXDF2V4R9eYE4=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=p0/UiB/57v9ugVyScAGnaIX6uoqoa40QcmxzBN0857tUWgEV+FhY25I6ElV6IuMPm m51mgmpi2VymPmp7kgBzqLUVJdt0kjNQ990m6ny/GILuZOzm1dTBH9EHDiDU644MEr 629vU2l1eKoP3kS2r6lBHWTkPCoUmBSqJyA/1PZ0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8413BF80249; Thu, 14 Jan 2021 14:50:46 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A9E6F8025E; Thu, 14 Jan 2021 14:50:45 +0100 (CET) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2E3B0F80134 for ; Thu, 14 Jan 2021 14:50:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2E3B0F80134 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Egx5gGNY" Received: by mail.kernel.org (Postfix) with ESMTPSA id 26A4323A6A; Thu, 14 Jan 2021 13:50:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610632239; bh=DnFIJriu2NQJ3DPbFgi7Hv3d4fRixKoXDF2V4R9eYE4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Egx5gGNYW3DKyeR8qsMGJSttarAm72aEx3wtT/MTfk6fonlFd1OH1rzPDH59mNJS6 G5RYLP3pjh1CDTYEh9s22olfyugNqZ8sdwdWBU69v5iH/dgOh76r1zjZf94lTj15Yn RzixV3iRDitz6TTrRjCeXVQ3mutKXxXD7GosTKNt6ZleyWcuhOqAieVPelb1yTKadl jPrdOwbTfjUj4FTz3Cyy6i7ggh7otW4htp1Xw111QxazrMhpyWryHfT5wKltM7eayN NYm6axLN75dizIZBTEaNlKBHLxlTCv55stbZnX1FH4phhgzapt0jwKj52FmvVoJBc1 pkV/QanNKEwQQ== Date: Thu, 14 Jan 2021 13:50:06 +0000 From: Mark Brown To: Kuninori Morimoto Subject: Re: Question about daifmt of legacy DT on simple-card Message-ID: <20210114135006.GE4854@sirena.org.uk> References: <87bldsp2yt.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FN+gV9K+162wdwwF" Content-Disposition: inline In-Reply-To: <87bldsp2yt.wl-kuninori.morimoto.gx@renesas.com> X-Cookie: You have taken yourself too seriously. User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Linux-ALSA , Jyri Sarha X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" --FN+gV9K+162wdwwF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 14, 2021 at 01:24:04PM +0900, Kuninori Morimoto wrote: > It rollbacks to legacy DT parsing at (B) if (A) didn't have > master settings. > Here, (B) re-try to get daifmt, and use "or" with (daifmt & ~CLOCK mask). > Why CLOCK mask ? and shouldn't it use mask when "or" ? > Otherwise FORMAT and INV part will be duplicated, I think. > for example > daifmt = (snd_soc_of_parse_daifmt() & SND_SOC_DAIFMT_CLOCK_MASK) | > (daifmt & ~SND_SOC_DAIFMT_CLOCK_MASK) > I think using snd_soc_of_parse_daifmt() only is very enough at (B), > but am I misunderstanding ?? I have to confess I'm not entirely clear on what the intent is behind the code; we can work out what it *does* but looking at it again I'd be hard pressed to say what the actual intent is. At the very least it needs more comments :/ --FN+gV9K+162wdwwF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmAATA0ACgkQJNaLcl1U h9CPmAf/S3lfGWBR/QjX9kezwVelTeGm5S8Dy21xFceYinrpPXowArkFpxaJuMSs HGO4NHAc6OSL0Aj+o37QvoQpyv9ENCj0fQ8HIoOAvEBy/TKE0CHpPmScwB4q7Lok JuDIcbJ+Q8QDWOP65++JXXxulz+MJg5tz5ft09zKUSGFB0GWyxNFOhz+GioaUoW8 MwtuqAloM+/aYY/T1T00gXW/eq+lwbxXMUrqiYwTRkJEld1UyOAYVhEY6yXvhEHB 4addEmfY7zYwzS/6U7awGyVPDC1IbWQQb8JWuepqhYIpMKLpPtPpg0MP6RIfUC/+ 51QORv5SyrcbLuQuqkVZ3xXs3eArcg== =BRwt -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF--