Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp570366yba; Wed, 15 May 2019 06:22:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPL8x+sJQ/z1ohJp6LPl7bXdYrRBtDS0ExU3JgeOOsqyuy1yhvyuRZAhwV5zWimtGKdCb2 X-Received: by 2002:a17:902:e409:: with SMTP id ci9mr33714452plb.103.1557926521949; Wed, 15 May 2019 06:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557926521; cv=none; d=google.com; s=arc-20160816; b=cxPDpHJ4H8rJPkJ0KQdc3kdhQD4FqZRfaoeKG++YEm74en2B0a8RQJKn47nGF73FnW IZoSAJktBmtfjb7U/nYSEpQjkYyPvXqQvK/wIZ3Mg90bR1cz0mS1o4KfQhDCpPw5dqU1 lS0EwwVxz781qIxHMXXY1CI6cRnKljXR9tYbWHgndYnlc9jGNUyB1aYT4hKYNWItoMd8 130pIW8mRsB38XmtHzTsnvPV9X6JvghK4PqxFAQWxjIAKHSA77MXqb+onCq5BxHONBNw VVsDK1YCSpQpc20yb9zBgqh0Ntd/CGqufBBC9XWhVrM6qDyKkpLQheMl24ZhVLeSPk7k psKg== 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=JG2kah723rKt+6zVIVINToTJ1x5sX35cOTL/TkyEYK4=; b=pGz8Xahf1oHDOTnDJhwEmK8m/QUocHgFLHU5GrW40UG91NVaRJhBgR4jg4Vxjk0PBJ Kx+jHL1Y9DupSXwTMYWnD2tRvWTEFz3WHVnRQ5VQro5F9LdSMn57VcgZCcJA5eEC2SCo FlcMAlTPSjF7uwDWVG4aNVwtbxKAUKLosRIB2eOWVu7LzmDz0jUj8PypTlJrHPxQjJdp HkSp8tgGWPSB+KE4AyZcBjOl1cJ4N3fFw888CnvEAP66og64bfIWxTy9SfGvRzlVb5Vj gyoiVJnLJ4qUeOq0AjG3AyGOE0glTs/MEtItZJmKL0+kXzJuKBS9YsfZnBGHHCg72JZ9 qgEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vZJh22fk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j8si120986plt.134.2019.05.15.06.21.46; Wed, 15 May 2019 06:22:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=vZJh22fk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728095AbfEONTJ (ORCPT + 99 others); Wed, 15 May 2019 09:19:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44838 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727661AbfEONTF (ORCPT ); Wed, 15 May 2019 09:19:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id c5so2624125wrs.11 for ; Wed, 15 May 2019 06:19:03 -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=JG2kah723rKt+6zVIVINToTJ1x5sX35cOTL/TkyEYK4=; b=vZJh22fkqgxxzQYvoRgM2gvXtNWcFHA4w/ZhpXhg3KcO5ZYtjNKkseZoctyABSvJYM JNXexdB8b7YXqUh/5OWvK48RZeoIDCCWPoWronkJubu2sqLNjPQOW88bdogK8PEQiGMc zo18n9fcq58uSAzG5iop6qietQv3MER71K3ppvb1yVZfJU6VdcoOQw+MQJ5O8306Lvma zamrxMsrIEPwYPooRGHEPa8l06Q2BaP/8XZRivdDkyAdSFUNR7NzuEmlMhamIM5YXg0N xZpBDhwzk3jHq7UNVDBVdogplW0YEikZzTMBBfQpXXSVQWmKU8oFYxHSHbA6GbytzTEi Eqag== 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=JG2kah723rKt+6zVIVINToTJ1x5sX35cOTL/TkyEYK4=; b=aDkfWf+j3DrL8GLTH5yS6RimxDi/B+/gepYFCnnoUbP6aIYX54/HEgUk8L6iR5stF9 NkeHJyeV26/lC72VN4rwg72yAoqGNwsQUZm/E3n9yA0BRSVnQD8+u6hG+JBfEJOZNnWa qzEBzJaBCFrxrsRcOb9L9cT/r7J26g8ydWDlMNJX8ic/ZswA5vdvbXaMZrNxmpRYy/3Q Vx/3lgKzaLCYpK8w8wDIBVGZbZXoztnuMjLDuGPDEdCGgliOqY7Lm2vydm8BM5Mf5YNS bfFUHDBr9W20Qb60tkWly8E7926+iRNRiUhXRQTHK9IDjmggnNTdNCbvE+WGjA1o+TNz BUAA== X-Gm-Message-State: APjAAAU/ng5BaY4WwdDsXULUQELzkCjIN6NDf/y/IZcqJSeQ32nyHD9p FqpuFWBzOld8WDd30sBJggZ4Tg== X-Received: by 2002:a5d:4e50:: with SMTP id r16mr189913wrt.197.1557926342964; Wed, 15 May 2019 06:19:02 -0700 (PDT) Received: from boomer.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id b206sm2789848wmd.28.2019.05.15.06.19.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 May 2019 06:19:02 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood , Kevin Hilman 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/5] ASoC: meson: add hdmitx glue support Date: Wed, 15 May 2019 15:18:53 +0200 Message-Id: <20190515131858.32130-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On the Amlogic SoC, there is a glue between the SoC audio outputs and the input of the embedded Synopsys HDMI controller. On the g12a, this glue is mostly a couple of muxes to select the i2s and spdif inputs of the hdmi controller. Each of these inputs may have different hw_params and fmt which makes our life a little bit more interesting, especially when switching between to active inputs. This glue is modeled as codec driver and uses codec-to-codec links to connect to the Synopsys controller. This allows to use the regular hdmi-codec driver (used by dw-hdmi i2s). To avoid glitches while switching input, the trick is to temporarily force a disconnection of the mux output, which shutdowns the output dai link. This also ensure that the stream parameters and fmt are updated when the output is connected back. Jerome Brunet (5): ASoC: meson: axg-card: set link name based on link node name ASoC: dapm: allow muxes to force a disconnect ASoC: meson: add tohdmitx DT bindings ASoC: meson: axg-card: add basic codec-to-codec link support ASoC: meson: add g12a tohdmitx control .../bindings/sound/amlogic,g12a-tohdmitx.txt | 55 +++ .../dt-bindings/sound/meson-g12a-tohdmitx.h | 13 + sound/soc/meson/Kconfig | 8 + sound/soc/meson/Makefile | 2 + sound/soc/meson/axg-card.c | 31 +- sound/soc/meson/g12a-tohdmitx.c | 413 ++++++++++++++++++ sound/soc/soc-dapm.c | 2 +- 7 files changed, 518 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/amlogic,g12a-tohdmitx.txt create mode 100644 include/dt-bindings/sound/meson-g12a-tohdmitx.h create mode 100644 sound/soc/meson/g12a-tohdmitx.c -- 2.20.1