Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3778312imm; Mon, 30 Jul 2018 03:23:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexIfHkai3/Wgeec5g44HvnvVpqHD5LLZ9dDmwVkFfkIn/tIsMUVPxfYUPlTflI22os/1Ss X-Received: by 2002:a62:ce0b:: with SMTP id y11-v6mr17466385pfg.95.1532946199590; Mon, 30 Jul 2018 03:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532946199; cv=none; d=google.com; s=arc-20160816; b=q2+uBzCPHwdCuwJG63BRL7AgfHfN9SnMxWnTemLdVi0DtNyf8sPruWnsbJGReFrekZ h2xBOah0gVVcFbacacVdtao/RNg0zUDkkNuN34L5dzvnPZuFn55yC5ntNcRLwoDrhOzk kIH98HQ0J7lC0XGNfYHM/at8EWqfOYtoq8O/SHFDHrx4BtS0Fu5LXi3a5BodROOkCrpR fNhbnt39BE/Fkwtz/NOZIR87935lt/n5rGCy8lvtiAnZyia4u/TWbZfAXVDAYhukCuA/ EbORhFmBBO/KqI6F3UiP2+6WyYhbFPrW2qhEp5bBM6JynGejaTjkPo6/2JYacUkbltFG 5vbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jDTTyW2KUl6ulW67CVRcrexsvc5Sg/CrnTnoSP+kCGM=; b=dwbPLHn0GgZaKobhTKOcnu+EE2jy1qmZUQ2TfhvgdV/6N4RTFPaOECrZBqugFtwbBZ PKAgvsV/63vnRjBov0E64F7qQHPh14QttOSFjSkK5E5Dt9xEEo7ln3Cltj4ZFQaJda3F 1aJ7ZN9wohN0GHP/7X8t9EkSc9PW2rJzTvEMvV5o0iM2O4c00ZC+4t7DjgQbcJ+vXyAU ZJYcrMrC0/6LbacTwjBDlR+tY5wTlAAvi0wEzCY11XqfGXHN1/YqTrJK7aEhh6F++uqN kK9jQwugHaC5wlwB6+nB7N0cqe5vFXqcMFnj9g83RM/+IhVB5h5Sd7DJftVEh7KK33N7 7K7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=rlzDHQDk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34-v6si9623021pld.252.2018.07.30.03.23.05; Mon, 30 Jul 2018 03:23:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=rlzDHQDk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbeG3L4I (ORCPT + 99 others); Mon, 30 Jul 2018 07:56:08 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:37310 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbeG3L4I (ORCPT ); Mon, 30 Jul 2018 07:56:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jDTTyW2KUl6ulW67CVRcrexsvc5Sg/CrnTnoSP+kCGM=; b=rlzDHQDkTJC+J7l+QrD5BHrBL gXnn+S9MC3fpX9futgF8t3KTHc/hnRSbLsOJAUw1iTiMUQuxjcO+SZ+2KwxcpsxTVDqwLMw/vOye3 GxkYudYzZhXgBHjy+A9i1vdZ4NsngC4HFBTm/HOtgeTeLCnoi7puQx9k5xfWkR4qXc1Us=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1fk5JB-0004wI-VY; Mon, 30 Jul 2018 10:21:46 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id B0CAC1124216; Mon, 30 Jul 2018 11:21:45 +0100 (BST) Date: Mon, 30 Jul 2018 11:21:45 +0100 From: Mark Brown To: Jon Hunter Cc: Jorge Sanjuan , lgirdwood@gmail.com, thierry.reding@gmail.com, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel@lists.codethink.co.uk Subject: Re: [PATCH 4/4] ASoC: tegra: i2s: Add support for more than 2 channels Message-ID: <20180730102145.GG5789@sirena.org.uk> References: <20180727125931.9794-1-jorge.sanjuan@codethink.co.uk> <20180727125931.9794-5-jorge.sanjuan@codethink.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cyV/sMl4KAhiehtf" Content-Disposition: inline In-Reply-To: X-Cookie: But they went to MARS around 1953!! User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cyV/sMl4KAhiehtf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jul 30, 2018 at 10:46:14AM +0100, Jon Hunter wrote: > On 27/07/18 13:59, Jorge Sanjuan wrote: > > - if (params_channels(params) != 2) > > + if (params_channels(params) > 8) > > return -EINVAL; > For normal I2S mode, channels should always be 2 and so it could be worth checking > if we are using TDM mode here or not. Yes, there's some question if a multi-channel I2S setup is going to be all the left channels then all the right channels, have multiple data lines in parallel (this especially common for high end applications) or something else. Usually it's safer to use a DSP mode for those. Please fix your mail client to word wrap within paragraphs at something substantially less than 80 columns. Doing this makes your messages much easier to read and reply to. --cyV/sMl4KAhiehtf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlte5rgACgkQJNaLcl1U h9Az4wf9ENuJw9xHWLzCcUCojvR2r6t/dd8C4zfCSklN8D/pL24kyXy+HXtDXgqw dzYaYCL27iECyw16JmuMzM3U/vnnOTIxamjlcCF3/6BjBxYaJJ94gZP3RBLImrDF bCga+cNlb3FK0D7FEpyFSlSvREN3ZBpG5H+Da0vhdHZxglKYFsvqkjzJABamiGDK u3ryKn9BWMWVFITB5X9o24f902wdc2DY/ErIfCB5nQbmSLPXU7dAJ/3I7YmNSOLD 8HiHKm74QIAtiDzZT3Sv+kZ8EgAbp8XmkWs/PGxoN7eveBbAJpEQHewQ99ystzKy tJNxVjlj1mGVRCxIsi+vNT1JAm9+RA== =moNh -----END PGP SIGNATURE----- --cyV/sMl4KAhiehtf--