From patchwork Tue Feb 21 18:32:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 5698 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp161758wrd; Tue, 21 Feb 2023 10:33:25 -0800 (PST) X-Google-Smtp-Source: AK7set9B8DJIgNYqQk0KaAwEhEwElgR57vaO3gB6JqCIczbb/PmwPjC7ngSLc4PqAk31qx6LU119 X-Received: by 2002:a17:906:f755:b0:87a:ee05:f7b with SMTP id jp21-20020a170906f75500b0087aee050f7bmr11683288ejb.24.1677004404926; Tue, 21 Feb 2023 10:33:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677004404; cv=none; d=google.com; s=arc-20160816; b=MDEmzYGDmWDVWW4cm0SHvXeqyAFHaOr1NzjAB92sX1JvRDlmFW5r2DVxay8dgP6DMW vgHzI0HoxjO9uujPY1dnnoeCQnDGbnStp3vR5BFzIDF6DkVYA4jmjJvfb6UgaI3aX8An Wf5f73nrIeA8r4f68Au8S3M3aeRswBQwh1++525kxI+/LWF5Ec1arojVdSa0TdjOa0/D oqs62qafWYwsKcGLA0k1FHpPAF2QijV9T7vz+LWKysG+oFjl/WeBhk/Y+Pot7+6i3GOA 22yLot2hlu6Y28mk3OV1sVv1xiHwc9zcf7AbudWu2G0bwGX0mSTvheygqYQOGjGVXR9s tLtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=0EeJlO8QUl1DZMAlcd+EODPEJDc+DBbZZnZ+JDzoEdg=; b=NlQuDy9wQCBMrVGVi6KilM/2DUZ+FuzQrp2ifWxWoR9pF0+5d0O+zkAXJQqZ87xNAM rKwtMYtdpkV/NUTB0jJWWJ5GmXNCELPNFDc/cz79NHt++el7sY4QmRyH1+oRcBiDQ+Tg VMpR/e1nq3e2hN86zrpIPB4EINeexapizVSc8da4UhHxFd/Y4sqMdSF8k5NalIHWoukF V8BlbBWsvhnU/nU7TpuDqf2Uaxf+7ybFe5GG+Naa64i9vD7n8J/8BwnwA92B2sVQkPat OrBDHstPeXo39QHGoTzeRZU209td01dqn5rH2FMiUX12J05DXqhQ3b6hIY5JDnzKMA/t MQjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kWq4ecHF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a170906025400b008e385438cc2si1298744ejl.17.2023.02.21.10.33.01; Tue, 21 Feb 2023 10:33:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kWq4ecHF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbjBUSc3 (ORCPT + 99 others); Tue, 21 Feb 2023 13:32:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbjBUSc2 (ORCPT ); Tue, 21 Feb 2023 13:32:28 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6622FCED; Tue, 21 Feb 2023 10:32:24 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id o12so21423849edb.9; Tue, 21 Feb 2023 10:32:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0EeJlO8QUl1DZMAlcd+EODPEJDc+DBbZZnZ+JDzoEdg=; b=kWq4ecHFuWXMSQZOzGBaSB3TZctWJCNGUWIu8P3VK24KihWheD/Hkgnz3BhcjBm+Ov z8eahBqmrp2SwL0wBFOCTd+8Knk4Nx90ZwYEY03DeTfn6M/VqR6QPOqhy5+242r9yDzt Ebj1teN7A4oA8YgIQe8byK5O6YanmP4Rk4ZeqmJR7xKaFSbu8E7tfn3utJjUFoZ988os QEbB2xHc3wW1X2WPp4qC8P+OOaY4c9nDtBXBo3LdSxRv8OmHfXrfBf1SVw9icnA4wePn SA8PnAH5xFwF8CR18LYgwYpvbCp28OMh9f4PgaM5DxNZ/D9Fk68DmsvDr2FtOiXzVAsJ Jbqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0EeJlO8QUl1DZMAlcd+EODPEJDc+DBbZZnZ+JDzoEdg=; b=haj3XIK9QmQYf397q3VNAnMiKOI9SppFXpCrNZdMY1XGktlxx3rQ/krFkgsI7gEgQC R9YrtgCRpiJE3hH4wKWUSzFTBlc4QV4sv9/+MXsEaFwIVi7qH+SHmNCvDle+qLXAGRQj g6JIEk1L+4t7O9EcEsh9TsXq3B3QlUGKz0TP8j/AdhrFJO8++zFRx/YMfsSl1WVHm1Vj 7BBcQ0J28+geKX9a1HGJ+uKSzzXbCXUyvGdaJ6AQ2/NkvrPMyt9Q7ooYQzT6o0gBbpo5 FjxRbPoOuTPX14XD/JSBuP4lZ4C9ze59EPUgUtY33EMmaGnN1n38LEINvPqQ5AImCZs9 KxCQ== X-Gm-Message-State: AO0yUKXvgzHCGnOPIicAWWXOzzY+digl3Of82Qw+sWihRKxphmJV6Hx/ 73NohiDQfNngYiNtEpZUfGE= X-Received: by 2002:a05:6402:215:b0:4af:515d:5658 with SMTP id t21-20020a056402021500b004af515d5658mr2968051edv.35.1677004342754; Tue, 21 Feb 2023 10:32:22 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id i3-20020a50c3c3000000b004af5aa16fcasm169102edf.66.2023.02.21.10.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 10:32:22 -0800 (PST) From: Svyatoslav Ryhel To: Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Thierry Reding , Jonathan Hunter , Greg Kroah-Hartman , Jaroslav Kysela , Takashi Iwai , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH v1 00/10] Fix sound on ASUS Transformers Date: Tue, 21 Feb 2023 20:32:01 +0200 Message-Id: <20230221183211.21964-1-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758466571219968012?= X-GMAIL-MSGID: =?utf-8?q?1758466571219968012?= - add quirk for headset detection used by some T30 devices (ASUS Transformers, LG Optimus 4X HD and Vu); - add RT5631 and MAX9808x machine drivers - add Fortemedia FM34NE DSP driver used by ASUS Transformers and mandatory for correct sound work - bind everything into working configuration David Heidelberg (1): dt-bindings: sound: nvidia,tegra-audio: add RT5631 CODEC Svyatoslav Ryhel (9): dt-bindings: sound: nvidia,tegra-audio-common: add new property sound: soc: jack: allow multiple interrupt per gpio ASoC: tegra: Support RT5631 by machine driver dt-bindings: sound: nvidia,tegra-audio: add MAX9808x CODEC ASoC: tegra: Support MAX9808x by machine driver ARM: tegra: transformers: update bindings of sound graph dt-bindings: dsp: add Fortemedia FM34 DSP staging: dsp: add support for Fortemedia FM34NE DSP ARM: tegra: transformers: bind FM34NE DSP on supported devices .../bindings/dsp/fortemedia,dsp.yaml | 95 ++ .../sound/nvidia,tegra-audio-common.yaml | 4 + .../sound/nvidia,tegra-audio-max9808x.yaml | 93 ++ .../sound/nvidia,tegra-audio-rt5631.yaml | 88 ++ arch/arm/boot/dts/tegra20-asus-tf101.dts | 22 +- arch/arm/boot/dts/tegra30-asus-tf201.dts | 46 + arch/arm/boot/dts/tegra30-asus-tf300t.dts | 34 +- arch/arm/boot/dts/tegra30-asus-tf300tg.dts | 36 + arch/arm/boot/dts/tegra30-asus-tf700t.dts | 36 + .../dts/tegra30-asus-transformer-common.dtsi | 9 +- .../arm/boot/dts/tegra30-pegatron-chagall.dts | 29 +- drivers/staging/Kconfig | 2 + drivers/staging/Makefile | 1 + drivers/staging/dsp/Kconfig | 7 + drivers/staging/dsp/Makefile | 2 + drivers/staging/dsp/dsp-fm34ne.c | 364 ++++++++ drivers/staging/dsp/dsp-fm34ne.h | 845 ++++++++++++++++++ sound/soc/soc-jack.c | 1 + sound/soc/tegra/Kconfig | 18 + sound/soc/tegra/tegra_asoc_machine.c | 120 ++- 20 files changed, 1837 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/dsp/fortemedia,dsp.yaml create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-max9808x.yaml create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml create mode 100644 drivers/staging/dsp/Kconfig create mode 100644 drivers/staging/dsp/Makefile create mode 100644 drivers/staging/dsp/dsp-fm34ne.c create mode 100644 drivers/staging/dsp/dsp-fm34ne.h