From patchwork Mon May 8 11:30:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Anikiel?= X-Patchwork-Id: 13236528 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DA21C77B7D for ; Wed, 10 May 2023 06:32:15 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 376D41057; Wed, 10 May 2023 08:31:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 376D41057 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1683700333; bh=dBloFJhoaI9etuevx3RcZG3i5lC069MPcR3NIxpX0sM=; h=To:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From:Reply-To:Cc:From; b=UVXvOe9FxEDYhdrrCZ7U0JhtZEv2Or8TCsSfuzV+ofoaFweI2jXwQDcrnCasl2CQN fajAxM717UvvPCiY3/N/6S6oOa6geUECPqvPDdlcc419EqHMNrrreKsFUvzYj12EWR 2QgVNVEwqXBOFZq9Wdwd6pCn7anMj2YgMEV4ydsw= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 741E7F802E8; Wed, 10 May 2023 08:30:56 +0200 (CEST) To: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH v2 0/7] Add Chameleon v3 ASoC audio Date: Mon, 8 May 2023 13:30:30 +0200 X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 X-Mailman-Approved-At: Wed, 10 May 2023 06:30:50 +0000 X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <168370025444.26.1010294303910435639@mailman-core.alsa-project.org> X-Patchwork-Original-From: =?utf-8?q?Pawe=C5=82_Anikiel_via_Alsa-devel?= From: =?utf-8?q?Pawe=C5=82_Anikiel?= Reply-To: =?utf-8?q?Pawe=C5=82_Anikiel?= Cc: tiwai@suse.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dinguyen@kernel.org, lars@metafoo.de, nuno.sa@analog.com, upstream@semihalf.com, amstan@chromium.org, =?utf-8?q?Pawe=C5=82_Anikiel?= Content-Disposition: inline The Google Chameleon v3 is a device made for testing audio and video paths of other devices. This patchset adds support for ASoC audio on this device. It has two audio sources: HDMI audio from the it68051 chip (RX only), and analog audio from the ssm2603 chip (RX and TX). The patchset adds the ASoC platform and codec drivers, as well as some changes to the existing ssm2602 codec driver. v2 changes: * Replace chv3-audio machine driver with simple-audio-card * Use regmap_register_patch() in ssm2602 workaround * Remove ssm2602 mute gpio patch, add a gpio hog instead * Simplify hw_pointer logic in chv3-i2s * Commit splits & other misc changes Paweł Anikiel (7): ASoC: Add Google Chameleon v3 i2s driver ASoC: Add Google Chameleon v3 codec driver ASoC: dt-bindings: Add Google Chameleon v3 i2s device ASoC: dt-bindings: Add Google Chameleon v3 audio codec ARM: dts: chameleonv3: Add mute gpio hog ARM: dts: chameleonv3: Add Chameleon v3 audio ASoC: ssm2602: Add workaround for playback distortions .../bindings/sound/google,chv3-codec.yaml | 31 ++ .../bindings/sound/google,chv3-i2s.yaml | 44 +++ .../boot/dts/socfpga_arria10_chameleonv3.dts | 62 ++++ sound/soc/Kconfig | 1 + sound/soc/Makefile | 1 + sound/soc/codecs/Kconfig | 8 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/chv3-codec.c | 41 +++ sound/soc/codecs/ssm2602.c | 15 + sound/soc/google/Kconfig | 6 + sound/soc/google/Makefile | 2 + sound/soc/google/chv3-i2s.c | 338 ++++++++++++++++++ 12 files changed, 551 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/google,chv3-codec.yaml create mode 100644 Documentation/devicetree/bindings/sound/google,chv3-i2s.yaml create mode 100644 sound/soc/codecs/chv3-codec.c create mode 100644 sound/soc/google/Kconfig create mode 100644 sound/soc/google/Makefile create mode 100644 sound/soc/google/chv3-i2s.c