From patchwork Mon Aug 12 12:07:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 171059 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2746923ily; Mon, 12 Aug 2019 05:07:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAx2rUb879M/WbJULI1KXmL5PxM7SEtQMYMGC62gtvaW9UjfWJ6ksTwoKmPdR6kqN/uOYv X-Received: by 2002:a65:6284:: with SMTP id f4mr27748669pgv.416.1565611654864; Mon, 12 Aug 2019 05:07:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565611654; cv=none; d=google.com; s=arc-20160816; b=Zink3KhlLOIxPSV0kz5rEwcCL2Vi7+K3FqK3wjnN3lW2GKAoepem0P75E/RiT0u4jB zuNbm7vQuc9xwSpZ3CbWF63FVUhuzMJPzmPfChxwRAEssO67t0ilSXzW7Wi8Cn1ba5u9 ai2OEYQ5QCgSXii8/fw+O753WNycWTnS/7CRG6IchSZ8A1Z78EPJ3rKiM/6I4RGO5VTA 9xtH88iUymGbmX1OXaF+Oq2Y2eAZrZyR3nTYaafAkYGAqc6Q2Yo94VEIeIieXaAb5pQO HjIqtXWqkVD3fy3OBsTu8jcF0Ifz+X86DmMW6msgeJCkNSf/8EZc23FqlAaSjg/09x4V dYdA== 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=PMduQLcYqJa9E1xoRdmMO8whZQuhJA1DUXAc3zPrO3g=; b=GXuwoVzMrpZUZIw2l6xTopcCLLVb7E6bnanXi+9TbIGVxu1yKCOmncWhhhUYPFcWyT e5sPwPkCCUb/CY1SUplSZiWoxT7l+xP11dYTsMMY7zFQXsjAVSMhuYTUuIuzA1+HtMqp HYYKHannBxOLTlN73wZie+yPXsohZkMW0tLP2OLN5un82gtJxYeGBtGm9EfL5t/RDVIB poRHyb8n2iEEKB9OErmWgbPPrzGjO302AxOmgU4pcA8OKg3nQaPfojGoVkGuyDzCN0T2 zmJ8vyBdi3ZKF63/1OAdqIxJUBPUnP3lS4BG2O/eghFEHiwLXRAg/Pi8Z+7KP8g2X9vq M8pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ZSHKMJha; 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 c127si67425163pfa.20.2019.08.12.05.07.34; Mon, 12 Aug 2019 05:07:34 -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=ZSHKMJha; 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 S1728399AbfHLMHc (ORCPT + 28 others); Mon, 12 Aug 2019 08:07:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42397 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfHLMHc (ORCPT ); Mon, 12 Aug 2019 08:07:32 -0400 Received: by mail-wr1-f67.google.com with SMTP id b16so7627497wrq.9 for ; Mon, 12 Aug 2019 05:07:30 -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=PMduQLcYqJa9E1xoRdmMO8whZQuhJA1DUXAc3zPrO3g=; b=ZSHKMJha6yfzKyUtd06NcDFZ3gN6HThtYSZHVhI1dWDon6ToPzcz/3Own8XjxQ6mgY cNZxnu/TVZ+61qFCnUFdEJLOgky25gQCDhsH/+hNfvo1/tuwRFVAYIZ0rlF6tlIm0KyF iUCMnmfJERpt/DBw38nE6bUD0UhHm32KkD+TwpX8kS784VDRNuZ4zM0XGH1+eHhHNIGF rfG1P9vlqoj1SknmEStYhp/BpCNJvZPevmhinSS3o/GeDoPPCkItQDqi5o7p0o/Z19H4 V/l1fiLnkQUc1tJTXSRA6hZMqewIKizbra1XnWkTwB1TSx5TgqY0slk6QhUZjZoyT3JS G5FA== 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=PMduQLcYqJa9E1xoRdmMO8whZQuhJA1DUXAc3zPrO3g=; b=cY1BkikArC17L+ilPJfXyOSOjvzTNQgnUOZAXsq9FleDFN/xO51cIOHufZrxL7r0jV Pf1BFl3qLEKbCIQ1yPay2KzQijxS+vd9sH1HDYjfaCJ36Z/4KX9I0fnMXR14ZBqZAl9i PMvOMP4ILFLjVcwl34vElzN+dAnPJrkVSNczptwfm4jSZlTp5so0GBC+4C+TjHaqQ3mq YIe9LLhGVvf0QI/8HrRWmUDiK0PiKR2ANDJL1mpRLkCH0SpItZU+ctphTDyhyoWo7ha9 Gaguwn0eApLN+7vghLH9fIMyT8Z0gPoB9oHim/xa7lpK5mdd7nmmGSJgzNsu2WsrFc3i OEJw== X-Gm-Message-State: APjAAAVik3IhjArCsApqcwyVWtRRgB0vFc3dnJZHUm1FIRTbq/YtNLmC IRAyyWbEj7FL6+fdfLhpOPf/Eg== X-Received: by 2002:adf:e887:: with SMTP id d7mr24777870wrm.282.1565611649905; Mon, 12 Aug 2019 05:07:29 -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 j9sm1883415wrx.66.2019.08.12.05.07.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 05:07:29 -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 v2 0/8] drm/bridge: dw-hdmi: improve i2s support Date: Mon, 12 Aug 2019 14:07:18 +0200 Message-Id: <20190812120726.1528-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]. 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 .../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(-) -- 2.21.0 Reviewed-by: Neil Armstrong