Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp806570rdb; Fri, 1 Sep 2023 05:02:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXVyG65BwNBogYbkD+XH2cgrvnFXIQ3+ys2SsVKD4CYApiVrOpnePe7Zn5N1oPQjjhafOb X-Received: by 2002:a17:902:9893:b0:1c0:6dcd:453d with SMTP id s19-20020a170902989300b001c06dcd453dmr2322327plp.20.1693569745844; Fri, 01 Sep 2023 05:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693569745; cv=none; d=google.com; s=arc-20160816; b=YX5VwGKKkAPMISjgExc9SA90rx3fhgOqmHFnj0mQ3zicvGRF5gbFss+MRFBY0yYB5r KBGrcMeiSNsxzyPOFscoGN6g7GQrLTPp+BRAbsraQ0Vlj63SEgKJHUyZnRRYmcIAT5fq u3igcwvdgS4ERwOL1Dg9LPZnCvZ8YDtKrQYvDq5dneUBVsNI55FxUSx2S6EfNV1Iz8m5 SQxYpIbLw089oAxSGoD0c3imfOABb+un/SNN/+kaivwVG+dDxccpqCWYdgHWUfEgmukm E6NwBwx6Q0aeOsoY68+PoyAXDglwqR9LJNwpOXE7c8+NcaOxPxseupdmYFz1oYKf+gHK E+xA== 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=nXWcobST5xvZcG1UeeKu5sV7yE2+CygPSMmrLOFEf0M=; fh=t+DkDWwR6RQq2qlfHHJok1/672czSSX7t4OGcoz10N8=; b=TtzOBO08EE5hGUfe8DLdzUUt31Cov/jkjSjVsSEbGb3F149XWDNkqAb3tz+dCFLcVT PADGysXZ8v3paDeO+iyszCja8ggyXGhvo+9W7NY/PJvZZBviOtZJeUODagjl/UKvj7bw fEGDR7WFBmP/DhLwvEyGu9e+RSmVviWjnc7YmOttHpffaJPDN1XI5vkp9dkicpHjwoqr /RSPifb655YDzQaFQEeW9rVYmAPHE/g6rMHDWKR9QLvAvVa+/SetMKCugH2dNboLD8PX j1qfKh9u2Mv2iogmaqYQWzPxkpWITx7xHnnqknR4iOPhbsxtgq0CpULMQW4SLXlG4SGk n+XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fs4kR/bS"; 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 kx3-20020a170902f94300b001bc17ab8d6esi2666132plb.530.2023.09.01.05.02.20; Fri, 01 Sep 2023 05:02:25 -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="Fs4kR/bS"; 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 S1345202AbjHaMY5 (ORCPT + 29 others); Thu, 31 Aug 2023 08:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjHaMY4 (ORCPT ); Thu, 31 Aug 2023 08:24:56 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAEEA1A4; Thu, 31 Aug 2023 05:24:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id A1C2ACE20DB; Thu, 31 Aug 2023 12:24:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF801C433C9; Thu, 31 Aug 2023 12:24:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693484689; bh=nXWcobST5xvZcG1UeeKu5sV7yE2+CygPSMmrLOFEf0M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fs4kR/bSqpjFjNJTJAWL64045RYFRG42iIS580k8R3taCUkllCPBectpxgvkgmDrq q+kNnLogNk65FY+JkDL79buGJga9h42YQdq8IVF/43x2EWQvKsz31BzE++C2+/xZAP zHkASNL3KxS7VJR7XIkcBalnDuCnq8A+qKLP1hh67KTc0B6iImTFPz8dBReoseG2Eg h6v2M96nxJiAuxEpWn3KC5k1cDU26W+ncF+3VI+DN6VlCjMfokCXRkcEDjTCuBe8aS SdATOOW67qPqB25TY8LlKww7ld60C+dOXtW+oBW3opY9/NA2gF5CxVhWkIsn/HqFfz 4MJAM/teGorxg== Date: Thu, 31 Aug 2023 13:24:44 +0100 From: Mark Brown To: John Watts Cc: alsa-devel@alsa-project.org, Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Jaroslav Kysela , Takashi Iwai , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/7] sun4i-i2s: Support channel remapping Message-ID: References: <20230811201406.4096210-1-contact@jookia.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DeugAER/HXv/4y4M" Content-Disposition: inline In-Reply-To: <20230811201406.4096210-1-contact@jookia.org> X-Cookie: Give him an evasive answer. X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 --DeugAER/HXv/4y4M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Aug 12, 2023 at 06:13:59AM +1000, John Watts wrote: > First, I split up channel-dins and channel-slots. This is mainly > because I implemented one first but both of them only make sense > together. The registers themselves use a format of a byte per > channel with the upper nibble being the din and the lower being > the slot. Perhaps this is a better format to copy? I think this is fine. > Third, channel-slots is available on all sun4i-i2s controllers, > but I only have it implemented on the R329 variant for now when > there are multiple din pins. > I could add support for this on older controllers but there's not > really a use case for manual configuration as there's no DIN > and I don't have hardware to test it on. It's fine to leave this for someone who cares about that hardware to implement, might be nice to add a warning if the properties are set but not supported but it's not essential. > Fourth, I don't limit the readable channels to the channels > listed. Reading more channels than you have currently results in > the controller assuming you want to use TDM, but that's not the > case here and you can have strange duplicate channels show up. It would be better to have constraints which prevent userspace doing the wrong thing here. > Fifth, it might be a good idea to increase the maximum channels > from 8 to 16, especially if people are going to be running > multiple TDM streams on one controller. If there's no reason not to... --DeugAER/HXv/4y4M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTwhowACgkQJNaLcl1U h9CjTAf9Eb9zBoEzAuUZtcuChIs4gYOvUP+KJHWZQvgZ7KMKd9UsThI0n7CTASTY yvJjmMWvrFRTRoW1aGyk4Vc+bBYNX+fVBlmwxcqrQtNda7MSGKlIpf/FNpGOOZEz h5OjmgfIsLqH0KWJKkWrdQK581QDxGXtVGaJ/gzKtKmhsKyVyGsVHYRe4mc1kn47 dabSfrqQV1S1B3U6HhtVsZ4eF3kvxfiGkaGgyjr1Kwij5xkoAYW+HrYJf3N/lO5P kCl1OMYD/9HGpIZneXwp+765K5ja28fM/nXtlbwrBIyN7BlNuFXoKo1rVqWXmpQc 9x/1s+zCXiDfKj9iX3gpEt4IrHmg1Q== =CYGX -----END PGP SIGNATURE----- --DeugAER/HXv/4y4M--