From patchwork Wed Mar 8 07:34:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 6283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp192506wrd; Tue, 7 Mar 2023 23:41:56 -0800 (PST) X-Google-Smtp-Source: AK7set9jLG9TycDARegULGH6wOUAXhYE2gatKjLpEaXiaPFxUyQpM8GWE6AufxmhUMbnhgFRbOKb X-Received: by 2002:a17:90b:1649:b0:234:1f57:ecb1 with SMTP id il9-20020a17090b164900b002341f57ecb1mr17495899pjb.40.1678261315956; Tue, 07 Mar 2023 23:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678261315; cv=none; d=google.com; s=arc-20160816; b=yaoPk0n7PdWnS+ZUNThOuz//32Lv3h4CZLegNEgyg1QneUUoNBtbwg52eGKYGrHw/L gwJtkHcx7GUTNiKXUJ+5dMaqpkpC9tcRFLfGRWTLTZ8jKd4moNszmugwIPL83GDR87J+ edqHvxnqWfnxB88LD9Edapgu+TBCBU8jjRAa1MucPUv3bZmp74CTWfheaLWeYW9916WU AsaWn0IRsNFM7UNfKgGMkxb4jsP/pAotwm044hUkKqQfPh0c62h9MiItYjV85//KjJIG bja/U629p+zqQxoMke3SfvqeS/6IOQkOZ3HcUwGOCbqgeQb9e64o+PdCOJ92rxrVjQrd 2WVQ== 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=Gte2HFg34yVeA/U5OHeIizbsHhlUPWICXggwBKuVh2I=; b=O6xl7V77wFnBzGPql+PNX0TW+A8j4bziGyU2NLlpmhacS7AeLWSZ5cP6Da4v8dNziI faQGy33o3vaWW7k2qZV+N8fmhNbrgtJNdxEKS6XxMefaM1u3Z/wFR3CELKH36VfAvGGe PZV6gyKn3rG/tHonwWaTGRWG6Gc06clHkwB8XQVdKO7/IrjViC1kaD3zcQjiEfLUJ1SE ZwBqsfAAx9mOyIDKlOhQH1iKPINqCFZ0HnFGoFSiy/XzVVDVbSjm5XSDIIXgcmQUdkOn 2D3201riEykteWmT/U3T7gB0O42MnKE0l/bP4ak0HWiV+9WMJBo9BapHHXZE4QFE713j doGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Dt82pBO6; 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 d14-20020a17090a3b0e00b00233e8913e6bsi15711087pjc.173.2023.03.07.23.41.43; Tue, 07 Mar 2023 23:41:55 -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=Dt82pBO6; 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 S229689AbjCHHfm (ORCPT + 99 others); Wed, 8 Mar 2023 02:35:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjCHHfe (ORCPT ); Wed, 8 Mar 2023 02:35:34 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8BB14EB0; Tue, 7 Mar 2023 23:35:24 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id da10so62105445edb.3; Tue, 07 Mar 2023 23:35:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678260923; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Gte2HFg34yVeA/U5OHeIizbsHhlUPWICXggwBKuVh2I=; b=Dt82pBO67slGMwDm1SS6/1HLw6ZpAzyD6srwgZVrAvXg86Ba82MtmdgLPLzCSDT3b9 BN5+kNFV9aXgpZOPMK1GjuNptRtjo4oP3cbH5Ia65t+klmJvNMZKI4qxSlrYRmuOaNsk DsGdBVpK1l+E8cuMCRpVKGbJsuaIj6RzOhQBPzk4XXLXs+Lv9ZkGH0HFQTPswWh8RoSh 1jvcdkiZw0oul9twRi176xsDc+cbt97a8HonmyAWHAS2Gfny3Wx7qppNirRF3FaCHOv/ U1lUJB3hKqsYfm7LJBVMywfgJdsTyw/ddCn7P8TNNWEokX0dg5PC1Prp8+KRgSi+6XjV uvzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678260923; 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=Gte2HFg34yVeA/U5OHeIizbsHhlUPWICXggwBKuVh2I=; b=hT9kdunHwRKV2kPpbaTUTsv/BJG/oYCGKydWBOq6tZ0pRsNrmHFQrI05zTmuDOjZGS hYB6sAVcSz5d5jTbL5fDDb5TqSBm8LTiPq57O1ouNsyC+dFJfmlbIWh4Tu6gBrmlYYa8 crkvI/2QL2ISvoA5b0pyRxo6n7UFYonwhEXefgunUcNjT8K2KWqwZYk+6dpfu+5+DNpy fdd3J36F0CnMNGZE1EH5MWJs8kYupy60A24Noyk5qbJCsd3VMHV6+QkEs+84eLWi8z6d Sk49TWpnwBfZKXvhsn2aO7Q9HF/0h/Sywzt07qYBN7VnhxEtxnhu52pj83mqOsMkWgDe ra3A== X-Gm-Message-State: AO0yUKUWqnxlnR1y3HGAzAZHgz4sdX8qtRyTYrm471l5i6skRB8bwUR1 9kfjxNfpy+kaQ/7BJCLIPzEqeMewUSo= X-Received: by 2002:a17:906:ac3:b0:8f2:bcb5:bbf2 with SMTP id z3-20020a1709060ac300b008f2bcb5bbf2mr18581306ejf.44.1678260922879; Tue, 07 Mar 2023 23:35:22 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id h15-20020a1709062dcf00b008dffda52d71sm7051880eji.124.2023.03.07.23.35.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 23:35:22 -0800 (PST) From: Svyatoslav Ryhel To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , 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 v2 0/8] Fix sound on ASUS Transformers Date: Wed, 8 Mar 2023 09:34:54 +0200 Message-Id: <20230308073502.5421-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?1759784537302439334?= X-GMAIL-MSGID: =?utf-8?q?1759784537302439334?= - add quirk for headset detection used by some T30 devices (ASUS Transformers, LG Optimus 4X HD and Vu); - add RT5631 and MAX9808x machine drivers - update bindings --- Changes from v1 - fm34 dropped for re-work - quirk for headset detection and rt5631 bringup splitted - minor adjustments in binding updates - improvement of rt5631 rate asignment --- David Heidelberg (1): dt-bindings: sound: nvidia,tegra-audio: add RT5631 CODEC Svyatoslav Ryhel (7): dt-bindings: sound: nvidia,tegra-audio-common: add coupled-mic-hp-detect property ASoC: tegra: Support coupled mic-hp detection ARM: tegra: transformers: update sound nodes ASoC: tegra: Support RT5631 by machine driver ARM: tegra: transformers: bind RT5631 sound nodes dt-bindings: sound: nvidia,tegra-audio: add MAX9808x CODEC ASoC: tegra: Support MAX9808x by machine driver .../sound/nvidia,tegra-audio-common.yaml | 4 + .../sound/nvidia,tegra-audio-max9808x.yaml | 90 +++++++++++++ .../sound/nvidia,tegra-audio-rt5631.yaml | 85 ++++++++++++ arch/arm/boot/dts/tegra20-asus-tf101.dts | 7 +- arch/arm/boot/dts/tegra30-asus-tf201.dts | 17 +++ arch/arm/boot/dts/tegra30-asus-tf300t.dts | 5 +- arch/arm/boot/dts/tegra30-asus-tf300tg.dts | 17 +++ arch/arm/boot/dts/tegra30-asus-tf700t.dts | 17 +++ .../dts/tegra30-asus-transformer-common.dtsi | 9 +- sound/soc/tegra/Kconfig | 18 +++ sound/soc/tegra/tegra_asoc_machine.c | 125 +++++++++++++++++- 11 files changed, 380 insertions(+), 14 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-max9808x.yaml create mode 100644 Documentation/devicetree/bindings/sound/nvidia,tegra-audio-rt5631.yaml