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: 10885441 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 33E0917E0 for ; Thu, 4 Apr 2019 11:17:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 174E028A1F for ; Thu, 4 Apr 2019 11:17:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A14D28A22; Thu, 4 Apr 2019 11:17:51 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C87228A1F for ; Thu, 4 Apr 2019 11:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Lt8ccHsu5I2CB4rTMBexEbPv/V2GW8g3gBveYXKLA3U=; b=XIYKjfZJacMYzy uLNP9HeaYjlp3RhnHBUquMkm8/fX0SHPqwzhioZYGruFVaqtKc6gprbqmG5jeZqxB5m98pBPWyNjp HI9DU7GKsTnqrn7TiOw6G17oHW6zjPjti9ZtQ11F52xsAyfBCrj4dPTZAjAp0c90y/IWgSo8zv52V SPmaj9FfxXykehEooCjRfZzGXnuOFCAAsLMckGdlxvXUNeYTaD06heGh4XOFFvpSxpgTrifwJs/bN YbVtAdSSfr3HaF4lPc1h2v1LWL7OjabDS/hhr9AlKmkL25fy3FdXakrwZafVJtT6LvOUgB4E1XVg/ +e1sz8CmnG993m4Wzt3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC0NR-00042d-U3; Thu, 04 Apr 2019 11:17:49 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC0NO-00041M-G5 for linux-amlogic@lists.infradead.org; Thu, 04 Apr 2019 11:17:48 +0000 Received: by mail-wm1-x343.google.com with SMTP id 4so2571229wmf.1 for ; Thu, 04 Apr 2019 04:17:45 -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=LcXSRZFjn0h4nKKHDT6y5q2QiHWC8T1oEv/My2UFJ4MB0UB/aUkTM9qGqN7q+tX62i NQdIGTPgZr3obMm7kRM6RMLowF3q9PIpa6dQ9sNDfKLlAw0sPAOSaH3bm8qD5OPgNbSM gKqAfhtCOSpw9NweSA+I4lLog3rgqQU/2hPaiYib3AJ1U/ZjV3GBJYGdonntV7OP6TO5 UO4Wd7uLT59NXVwcWVA8drDt4/r5cOokaEegzWB3xdVLufA7ySGYnH53uDThpHCQ3Z8W vraCGsJ/3h9/9D4q4GTNex1aaWGEeyBeBrMQ10LqxExQ2MYb5hc3SIF4Do01/5gdQb8X a8XQ== X-Gm-Message-State: APjAAAWk2EJPzKbnNS2BEieLxe3N8AxtkpCb5yNPdmyAW6Br0m8r//XD wcGEHcJiJ0hQO7yhgsEEgrypwQ== 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 Subject: [PATCH 0/6] ASoC: meson: add g12a SoC family support 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_041746_575817_87A4D650 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org 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(-)