Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp260045rwl; Sat, 25 Mar 2023 01:39:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aKLfXDoLEecKEqv9iSjZWQ1gzI5weAZfef7PE3LCqtxpYGy9uavjiPbsCpnIDnUfV48p2t X-Received: by 2002:a62:1a53:0:b0:622:ec07:c6bc with SMTP id a80-20020a621a53000000b00622ec07c6bcmr5174282pfa.15.1679733582174; Sat, 25 Mar 2023 01:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679733582; cv=none; d=google.com; s=arc-20160816; b=ngWbxujfRScupA0V12G8F3pyBt1GhNVc+aN9RUAXZFdIPjd3nyvgZ8ZnzqvzRLhqJw 5ggJf7LylEl7ET52SPjGAzMmy/gxOrJ9Rf6u4oTSUYXEWYQaTLnx5iRLtfBXlG+VLmim HwMOxvE3lvdNp8BL+ngd6hNRZOLgVcfr96No2rBAPeMfGQ6kTb2thpUx+abZ9ch6u2t/ GUhPgKcjOGn7BjKLtWo2ep3f+7dKB2cPwHw+srhSyihKAabuoxLfGTAxznPYkqwq4efl t9aJ0NuO9iJudjE3T8wqN7FJUtt4n7iED1TXq0aX+zLoD070iOOQupuU22gosi61+19O S1+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Jq9FEnTj7FoMjw/gmnidJvZt7UB0t16wRzVKOg51PoU=; b=AW6GezVlsrm/v0ZiZ/Jc+xRPtOE+fguHfwaawAFi63MwseqrQpHaCLMztSxw+TubPn vp7qv66l0/Xj8QSbV5e7Q3H5mqhRAsdYJBYyJfFHMyk5bgRADs72HfPzQPTo0Bjgso1O xzj0vHMBNn+OzszMLj4+azmmIxHplxeoDc5hnA7zsw5xU9lZUHJ86g5T58vqDenKVLCV 3DtYxKeEikhwicCPi74HltXzJJe29e0kjlOczkl3TjU6VS0RgRtaETx2yUMPCNayA6Rx 04CyK0TQkfYgbRJ7+3k6Z9TupNTbr1v8EWtYga03AV/emQ4kLOhiwOBYyArJBPZ1VeCM /qzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=C63Ln4cb; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e123-20020a636981000000b0050f817e8564si14784985pgc.86.2023.03.25.01.39.30; Sat, 25 Mar 2023 01:39:42 -0700 (PDT) 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=C63Ln4cb; 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 S232349AbjCYIhk (ORCPT + 99 others); Sat, 25 Mar 2023 04:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232122AbjCYIhH (ORCPT ); Sat, 25 Mar 2023 04:37:07 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF29018B3D for ; Sat, 25 Mar 2023 01:36:56 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id d17so3860341wrb.11 for ; Sat, 25 Mar 2023 01:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679733415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Jq9FEnTj7FoMjw/gmnidJvZt7UB0t16wRzVKOg51PoU=; b=C63Ln4cbdBEFNaAtwZnNcK3wxmaH9YcpZlBQhu9BFowDQX4wPmVFaTXFVbDWSC95GS B+xgj6im0tCPY2KPNId1xDxggGn8KDT6NuW7HrNnovnoiAwFi13zV2zcr54g4Hidc6+e Y+v7NcW6ZxKGYT3cgSTWUF9eUO7MVrZlld0da4SGiCzJQ3HbKdBRtGvsLyafy+DstAfA fukfS99IOoZvf252KgsqjRKxARdBskv5Ql5UKUvFhgSn5u7M/a+zx/r41OTxOIrjZZE0 /9AcQu1SUCnNij8FHBDeYQ+iTc1c3CoKb3g23/e4QXcHO6Vhm0nlJdTBWCQ5OFi/A5dU ixUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679733415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jq9FEnTj7FoMjw/gmnidJvZt7UB0t16wRzVKOg51PoU=; b=CnOEFzEpFdiy/PTEdwL+ydzHlQ5Kd/XWz1eRoH/WaxE8hBApJaQIXotur9d6uncpPD GZAnFOzrpr7zxdlVb7VF8fmUs3zlKAc46cdLXAnFZYpb0D3AZsoGAjIhnfEN8oIhqeSp z5UlO7hC6mWVzS1NfGOTkX248cKL4Q4YcUjZLIO3WMVnQJBo1fRFaX8mI1E5BYJhS54f lC6VPvOPporgWmQyGTn0ciGD8jsZMJzYDQ7b8zuKf0EOyK9C5gJZ9j/m6yDYokLYE8+O Oz8l4fWcoUHHNBdEebcKffhAq48sxTDDhMRKyqmoaT4rPJEE5QHjJRB2/q8Gz8qnIOPv Ts2w== X-Gm-Message-State: AAQBX9e0q7/Rai2SvwiIZfXb3J4tLv6mlsOp6Nrx6fvCvw/2itDGAhHm eSoQOGE6/sJpuMkdMxM9LVs= X-Received: by 2002:a5d:6b8b:0:b0:2ce:ad08:ca4 with SMTP id n11-20020a5d6b8b000000b002cead080ca4mr4027591wrx.35.1679733415092; Sat, 25 Mar 2023 01:36:55 -0700 (PDT) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id a18-20020a5d4d52000000b002d1e49cff35sm20108204wru.40.2023.03.25.01.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 01:36:54 -0700 (PDT) From: Svyatoslav Ryhel To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/1] ASoC: wm8903: implement DMIC support Date: Sat, 25 Mar 2023 10:36:43 +0200 Message-Id: <20230325083643.7575-2-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230325083643.7575-1-clamor95@gmail.com> References: <20230325083643.7575-1-clamor95@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=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=unavailable 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 Add DMIC input and routing. Tested-by: Svyatoslav Ryhel # ASUS TF300T Signed-off-by: Svyatoslav Ryhel --- sound/soc/codecs/wm8903.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 41346e5ec5ad..9c2f0aadcff3 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -9,7 +9,6 @@ * * TODO: * - TDM mode configuration. - * - Digital microphone support. */ #include @@ -816,6 +815,7 @@ SND_SOC_DAPM_INPUT("IN2L"), SND_SOC_DAPM_INPUT("IN2R"), SND_SOC_DAPM_INPUT("IN3L"), SND_SOC_DAPM_INPUT("IN3R"), +SND_SOC_DAPM_INPUT("DMIC"), SND_SOC_DAPM_INPUT("DMICDAT"), SND_SOC_DAPM_OUTPUT("HPOUTL"), @@ -996,6 +996,9 @@ static const struct snd_soc_dapm_route wm8903_intercon[] = { { "AIFTXL", NULL, "Left Capture Mux" }, { "AIFTXR", NULL, "Right Capture Mux" }, + { "ADCL", NULL, "DMIC" }, + { "ADCR", NULL, "DMIC" }, + { "ADCL", NULL, "Left ADC Input" }, { "ADCL", NULL, "CLK_DSP" }, { "ADCR", NULL, "Right ADC Input" }, -- 2.37.2