From patchwork Tue Jul 17 15:42:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 142170 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3820568ljj; Tue, 17 Jul 2018 08:43:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdEFVvGhveaufA8PVAfFnEVLCDQuj5oDaRzGH44iO8YiaGg8f0G33VwR3CJevibHsqkoErY X-Received: by 2002:a17:902:7481:: with SMTP id h1-v6mr2157157pll.183.1531842196652; Tue, 17 Jul 2018 08:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531842196; cv=none; d=google.com; s=arc-20160816; b=NUn/eaCiADWgjRT0EyRog5a5MMEAoT2lg6oqHAJJ9BLDFyUa4hHjpLeq+kawEFNXNK YgODC6Pz+RqwYmLCWEuWlvaHq5hVmrekJ/wyUVDp2QY2SJzqh8KJ7OZfzeSE/C7lHeaQ I+4Z2r0prLcoZh/HHJbSC/uCyik6lMOKTS953nioqiG54WfRSzVhzqIwBRYq0ul6HniU YdW1ARv5H/1obZxgtvV6Wl0lm1oY3F3p5ZCw0exnKvUIM0vNugF7g2AAB4eQP/iboeK9 BegMDL12+VaV5SSjMoc+sAcJoewQ/SL2YPVYI3lS46+nCNVIiQe6xDDy03G5crf1AJbH 5ANw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=90RGZYuIsHO+01y389h7avnPl9Ru+WOi1uTFd21VYDk=; b=NHzJL+Blr5vAKjmVuoSsF485HMCkeqmyTTnaBFfOd3FmGzQ3pn/c3JxzugP15YeNZs vvJL2L9WLI9EDN1CxrruBBjx10lh7DvXaaP4b/i3vA3zT/gFisqffk2quXbWrm/nR62/ k8Qt9fSKBkrNgfR5ZJpz62lpbWHTdo7RbU+7b68cMm8QDT7JFcTa/JOGwMoK6/Z2HkvL Bw65qNDf9CLbh9y5CRwxFEiBcE9kUMu7eAPyiMFEcCCL+kqhiUQcKdprz0iY289EfHLn rbqm0fyh8MKLBGD7qLjtEDKmxlfMQ0Lg0F28hf8FToYIHTTAQvEFHkGs1EzpQzamcxUq ryXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=bPFg3h01; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 x14-v6si1066885pln.354.2018.07.17.08.43.16; Tue, 17 Jul 2018 08:43:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=bPFg3h01; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730930AbeGQQQ3 (ORCPT + 5 others); Tue, 17 Jul 2018 12:16:29 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42471 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730531AbeGQQQ2 (ORCPT ); Tue, 17 Jul 2018 12:16:28 -0400 Received: by mail-wr1-f65.google.com with SMTP id e7-v6so1725900wrs.9 for ; Tue, 17 Jul 2018 08:43:13 -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; bh=iovYSCzRi0xRYQ6uF5MbKxolaTioFjQxXQAfu2kGBJQ=; b=bPFg3h01wT3neJl9gPeQ1/btVNBNlxxuVS4MgdeEsSR9etkkMB5CiVqs7lAXGngG9V HkxteycKpFMFSob/6Q2qelPAWpfZDT2ad/zn5AbeMp08u4DW1PdpLm0IcqFyTSq8tAD3 zrlfAUvtRfE3U27xZV082T5vHk36UySo8YyIVLQXehCQl0/ER86lKkfVfsXetV2P+PYJ 2HTMYTY40gN7cBTJzXrAU9Vp7lDz3TtIfvdZsflj0rkhomQHxHeu6w5Qep9dZP7//FiV BBBNquRaiA8l58oFB/9rLuuSxw6137gDaLF9jEZw8XmY5koZgA6jkYycutZzozkXzebB 6LCA== 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; bh=iovYSCzRi0xRYQ6uF5MbKxolaTioFjQxXQAfu2kGBJQ=; b=Gusb3w18OTYvwz5aYOC7RPdVKilkDClZMYWSN/BSppvOBe1j31wrtcwlnNPCpfxDaC j73cKWN8IOoHbr9ogKYmAyu9Py98gKPlVLDPIxA9OEXcSfwLt/oQkaXGpTaW/ZRULqhf n69IvNsU7Fow9M50q9fEJlEtt3X+kGp91NYRTuQxlaJELt3rw1vIlYM/RfEoQvm6yRHr ZlBpjfRHsORDekulAgKzA7dz7MhAdCD4YBNewbsbqBO/d4MerXfp4WaSmYNdoQWVR4Kw IvqElLsBtCQxFEuWMohmc1i1773F+Qtysg8z++Xxvp27PGy9yNDh95WIhwWUaPWtDrAp Zv/A== X-Gm-Message-State: AOUpUlHaQywLe0Wb/t46TZuvCGzjcusQv6gOTjPGtmj5aY+4TZdj9lWc 5FdriXf8y/upRWTjaZrY7HfOXQ== X-Received: by 2002:adf:be0f:: with SMTP id n15-v6mr1863164wrh.267.1531842193188; Tue, 17 Jul 2018 08:43:13 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id s12-v6sm17598252wmc.2.2018.07.17.08.43.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 08:43:12 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH RESEND 00/15] ASoC: meson: add axg audio subsystem support Date: Tue, 17 Jul 2018 17:42:49 +0200 Message-Id: <20180717154304.9973-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds support for the audio subsystem found on Amlogic's axg SoC family. The first SoC of this family is the A113D/X targeted at smart speaker application. The G12a SoC family, Amlogic next-gen STB chipset, will reuse this audio subsystem with a few changes. This patchset implements the DPCM machine driver and the different components it made of. Several components are still missing, such spdif input and pdm, and will submitted later on. The fancier part of this patchset is probably around the TDM. Properly modeling the SoC architecture and its capatilities made things a little more complex than usual (details in the related commit descriptions) If necessary, this patchset could broken into smaller series. For the intial submission, I wanted to give a global view of the subsystem. Hopefully, it will make it a bit easier to understand. Jerome Brunet (15): ASoC: meson: add axg fifos DT binding documentation ASoC: meson: add axg fifo base driver ASoC: meson: add axg frddr driver ASoC: meson: add axg toddr driver ASoC: meson: add axg spdif output DT bindings documentation ASoC: meson: add axg spdif output ASoC: meson: add axg tdm formatters DT bindings documentation ASoC: meson: add axg tdm interface DT bindings documentation ASoC: meson: add tdm formatter base driver ASoC: meson: add tdm interface driver ASoC: meson: add tdm output driver ASoC: meson: add tdm input driver ASoC: export snd_soc_of_get_slot_mask ASoC: meson: add axg sound card DT bindings documentation ASoC: meson: add axg sound card support .../devicetree/bindings/sound/amlogic,axg-fifo.txt | 23 + .../bindings/sound/amlogic,axg-sound-card.txt | 124 ++++ .../bindings/sound/amlogic,axg-spdifout.txt | 20 + .../bindings/sound/amlogic,axg-tdm-formatters.txt | 28 + .../bindings/sound/amlogic,axg-tdm-iface.txt | 22 + include/sound/soc.h | 3 + sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/meson/Kconfig | 64 ++ sound/soc/meson/Makefile | 21 + sound/soc/meson/axg-card.c | 671 +++++++++++++++++++++ sound/soc/meson/axg-fifo.c | 341 +++++++++++ sound/soc/meson/axg-fifo.h | 80 +++ sound/soc/meson/axg-frddr.c | 141 +++++ sound/soc/meson/axg-spdifout.c | 456 ++++++++++++++ sound/soc/meson/axg-tdm-formatter.c | 381 ++++++++++++ sound/soc/meson/axg-tdm-formatter.h | 39 ++ sound/soc/meson/axg-tdm-interface.c | 542 +++++++++++++++++ sound/soc/meson/axg-tdm.h | 78 +++ sound/soc/meson/axg-tdmin.c | 229 +++++++ sound/soc/meson/axg-tdmout.c | 259 ++++++++ sound/soc/meson/axg-toddr.c | 199 ++++++ sound/soc/soc-core.c | 7 +- 23 files changed, 3727 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-fifo.txt create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-sound-card.txt create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-tdm-formatters.txt create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.txt create mode 100644 sound/soc/meson/Kconfig create mode 100644 sound/soc/meson/Makefile create mode 100644 sound/soc/meson/axg-card.c create mode 100644 sound/soc/meson/axg-fifo.c create mode 100644 sound/soc/meson/axg-fifo.h create mode 100644 sound/soc/meson/axg-frddr.c create mode 100644 sound/soc/meson/axg-spdifout.c create mode 100644 sound/soc/meson/axg-tdm-formatter.c create mode 100644 sound/soc/meson/axg-tdm-formatter.h create mode 100644 sound/soc/meson/axg-tdm-interface.c create mode 100644 sound/soc/meson/axg-tdm.h create mode 100644 sound/soc/meson/axg-tdmin.c create mode 100644 sound/soc/meson/axg-tdmout.c create mode 100644 sound/soc/meson/axg-toddr.c -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html