Received: by 10.213.65.68 with SMTP id h4csp221563imn; Tue, 13 Mar 2018 02:00:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELutkqiOygR3vDKqbCajIggR7K37xTjBycKtbfcU/EzJVdLlYRyVIgFY3i2eyn+B7penQ0jp X-Received: by 10.101.90.140 with SMTP id c12mr8912139pgt.56.1520931630191; Tue, 13 Mar 2018 02:00:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520931630; cv=none; d=google.com; s=arc-20160816; b=pMHCX1m19y2Q+8Y6NN0YZK6lgU7lYW+2csQ6c7E1WfrOMFRyl8lHFdswhh//320k7S KabCJVIQnrx4I0ZKKxT3zglbkSnZmym0RiE3uVSOicGMiQn8Ha8kJ/ahSh2h+18Z2VAl 673DISwx/mwKvXE1YnPK67rLBOFrtIYVxlD6qy1L4yhscVLi79w08jpWyIYFTs5TecNI xMYhnbxa2mKtFTja8iFlrUR0o0c3ViFfRIQ5e86KLKio+kWY7Q6W9xFUR638bX3S4sS/ 2M9PjymvY+a1ZgtYTN8EblKM30p8XsmFrQw/QXdvvGl2HauCLf2kVSNB8QV7pzVfaO+x 0mtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MGYz9cCXF3fYICdsKL7zGS7woB660qouPveiV7dLdeY=; b=XMP2ZYAQfbnEU3XCeus7HX82YyJ+mTPfwdqDGcml+WEoih3SIxthm+ilWG88YYLcVA 8DOYrd0aKjIK2KhFnfp6pzl6sR+N5AOmKT57iu68u2z6xfBymrZbW66cpJP260VUWw7B wlr09t/RDhtf5i/AVs12QiNHpKyCd6yHgKQrrGU1DHDQJ4Vuo6jbeK/9bAs7Ah80ZxBE 4+ibPu9cjBJnQ30cm0V1BoT6mABQK5Eqlfto8ZVDxClkrtbZR4hDaE+MfD1dEsYd7KKN CcPU9mAyQYgyZx9gYLR9HpbQ7seToY8Q+mMHUrc3Wzwunk9XcYufPBNbpGpMm2m+7GON qCBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U4HVdqKs; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si6306134pgc.114.2018.03.13.02.00.15; Tue, 13 Mar 2018 02:00:30 -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=pass header.i=@gmail.com header.s=20161025 header.b=U4HVdqKs; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752284AbeCMI7F (ORCPT + 99 others); Tue, 13 Mar 2018 04:59:05 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:52534 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbeCMI7E (ORCPT ); Tue, 13 Mar 2018 04:59:04 -0400 Received: by mail-it0-f66.google.com with SMTP id k135so14792857ite.2 for ; Tue, 13 Mar 2018 01:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MGYz9cCXF3fYICdsKL7zGS7woB660qouPveiV7dLdeY=; b=U4HVdqKspwHFlMIjDdaJqBaSKR9vI9TbZ0eonQhWnWFu5f+TYuYPAQKkXp76+qWsrL 1YeBUmvEGC/agy7D76TInz/7avw/zVFKmZXB4se17kPy+TnveZNhtKEYLZmuGmGjsuLX vqon6QbnaRvS1j84kV6P2P8Sfrern1Is8GG4NGbhuCx3q8BwnjD4UAo5dlwaBm/tNrRu 13uE+9tbSQ9mGyEFacKEz5JwdbCOfEJjeu9CE1CIyEnnUg5NwxaL/Ph3EbHn6C13RUlX 7QZGUOThl4+bdesxpRq4G21DIVt/A+2g1LTp1+sMPi6PB7yZRW3LNKsYTO7wtFuoZk3f eU5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MGYz9cCXF3fYICdsKL7zGS7woB660qouPveiV7dLdeY=; b=NsFcY9CAI8m1q3DgK974HVBqyMnLg5PdDVNmJzv27pcs6NAAAlt/Zyu5jRXxamVTtw b5ATFLW53vyEZ1X4ZJUJollg3y35mVtFD6OcM4+1NZQmtpjqMbOSYe86k0iH5ME63HwO eBiecCgMTRCP7FJYtOpKlEL/l8lk4CZ/602Et9ry6x0GBtKnka9p6tIvx3Iw5X4ufDsr 8jz5SVdbSLVGVV0g2JJaZFRRlccPbQ7pcR3E+AAMjNrvAbKouWXZW16ZTrrw30HKnTZm CS2oEG5P5ls/KlppjjQk49m7w1As0RqGrc6cEYoNhPNkHgBb0N0LhV9WbLAgnpEMnjFI XjwQ== X-Gm-Message-State: AElRT7E5qZOoUwvs7WYtD5jmRBZ2VmlVygxZM2bmOshY8T2Yloop8ULk EDkS7fqQ5MEuiJoN8wqkQg9u0aDJo7eYaW8sgRc= X-Received: by 10.36.53.197 with SMTP id k188mr44358ita.30.1520931543421; Tue, 13 Mar 2018 01:59:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.152.14 with HTTP; Tue, 13 Mar 2018 01:59:03 -0700 (PDT) In-Reply-To: <20180313082337.zekrzyx5utx5lkj6@flea> References: <20180312155753.9478-1-codekipper@gmail.com> <20180312155753.9478-5-codekipper@gmail.com> <20180313080026.jtag4w46koxzeqe2@flea> <20180313082337.zekrzyx5utx5lkj6@flea> From: Code Kipper Date: Tue, 13 Mar 2018 09:59:03 +0100 Message-ID: Subject: Re: [PATCH v2 4/6] ASoC: sun4i-i2s: Add multi-lane functionality To: Maxime Ripard Cc: Chen-Yu Tsai , linux-sunxi , linux-arm-kernel , Liam Girdwood , Mark Brown , linux-kernel , Linux-ALSA , "Andrea Venturi (pers)" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13 March 2018 at 09:23, Maxime Ripard wrote: > On Tue, Mar 13, 2018 at 09:15:49AM +0100, Code Kipper wrote: >> On 13 March 2018 at 09:00, Maxime Ripard wrote: >> > On Mon, Mar 12, 2018 at 04:57:51PM +0100, codekipper@gmail.com wrote: >> >> From: Marcus Cooper >> >> >> >> The i2s block supports multi-lane i2s output however this functionality >> >> is only possible in earlier SoCs where the pins are exposed and for >> >> the i2s block used for HDMI audio on the later SoCs. >> >> >> >> To enable this functionality, an optional property has been added to >> >> the bindings. >> >> >> >> Signed-off-by: Marcus Cooper >> >> --- >> >> .../devicetree/bindings/sound/sun4i-i2s.txt | 3 ++ >> >> sound/soc/sunxi/sun4i-i2s.c | 48 +++++++++++++++++----- >> >> 2 files changed, 41 insertions(+), 10 deletions(-) >> >> >> >> diff --git a/Documentation/devicetree/bindings/sound/sun4i-i2s.txt b/Documentation/devicetree/bindings/sound/sun4i-i2s.txt >> >> index 48addef65b8f..3f966ac61b9e 100644 >> >> --- a/Documentation/devicetree/bindings/sound/sun4i-i2s.txt >> >> +++ b/Documentation/devicetree/bindings/sound/sun4i-i2s.txt >> >> @@ -33,6 +33,9 @@ Optional properties: >> >> configured to extend the slot width to the >> >> value specified. Min 8, Max 32. >> >> >> >> +- allwinner,playback-channels: if this property is present then the number >> >> + of available channels is extended and the >> >> + outputs enabled. >> > >> > Isn't it something that is fixed for each generation of SoCs? Can't we >> > attach it to the compatible? >> >> I'm not sure as the documentation is pretty poor. It looks like it is >> supported by all of the variations that we've seen but only exposed as >> pins on A10 and A20. I'm also not sure who would ever use it with >> external devices. > > Well, you were saying that it was the case on the older SoCs in your > commit log, so this needs to be figured out. > >> The reason why I've added it is that it is required by HDMI for >> supporting surround sound on the newer SoCs. > > Why isn't that mentionned in your commit log? > > Can you post the whole set of changes needed for HDMI audio? this > would make things much easier to see where you're going. Maybe we should drop this change for now as basic HDMI audio for two channels doesn't require it. I've also not tested multi-channel audio yet. To get HDMI audio working the following patches are required for the dts https://github.com/codekipper/linux-sunxi/commit/997c622ae10ef136bae0a35a0e9bf9c6dd27910a and https://github.com/codekipper/linux-sunxi/commit/4a81676d30a0262c57ffc0827e46c7934fb3b358 they don't need this patch but do need the slot-width-override patch. CK > > Maxime > > -- > Maxime Ripard, Bootlin (formerly Free Electrons) > Embedded Linux and Kernel engineering > https://bootlin.com