Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751217AbaLOCMX (ORCPT ); Sun, 14 Dec 2014 21:12:23 -0500 Received: from regular2.263xmail.com ([211.157.152.3]:58911 "EHLO regular2.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbaLOCMP (ORCPT ); Sun, 14 Dec 2014 21:12:15 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: ykk@rock-chips.com X-FST-TO: ykk@rock-chips.com X-SENDER-IP: 104.167.231.7 X-LOGIN-NAME: ykk@rock-chips.com X-UNIQUE-TAG: <4c7d05ac89f962764159f91c33226d24> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Yakir Yang To: Yakir Yang Cc: Philipp Zabel , Zubair.Kakakhel@imgtec.com, Fabio Estevam , Shawn Guo , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Daniel Kurtz , Sonny Rao , Dylan Reid , Xu Jianqun , =?UTF-8?q?St=C3=A9phane=20Marchesin?= , Lars-Peter Clausen , Brian Austin , Bard Liao , Max Filippov , Oder Chiou , alsa-devel@alsa-project.org, Arnd Bergmann , Kumar Gala , Ian Campbell , Rob Herring , David Airlie , Sean Cross , Grant Likely , linux-rockchip@lists.infradead.org, Pawel Moll , Greg Kroah-Hartman , Ben Zhang , devicetree@vger.kernel.org, Russell King , Liam Girdwood , linux-arm-kernel@lists.infradead.org, Jaroslav Kysela , Russell King , Mark Brown , Takashi Iwai , Mark Rutland , Jyri Sarha Subject: [RFC PATCH 0/6] Those patches is used for dw_hdmi audio. Date: Mon, 15 Dec 2014 10:11:28 +0800 Message-Id: <1418609494-15820-1-git-send-email-ykk@rock-chips.com> X-Mailer: git-send-email 2.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rk3288 use Designware HDMI IP, Designware HDMI supports four interfaces to config hdmi audio(I2S, S/PDIF, Generic Parallel Audio, AHB Audio DMA), but rk3288 only support two ways to config hdmi audio(I2S, S/PDIF), So we take I2S as hdmi audio operation interfaces, and then treat hdmi audio as an standard ALSA devices(only got platback function). Four things we have done: 1. modify the audio part of dw_hdmi drivers for rk3288 platform specific. 2. add codec driver for hdmi audio, and creat codec device dynamically in hdmi driver probe function, using platform_register_device_full way, so that hdmi codec driver can connected with hdmi driver. 3. add sound driver for hdmi audio, creat hdmi audio sound card. 4. add dt-bings file and add hdmi_audio node to corresponding dt file. [Explanation]: those patch is depend on patch by Andy Yan drm: bridge/dw_hdmi: add rockchip rk3288 support see https://patchwork.kernel.org/patch/5442361/ Yakir Yang (6): drm: bridge/dw_hdmi: add hdmi audio config interfaces drm: bridge/bridge: add support for rk3288 hdmi-audio ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio dt-bindings: Add documentation for Rockchip hdmi-audio ARM: dts: rockchip: add hdmi audio nodes .../sound/rockchip,rockchip-hdmi-audio.txt | 16 + arch/arm/boot/dts/rk3288-evb.dtsi | 11 + arch/arm/boot/dts/rk3288.dtsi | 8 + drivers/gpu/drm/bridge/dw_hdmi.c | 32 +- include/drm/bridge/dw_hdmi.h | 12 + sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/dw-hdmi-audio.c | 371 +++++++++++++++++++++ sound/soc/codecs/dw-hdmi-audio.h | 82 +++++ sound/soc/rockchip/Kconfig | 9 + sound/soc/rockchip/Makefile | 2 + sound/soc/rockchip/rockchip_hdmi_audio.c | 208 ++++++++++++ 12 files changed, 756 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/sound/rockchip,rockchip-hdmi-audio.txt create mode 100644 sound/soc/codecs/dw-hdmi-audio.c create mode 100644 sound/soc/codecs/dw-hdmi-audio.h create mode 100644 sound/soc/rockchip/rockchip_hdmi_audio.c -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/