From patchwork Thu Apr 4 11:17:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10885475 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBEB9922 for ; Thu, 4 Apr 2019 11:36:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2708208C2 for ; Thu, 4 Apr 2019 11:36:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C704C28A3E; Thu, 4 Apr 2019 11:36:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E408528A3B for ; Thu, 4 Apr 2019 11:36:52 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A6E151609; Thu, 4 Apr 2019 13:17:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A6E151609 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1554376721; bh=uGOZ3MgVba/N/jbritbcS00cSnpdH8T+82/LbiCsL6M=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=QpJitqBO5V2BL3fUIPuTLDL0eC5fjfTqKcw7IMgFI1eg6c1xdQkQjOKdwrNid1Tiu iQTsnHVW8lgQd7bZvYSAyvWd/ek75A71BEHzu94dDwyd/E4766QUn6keTmI0MN7tD6 EVqFxvQa3JOdvtXQ5W/ZSUT1F0WXZW+gaBkaiTZ0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id ABDEEF80714; Thu, 4 Apr 2019 13:17:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6DAABF8075B; Thu, 4 Apr 2019 13:17:48 +0200 (CEST) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 78E51F8075B for ; Thu, 4 Apr 2019 13:17:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 78E51F8075B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="04eKJU8k" Received: by mail-wm1-x341.google.com with SMTP id h18so2919907wml.1 for ; Thu, 04 Apr 2019 04:17:44 -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=Odl+BlHOl89gYqbuLHE+EoC/KYuALb6tw6QfepUIT6M=; b=04eKJU8kbtEi4rb3BzhbkVfaLESgNx4lIrBGCYD5MKfK6D6p05j831uZ/o+oK+j9Cu tLFBXfttZnVixncynWvQoKYHs7OfWMLGB42AfBrSJzQv6aHWNU8YPkGHh2C5SPMh48w4 RBHvdnhISSY1RmYDmjpXljZc7FrVIgqbCzU+lBDV74HKN6cuWQ9lteSh6+8sEZEc7WOl tn+UOUy11egdtiORRIkuS9HMI1V3GU+qudeok3JDJoX5uOpw0RDDcoFvKHaJQLdfIYRP fQw4qdRg7KQ7QIuJ/iwIe3FXs9F4kRb3tHf4qT/sva5gOXDKrPBDnOlUmY4AiUARCNT9 Jszg== 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=Odl+BlHOl89gYqbuLHE+EoC/KYuALb6tw6QfepUIT6M=; b=R2Ki3vrtLfECT0UF+AkPiiggZpHcsaxX8fDtdZHR2wd52+XnIlKsQWYqUDBTCKM/0A 8AcV4D/WFmj3DTJghJoLoP51PBMXXmEmJQcNLqc+JJ8G3InjcK60BxJn7VrahjRFODUE 03zaGlpQb6OoXMjWzEWGSnDecqMqmDmiNJSLyDn3qvyHuWJfhgY3rJp5qReOdBqPtAoz qZ8TsPuUf10h1euW3VvAHLS1edTTHb+qwJ5Fis/tQWzHab5fJa7fYjHwl/noPhtl6C4i jlUTzQjBP+szfy01HIvJsPnd3hkmasFjvZQ8uojsvmRfm9Ahh0phwtOgvknlra+5qzZE TX9A== X-Gm-Message-State: APjAAAWqZ4SI4PQsf5aGv9Oji/SlBn0CAUefc/DF4yuB9QwBgcvgijAv 3ebNaL8nDKdi/jFXcSDmrP6V9Q== X-Google-Smtp-Source: APXvYqzhk/y2OvfsCjD7gSTW96CXJ2TGczTmODHjJSN87fBXF9s9EitMGeTGHopwjsoXlilycuyFAA== X-Received: by 2002:a1c:2dd2:: with SMTP id t201mr3905707wmt.10.1554376664375; Thu, 04 Apr 2019 04:17:44 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id z23sm9024771wma.0.2019.04.04.04.17.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 04:17:43 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Date: Thu, 4 Apr 2019 13:17:27 +0200 Message-Id: <20190404111733.28705-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Maxime Jourdan , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Kevin Hilman , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, Jerome Brunet Subject: [alsa-devel] [PATCH 0/6] ASoC: meson: add g12a SoC family support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic g12a SoC family audio subsystem derives from the one found in the axg SoC family. To add support for the g12a in the existing elements, this patchset deals with following differences compared to the axg family: * fifos must set an initial start address within the buffer. The fifo pointer shall be reset to this address on startup. * frddrs may now play on up to 3 output interfaces simultaneously. * tdmout formatters need a different signal skew offset. Jerome Brunet (6): ASoC: meson: add g12a compatibles ASoC: meson: axg-fifo: add g12a support ASoC: meson: axg-toddr: add g12a support ASoC: meson: axg-frddr: add g12a support ASoC: meson: axg-tdm-formatter: rework quirks settings ASoC: meson: axg-tdmout: add g12a support .../bindings/sound/amlogic,axg-fifo.txt | 4 +- .../bindings/sound/amlogic,axg-pdm.txt | 3 +- .../bindings/sound/amlogic,axg-spdifin.txt | 3 +- .../bindings/sound/amlogic,axg-spdifout.txt | 3 +- .../sound/amlogic,axg-tdm-formatters.txt | 4 +- sound/soc/meson/axg-fifo.c | 34 ++++- sound/soc/meson/axg-fifo.h | 2 + sound/soc/meson/axg-frddr.c | 143 +++++++++++++++++- sound/soc/meson/axg-tdm-formatter.c | 6 +- sound/soc/meson/axg-tdm-formatter.h | 11 +- sound/soc/meson/axg-tdmin.c | 16 +- sound/soc/meson/axg-tdmout.c | 29 +++- sound/soc/meson/axg-toddr.c | 53 +++++++ 13 files changed, 286 insertions(+), 25 deletions(-)