Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp842049lqb; Fri, 15 Mar 2024 07:56:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGs/aLf1Q0x9L+h4Q6ZOwMl6N8NxRbHzyk1kRxlg79KOr4vmSLoi9Z49GPBhhmvax/WFAfRtw2xbzDjblSQdyPflOpfZDqnSfSoS9Pog== X-Google-Smtp-Source: AGHT+IGbMbBNZpc3VeQXODhchPTDmCMmqdyl+xfjGCjsTzSUhbp6tNeRz3KW0Ux7lar6hQ/wacRa X-Received: by 2002:a17:903:25c2:b0:1dd:d88f:c79b with SMTP id jc2-20020a17090325c200b001ddd88fc79bmr2971045plb.49.1710514584062; Fri, 15 Mar 2024 07:56:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710514584; cv=pass; d=google.com; s=arc-20160816; b=w7BSNTVo6f/vStu0ksUA0nksHnTe3YN1xi5Poo9S5QzPI/rmVdyhIWzUihRBudsW/Q +LtIdv7/E+xCCO0d/gPFFsuLYSQm1pA1XmbEbZPB4ID+MAhQyzzqZCDyn+HibtXCwMVm NV6Vh0rqWyYzr7rEWy+sh6dHIFZiEQj34epwrsMFRw04Qhwdb6poxldObkxP2WPjRubK rZ4lyA8RCnumxgfL3XQgNrrMj/HQH+U0CSSmfKS1+jt650z2eM6amtw1PIh79yKqOSXy KUQBfSLH0lCcaaBzxjJ5GJ9e1oVjG5oGGpjwgq8GTJqgeeZ3CEaY9Za4lhWQo2e1YiM+ wktA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6jUiIXqlZO3yzsrc5WKQt+fGJc05xz3C84EgJ5yXeJA=; fh=jNpGB33eYfEi+jlZhoYBYCMhJKMTSVDYwke4GSIMu8A=; b=kI/mjHtLKmA6KviEcw8dXalEIKhTBQnvb6hSrbNMdd/6622QU5pZGVKPa5yx9kaCBb WNBU8dwcQWcRxs8jyAa/xdf6xqEQ7L1+ZkCK4VNvvB3+sBvtVHX4ab4WViThnow1x0lx CUNt2nAd+mtU7rxH63o7zworWTLv5zbikRM3JzsOGUWmR2lu4EK1dKfBew/BG9GjuCTL OY8ugoMrjE4ztyxl55WDg5D0x1V6z4RsM93VJMpMrb/nGgm8yWP1LPcZyR1eiJf0PpaF 3H0nKZ52PXLsorVOqFdHG85X0gIXGqmtl6Vw7fZVPDaH55Ruj16ECnrESF0K3j6ZcbCq vkAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oJf9ywlx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id q12-20020a17090311cc00b001dd63fe7f59si3655104plh.35.2024.03.15.07.56.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 07:56:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oJf9ywlx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104544-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CD30CB21305 for ; Fri, 15 Mar 2024 14:55:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EF83C6A3; Fri, 15 Mar 2024 14:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oJf9ywlx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4F9E3B783; Fri, 15 Mar 2024 14:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514496; cv=none; b=Uj5qw8fRyTJpqxaOMm9fSB84N7tqHdTtbI2N3rgv8zpmoWNE/dlcwGAY1Fa1BHR4gPu2ePYzPfRp6EONvyAh6iePOs4FDXUIHMH7X/kQ5YIO6psWJBNWA9EQPapf38jMeuOJ+clHdylfA28BD2XwOISO9aoEUv7jQQ7NCK0UKVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710514496; c=relaxed/simple; bh=wpqIUwnNLWbIy1Zvw8blSo1JlKbndzcJuNOieCu2HqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RZPpKcoXkomC+KNeRK1beGoMs8rMLbWfB9gozUVer5ElgTKnl4MxdVRAX9vW4Brlr5uvxry/WNx0iTP89+RTc4PbdxLvRw2gyC31CzdQeKcOLpHOFjPQQFW5Hwe91GknNt9oD3+xfhNLLvHX1Yt96yEx2tJcoEe5pnEPFHAQgB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oJf9ywlx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4979C433F1; Fri, 15 Mar 2024 14:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710514496; bh=wpqIUwnNLWbIy1Zvw8blSo1JlKbndzcJuNOieCu2HqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oJf9ywlxeebUGm5lGowLDQIprnpa21rM3k9zG//vZtyYRSfB12aid3EbbaKNikdWU suAfBiOrvPAUV5fJUGyOYhuTW2JvvaxXO2GQ77MheCnaDoT2ma0zyXXObXaql4jmsb Tqip77HGMgvF1isYlmA/yPck4M0NyBZ6ZsWp2FpleUs4B4QxlxC6eAQn5672rThdEn fjy7KIEzadIzf+GtGeelzqslmpmgbTIl8gBsohHeEsCtkI+AWLxc/0PzE0ryShaSVH LLgRjlyZKxusS0VD5yXJcu5E0iGvfPFw09Y1jpnI0BeT7jN/vQ4WheUxLvSOVU0C/R ngIYI8uCVlwTw== Date: Fri, 15 Mar 2024 14:54:51 +0000 From: Mark Brown To: Bastien Curutchet Cc: Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Ujfalusi , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Thomas Petazzoni , herve.codina@bootlin.com, christophercordahi@nanometrics.ca Subject: Re: [PATCH 09/13] ASoC: ti: davinci-i2s: Enable unexpected frame pulses detection Message-ID: <9b3091e7-53ea-46f8-9dbc-a3896e920a97@sirena.org.uk> References: <20240315112745.63230-1-bastien.curutchet@bootlin.com> <20240315112745.63230-10-bastien.curutchet@bootlin.com> <51866f62-460d-4035-bcf1-b9f03cf9be0b@sirena.org.uk> <13faa6c8-ad4f-4f81-935a-5ea74621d373@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2KhnnhvxjBoPFAUT" Content-Disposition: inline In-Reply-To: <13faa6c8-ad4f-4f81-935a-5ea74621d373@bootlin.com> X-Cookie: A well-known friend is a treasure. --2KhnnhvxjBoPFAUT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 15, 2024 at 03:45:24PM +0100, Bastien Curutchet wrote: > On 3/15/24 15:09, Mark Brown wrote: > > On Fri, Mar 15, 2024 at 12:27:41PM +0100, Bastien Curutchet wrote: > > > McBSP can generate an SYNCERR when unexpected frame pulses are > > > detected. The driver always disables this feature and ignore the > > > unexpected frame pulses. > > What does "unexpected" mean? > Unexpected frame sync pulse is defined in datasheet as a sync pulse that > occurs bit clocks earlier than the last transmitted bit of the previous > frame. The can be configured through registers. > > > Enable the generation of SYNCERR by the McBSP according to the > > > 'ti,enable-sync-err' device-tree property. > > Why would this be optional, and how is this reported - I'm not seeing > > any interrupt handling updates? > It is possible to deliberately ignore them and that is what is done today in > the driver. > This is reported as a status bit in a register. An interrupt can indeed be > generated from this but I'm not using it (now at least). > I use the fact that McBSP automatically drops previous element and starts a > new reception when an unexpected frame pulse occurs. That sounds like a very standard behaviour for incorrect clocking. I don't think this needs configuration at all, just enable this mode. --2KhnnhvxjBoPFAUT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmX0YToACgkQJNaLcl1U h9DXzQf/SiZqlmZT6xmjS1bCVvJ6Goxl8aWHFYwkoXqqlqIa3nAeHYUUyXV05kI3 Q9wNkk5YWPwDi4hHCkO8/XTvDtnobNBT51YqIWsgLquWdHyHehjGdvhqMkxN/eGi vJ2v+789u9CPM5hry0dMXgBTxlDG5G1b5GWoGe7rjYEdoCDDTNJo56JRpCk3T/GX g001ZFQgk2tZUyaGgBEjF1cFzWY2WocYH5l5nhhALRHQ+H0zP75++neQ19ydZkC0 Y4R+CzYDoWn/jvgrf5ng/n+o66WW97stC12kMTjiodnTpaCWSF7Bk+qk1WqLoWAJ uu2o1O7QEGyyJWz+4GuiRyuMupFGbw== =aZq6 -----END PGP SIGNATURE----- --2KhnnhvxjBoPFAUT--