From patchwork Tue Dec 11 13:47:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 153461 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp635195ljp; Tue, 11 Dec 2018 05:47:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xq2Ol+z8vVbrcLh56qP61JZVKKqIRx4bv1NsSsWSTNehYogWkt1d6Ox79At8u6PFuVFUBU X-Received: by 2002:a62:1709:: with SMTP id 9mr16134105pfx.249.1544536046883; Tue, 11 Dec 2018 05:47:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544536046; cv=none; d=google.com; s=arc-20160816; b=j4MaU3xnp/GTqxLeSn7N3z5gerpHskhLI5mSmdtPaPgxLaDt6TS8FSdQad45vR77Kq q/w9hT7xuYTz21WcOI2fzGbUnC/8so39OFW6FlcUf8w0e150He8WqEBvX0iEckfgDoJM ThAP8yV9RHokoSGfZP9ghVjCo3WJyEFjFcYi9hGlJGR4yrV690njhTq1Uz8S8FV41zw0 OEkVq/tao3xEoUje+JuFuuBm9sGFWcPes6/Dz8csM/w0cRCq8IXZn7afe9vORUug8j4N GLM7KMxnAe8h4F/Jbp+76DgUrIusafO8DnqkK/rpvZ31nAZlmDcrTHs0PG2JwQrjVBMg knGQ== 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=u/C7VLcE6neAUUZaza/sZeOnT8Mpon/LIRJpBVmA7gU=; b=lBru1ijA49H8lVQ0Mk6O9jc0FOtTOBNhtMVo32iagMcVknnXqxy/VN/3DsYB1WhCI1 y8+098ues1/E9Kom7Dcf8KGTyKmpELbn9TqDtrSQlMHRtgX/fzXcXUSNc22A6R7naXRs b0b4ePfadrdivRy8wEk6vZ14O1XHTUUD2AQtqYyizgpecCr1f+/fZCTQQOCP+4pBET85 BH2KcEdr1GAO/lAVRDDhEUDywxEnt98/LbkWoFM4ALeW7Ba3dNoh6xBUua1w2tnqTkPx Pzyge2VlYUYNY/xfnzlDfdCQHolkjaGvXZbsfmTpYj45eO0H+ems2GYUCtNlctn9sknm 4cFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gV0TyJet; 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 l5si5164580pls.423.2018.12.11.05.47.26; Tue, 11 Dec 2018 05:47:26 -0800 (PST) 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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gV0TyJet; 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 S1726545AbeLKNr0 (ORCPT + 6 others); Tue, 11 Dec 2018 08:47:26 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55872 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeLKNrZ (ORCPT ); Tue, 11 Dec 2018 08:47:25 -0500 Received: by mail-wm1-f68.google.com with SMTP id y139so2250886wmc.5 for ; Tue, 11 Dec 2018 05:47:24 -0800 (PST) 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=u/C7VLcE6neAUUZaza/sZeOnT8Mpon/LIRJpBVmA7gU=; b=gV0TyJetEGPyH6Jop7rGLs6oAHPGRooYw55oH10unEiQB1lak76jW2AeK+OpXWbeAJ PC9atO9BrKwPIoGpw+t7PZ26o4X6vfwPcVetxbIlUd8zgVRIkzXNGQ3QBUJ7g8YndB5h +azQsns0w2dXMF2NT3JcV7PYOJHlkvh8sxmv/Fc+i+HR5qo70B4J52urzCBDWCBFvjqc pSfoqLan55VZaIDrhJQukV/oaySr7bCbS48+yrWWJtYd87NCdbLhH/517bSjPO92sBuN JEe9kT6ViSBasem/EdAha78HSEPIW6oTT1OsykmkGdOL0QVB8U+P0VK33KPlU+okpwDy N64w== 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=u/C7VLcE6neAUUZaza/sZeOnT8Mpon/LIRJpBVmA7gU=; b=I1TwGjzuGFx1AEWV4QNAXlR9nhQtwgqWjOg7R5bgL34W4D0vHn2BZhE+z/yGAnOBil q40sVxSJ9+DA4fa4/GS2AV8A+tLZ+bfRInfo5wWk2IP+utKGwL2N5dSF3aXp+vw8DbGh 7bGIUOkLENwHTl6lluYl++pPmeCA2rsREggR9INbhPMDxjntJ9K2IKfd3vtxbe073XQp AU3nHcNwRak65OluIxo1UgBHtJwXKIGfkUeu5IPmEP4AKWOirzrAANI2DQFVgQ31D3Af NjM46cGSQRFjgjMUGed34TvErbziSX6TMyawog+NuV+WESZ8YVjW1uJ7f5P5y2j/6pim ULlw== X-Gm-Message-State: AA+aEWa/b9TKDCB68ZmIm3m6sfKe5n7m7Z+AfBFhwT2OONwdxxrsUML3 Nj4P9RFz2U/hpT/StISk2AU/dAXJmqI= X-Received: by 2002:a1c:128b:: with SMTP id 133mr2498350wms.22.1544536043939; Tue, 11 Dec 2018 05:47:23 -0800 (PST) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id 126sm113768wmd.1.2018.12.11.05.47.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 05:47:23 -0800 (PST) From: Jerome Brunet To: Mark Brown , 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 0/4] ASoC: meson: add axg spdif input support Date: Tue, 11 Dec 2018 14:47:09 +0100 Message-Id: <20181211134713.4908-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds the initial support the spdif input found on the axg SoC family. The capture itself works well but the rate detection could be enhanced in the future. Like several other drivers of this type, no check is done to verify if the rate of the input stream is consistent with the rate requested in hw_params() The automatic rate detection mechanism of this device and the related IRQ proved difficult to work with, as documented in the driver. Several approaches to work around this minor issue have been tried but none provided a complete and reliable solution so far. Hopefully more eyes on this will help figure this out. Since I authored all Amlogic ASoC drivers (and the related bugs) merged so far, I have added myself as maintainer of them in the last patch of this series. Jerome Brunet (4): ASoC: meson: axg-toddr: add support for spdifin backend ASoC: meson: add axg spdif input DT binding documentation ASoC: meson: add axg spdif input MAINTAINERS: Add Amlogic sound drivers entry .../bindings/sound/amlogic,axg-spdifin.txt | 22 + MAINTAINERS | 7 + sound/soc/meson/Kconfig | 9 +- sound/soc/meson/Makefile | 2 + sound/soc/meson/axg-fifo.h | 3 +- sound/soc/meson/axg-spdifin.c | 521 ++++++++++++++++++ sound/soc/meson/axg-toddr.c | 15 +- 7 files changed, 567 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt create mode 100644 sound/soc/meson/axg-spdifin.c -- 2.19.2