Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3735761ybl; Mon, 12 Aug 2019 05:38:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxUnqJKcLRT7OZcxPk1JKvHwht8xvEyQwvCV517Ps4ekL677ZdeWrCTxWsdhJlOQhQuOuh X-Received: by 2002:a65:56c1:: with SMTP id w1mr23135070pgs.395.1565613480139; Mon, 12 Aug 2019 05:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565613480; cv=none; d=google.com; s=arc-20160816; b=QRDv8+DQP+ySoiDCCVrN9n/eq0ZITg/Oht7HAlnnAqlcoP1n7dqJU7KLJ+u1cF8ElQ W+BsTECJugU59R3/u7/vWx2UjX3R8TgAebp658IeYx5wicudD+DUmHErwMXJchJjjv7v 3NzNqsvdHGG769diyvsqWCUBk87uAPX9LY8D+6DpXiuBjmd8HoonquBLq97fJx4yh5zf aNROkG2Zlpt6HOLCAshDTyN5uxGohavu6/9LvlrTYSjyj94+sQ7poN/qylv84+iFtWfn RV0a+zHJKrhy6gs9uoBxH5Wgaw/rfp8Jd0z0WIBVys1HI8V36kITBnXyxpH/CzfKU9Lf dYkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=bI/XNvST8XNcDi45EkijYU3OEXqnGirukbOk+hlTQLA=; b=z1kSoGk222k3hb4RqobzIiIO1zISPYrcOHrmifsLsntnZ6fRwuyqB9tkPsEHF95gnJ vrYvJuMRLpzJp6fjsZUGyVbzBVV5K3cVe7ugegIT53z1vF3nJYLuqOQZJX3qMJYtCs/Z MgT5N6Bg/OQTIj2jO97zTdH7QMICNln14LGtyG5FvDQHcUlAy3c8AYte9NU2oQt1S5fU LXouR5V6PVAj89TLX6Zyi7cZJwoRJkuQDLqWFE0lSOUelNADCy7h5h3wiV4050/e8HLH BhtG6F/fsABtaPotHJ7HychO6dkz/ZUzNY/DOh67LfthrFBopKnB4UAm1G49WSaECYaH pUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ltoZPdDD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si13656334plz.371.2019.08.12.05.37.44; Mon, 12 Aug 2019 05:38:00 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ltoZPdDD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726690AbfHLMfn (ORCPT + 99 others); Mon, 12 Aug 2019 08:35:43 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35834 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbfHLMfn (ORCPT ); Mon, 12 Aug 2019 08:35:43 -0400 Received: by mail-wr1-f68.google.com with SMTP id k2so18569360wrq.2 for ; Mon, 12 Aug 2019 05:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=bI/XNvST8XNcDi45EkijYU3OEXqnGirukbOk+hlTQLA=; b=ltoZPdDDIHtFi84wMSTH18qO2lGDQMLD8q+GOlpjwYklx43w44pX9RLkk/UEZFpp5n bC3GzphMPhB6+tvx7gw90L/wzbAvYXiJYpTKgP7bknRq8nKamLiU29/teVYUoULSOnXe xB07Udy9o+Ewk9kywDosNx9NasLrbCnySassqAWfxNE6NFMRO4BQiv20TcDX5FBVg+PZ brYqdp7nHkUCz/6c1yVQyh0SMQ0UtN2WJEO78ZnxD+4ybl6lF7VHgxG0G4mdmmjyC/GP 7Ry/2trw/UXrHkHdoGEa+h6YHou2Lmn7FgyUbmvc62VUHNe4NltIs8wpjufZpOKRvo8v zbvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=bI/XNvST8XNcDi45EkijYU3OEXqnGirukbOk+hlTQLA=; b=RN52rdcHjSJKE+IBFre+4MzTEzBtNu3XS90pVSkWwzjMrbIZSa39Cji0bUsUP3OQ7u RFgxdKGfqfRRITHcAxo1EWHIayk9SkuvfVY2cpII0ixCsefG1IyUdx63dLdM6Snha/EP T5PnVasXkWKo9xYIu1M8XMXuSEutLnmLAKEWJrp6EgwbS2SqkcC5NDJG8Nz/o/SnS0d4 if7ClIBTPTYDDsZe2frjcaUrIYz+yrU8cgJ+dN0m57DxdUPzzaVE7uhDuY+oernW5i1K oiNzcCiLNAm5QJ/ON0ov9OxkASUFQgrYTr1Qj/e/VQ8lRJ4HnOPgHE2nApVwPzhW7TsU Dmmg== X-Gm-Message-State: APjAAAUq1+FcnL9JA6zUMMsOFAThpFaYlUPCayoHCBqRiGMVvBD5h7uL xcoTUbXQAwXCsCKq4/QhWuaAsg== X-Received: by 2002:adf:f281:: with SMTP id k1mr40956211wro.154.1565613340871; Mon, 12 Aug 2019 05:35:40 -0700 (PDT) Received: from localhost (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id d17sm14914204wrm.52.2019.08.12.05.35.40 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 05:35:40 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong , Andrzej Hajda Cc: Kevin Hilman , Jonas Karlman , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 0/8] drm/bridge: dw-hdmi: improve i2s support In-Reply-To: <408dffda-fb9c-5f57-4f7b-404437359a69@baylibre.com> References: <20190812120726.1528-1-jbrunet@baylibre.com> <408dffda-fb9c-5f57-4f7b-404437359a69@baylibre.com> Date: Mon, 12 Aug 2019 14:35:39 +0200 Message-ID: <1jo90uimsk.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 12 Aug 2019 at 14:19, Neil Armstrong wrote: > Hi, > > On 12/08/2019 14:07, Jerome Brunet wrote: >> The purpose of this patchset is to improve the support of the i2s >> interface of the synopsys hdmi controller. >> >> Once applied, the interface should support all the usual i2s bus formats, >> 8 channels playback and properly setup the channel number and allocation >> in the infoframes. >> >> Also, the dw-hdmi i2s interface will now provide the eld to the generic >> hdmi-codec so it can expose the related controls to user space. >> >> This work was inspired by Jonas Karlman's work, available here [0]. >> >> This was tested the Amlogic meson-g12a-sei510 platform. >> For this specific platform, which uses codec2codec links, there is a >> runtime dependency for patch 8 on this ASoC series [1]. >> >> Changes since v1 [2]: >> * Fix copy size in .get_eld() >> >> [0]: https://github.com/Kwiboo/linux-rockchip/commits/rockchip-5.2-for-libreelec-v5.2.3 >> [1]: https://lkml.kernel.org/r/20190725165949.29699-1-jbrunet@baylibre.com >> [2]: https://lkml.kernel.org/r/20190805134102.24173-1-jbrunet@baylibre.com >> >> Jerome Brunet (8): >> drm/bridge: dw-hdmi-i2s: support more i2s format >> drm/bridge: dw-hdmi: move audio channel setup out of ahb >> drm/bridge: dw-hdmi: set channel count in the infoframes >> drm/bridge: dw-hdmi-i2s: enable lpcm multi channels >> drm/bridge: dw-hdmi-i2s: set the channel allocation >> drm/bridge: dw-hdmi-i2s: reset audio fifo before applying new params >> drm/bridge: dw-hdmi-i2s: enable only the required i2s lanes >> drm/bridge: dw-hdmi-i2s: add .get_eld support > > Reviewed-by: Neil Armstrong > > Jonas, is patch 8 ok for you now ? If yes I'll apply them to > drm-misc-next. Please don't ! I did not pick the right change and what I just sent is just crazy, give me a second to resend > > Neil > >> >> .../drm/bridge/synopsys/dw-hdmi-ahb-audio.c | 20 ++----- >> .../gpu/drm/bridge/synopsys/dw-hdmi-audio.h | 1 + >> .../drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 60 +++++++++++++++++-- >> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 37 ++++++++++++ >> drivers/gpu/drm/bridge/synopsys/dw-hdmi.h | 13 +++- >> include/drm/bridge/dw_hdmi.h | 2 + >> 6 files changed, 108 insertions(+), 25 deletions(-) >>