From patchwork Mon Aug 5 13:40:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 170548 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4311885ile; Mon, 5 Aug 2019 06:41:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvkfQbljV/TRhxkI1QfhMd9uM87J7sawKxvDuY0mLW3oyu3JwjL4WmCtb4wSmifS6WQzFY X-Received: by 2002:a17:902:2ae8:: with SMTP id j95mr132717463plb.276.1565012470427; Mon, 05 Aug 2019 06:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565012470; cv=none; d=google.com; s=arc-20160816; b=RJCNiLHcVeYQoWxuckELAlYVx8JWd9s6jebzN2JRCh39vdHqguXlkDCbYUT1DHIlR9 AUSAm1JOzH/L1TWRLdph7FqnizWu3IMnLzxMlpefSSxn9YzBSB5qaZ5iZiAMzJn+XSsj EoPUzYMca4Ep8pkZLkfhp4nfblABJdjZhUsWZbL5YIdHELmNUX6aXK/1bWY7qxgsoB6B C5n1SmM+FJCX9mKM3GTtU0AeUkoxIsKeyhe6Fnkm1tljp9iLE9yzgLQ05W/nYVOxTISp wAyhi6y39N1cSKnjjefzEQjooRb+skWY12Y5Y8HKVsa2g1WFKxwDcxsQ4xudZZZreJIk L2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=o3FggyWEk7iag/gjHOv9EP41vPE6V1cAArTG8uYr8XE=; b=gojr1zkLHfsQiqXIscWQjOUZrys+zvSf6vSs9IVgMF5YXV+o+sL7dIFBO8+TlnzYCi GJhDfnRibd4yWcbYSdX6PmMDD3jM5BP9A5MQRnycJjvLPj3WMQbsDdlhszBNb2Sv7nXg 8+pmyVj9hdl0n6r2HXcJW9wueloQ/u+NeZaMGkrh8RlBxwUJocj1GXd+2g3RbmtX+wea kALKwPTG9JOmV2j2e/cHoQlVS9g+PXr616w3qb14glaeasdDl/0i3K/dDEdchzLJq2Sw Ig48G7sGKByULPtujhgQZQbQZxfkqATVGDiUEpGzq80qRiljHPlFFRBHSUbuSd4yk53U yESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=VKzwCZsY; 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 o7si50803744pgq.459.2019.08.05.06.41.10; Mon, 05 Aug 2019 06:41:10 -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=VKzwCZsY; 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 S1729078AbfHENlI (ORCPT + 29 others); Mon, 5 Aug 2019 09:41:08 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50475 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfHENlI (ORCPT ); Mon, 5 Aug 2019 09:41:08 -0400 Received: by mail-wm1-f67.google.com with SMTP id v15so74807634wml.0 for ; Mon, 05 Aug 2019 06:41:06 -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:date:message-id:mime-version :content-transfer-encoding; bh=o3FggyWEk7iag/gjHOv9EP41vPE6V1cAArTG8uYr8XE=; b=VKzwCZsY5ujaTHwBT2AdabMwz/1j90BaDaa/VIhk7cwlJO/n264xa2vUQOchFf6hn1 iu24xUGNF3exhSvC8sOfcU/WP7MHEpYz/JQi5vY4N0rpFRQ82yUIc7fT6QjSg4sLApfW AFtp86CS+jmu0DbCb5QFeDCGFqmNTB0si0PY8C4SC39LwW5U15uabg5vrEjne46KEZIn L0vhnpzT/HAVWyLSZ88RB448nF5GfiMbcwdmRxymXqDL7tAB/BT8Bp2NaS+NI1QbEYFg 5zNSN1uU0r3p79VVyvXzjFIKCtqRQOHtpk4qkXtx1dPs1l1ks7l5kqR4qlp9VVFwooHF yjJA== 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:date:message-id:mime-version :content-transfer-encoding; bh=o3FggyWEk7iag/gjHOv9EP41vPE6V1cAArTG8uYr8XE=; b=t8dNvWYGL6KlECeV+cE0hcfP7+bMeGbA9wqogxThZcHDwhw6kDMDQvtZeGYtgWjTyr cp9kf5zUZBxk4c4uHpjHHehyXiozTwn1Km28vKqYi0TjDfkNpgWSKoaHqL8fQSiOmM/A yot4JbjFOAhcRf+dfC7Hspu+4y04qU4W3lqQetNhbbG86v2kii6pmGpdfjF7DMwWgJZ7 lyn+jt4ZEI8ezopEYcnt0TWAGKRLwFf27FhvN9yysrVAbvA/+nganvsBPUols9QyRAX9 ii7l3ErTjC/AhhXo445guWUkwvADOGCZelH7iMKjH1HlqjlTCq/LW1TC+opFubhyRN8H ZLmg== X-Gm-Message-State: APjAAAWayERu7cuFxsVV+bzYZ0jTRYmpyNCmfQ5l16oBSs32IgIS/Jtk IdNj8YEA5jAIKRBePmfKyktxptoPuC4= X-Received: by 2002:a1c:5f09:: with SMTP id t9mr19859634wmb.112.1565012466102; Mon, 05 Aug 2019 06:41:06 -0700 (PDT) Received: from starbuck.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id w7sm99040534wrn.11.2019.08.05.06.41.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 06:41:05 -0700 (PDT) From: Jerome Brunet To: Andrzej Hajda , Neil Armstrong Cc: Jerome Brunet , Kevin Hilman , Jonas Karlman , linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 0/8] drm/bridge: dw-hdmi: improve i2s support Date: Mon, 5 Aug 2019 15:40:54 +0200 Message-Id: <20190805134102.24173-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. [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 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 .../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 | 59 +++++++++++++++++-- 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, 107 insertions(+), 25 deletions(-) -- 2.21.0