Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4523127iog; Tue, 21 Jun 2022 23:50:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUrV3VnxFnsJPzbP1a2mHNLUT1SrB1nkZzaXRdF38y4h5/Ps73xRzg3LcK5+kRjDpuvu13 X-Received: by 2002:a50:fb13:0:b0:435:90d1:19ca with SMTP id d19-20020a50fb13000000b0043590d119camr2374032edq.159.1655880648085; Tue, 21 Jun 2022 23:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655880648; cv=none; d=google.com; s=arc-20160816; b=v2Ac0MoHbzU4nTV1ptZ7S0snzwNsNNZpZkUYKveIoxmgbrQhoCvzySW+G1GHTivxXz cp1sO9JpEg4TOri4hVdHAPddbRrhNYqrarTIfd70DhV6yua26HZl8mbi2hWBmgmVa+Ib LnWNH/WbfBlNySvbfL1g/HwT6UtSN1g1VSdfCGlEIAFd7yNOTlfKrKKjbldinYwZKAHm Ns3pTS7o6AQiGgaKlprhEJ1xIySSEaHUhpTtt8VgexaVduM5vJSxULb14ZNViThyb7Tx sTInykiFid9rUT3VMZxeu6TTNTUYPO4Sn3RcQrfnpnEuPm5M9deYVh3Ld6WDI9xPQ01U +4qA== 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=9DOoIhOIXLMpNcIvOgH0b4QaNFlGhZBdv3PWCfH2y3Q=; b=PmVZIIU04AiFTxObPg0jtHpcTWLirUQ7dqQV4BtRWOp5wfmMG4NLIMu0UvzbvEQPjZ IryM+Ks4qeHwlByTunDSsbVxTypd5eMrCiwVTPhtEFc4h1GTAygLBMizF2ySW/x0C3BZ nJ19DefoajvodyP53b9KHWP06Uk5Fe9RV6jS3anp4MekevYqKAkvlOZY+P4WArVs2Uzs pwpYq8SO7DOE0Miz4xrco0mt26VrlXpRY3RaCiNM4f8LlnkDP6j1MR+tbG95WWF/0PRW +jT6488kp0OVS1danNTRRDeW6K8Qki758plRbNkiUIEMbzI0D350xWVkY81moXpB677+ 5LqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qV7gMAdS; 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 sg44-20020a170907a42c00b00722e6c16c85si3843279ejc.969.2022.06.21.23.50.23; Tue, 21 Jun 2022 23:50:48 -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=qV7gMAdS; 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 S1350774AbiFVGsv (ORCPT + 99 others); Wed, 22 Jun 2022 02:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350665AbiFVGso (ORCPT ); Wed, 22 Jun 2022 02:48:44 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C38E035A9A; Tue, 21 Jun 2022 23:48:43 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id cw10so8361911ejb.3; Tue, 21 Jun 2022 23:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9DOoIhOIXLMpNcIvOgH0b4QaNFlGhZBdv3PWCfH2y3Q=; b=qV7gMAdSgelSWa7TFM6/x0Pn3f3imGFjcBspWKsqSR6NIIr/pf+lVvZE3iKZXMnuRG kdhAzuCYC+fLu06G9lXm8FEe0fHDsxw20bB9qXYITLi9BRiJ0bIg9OJ7bEr/gmd0Vf0m bb9tfvRSQGgoP/wCjsh052utMVrm4pjAsK3XhwXQeiZiaOMtV/uvPxkJqk4XQoI4Klx9 yML4UcfP1wFfk8fU/AowEXYBlf4881Ce+nMIpTiqEGXcUOWno37ebdFO0USTjNIrSUAx aTt4BXPsqzHETONwmXc1fleZuOx9ne5K97uNIokcdRLMr/dIkkBUrpeWQLxK70kj1Iog w5Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9DOoIhOIXLMpNcIvOgH0b4QaNFlGhZBdv3PWCfH2y3Q=; b=ZlZZ9IEUZtrlOILzaxYaAEYb+qHUZA7cPASkmJTq0NdjlTmxZpW1w7mNJQJ+N/Zj+S KRpz3M/o3qGGHO+zpNGwu/NRQTxaPDHcUNEcdu4mB/H2EOvOS8WgFakYf04AaioMNAdC HOM9lIbICg1LksinhKgeII+pCAKn1xJNGIyEtfyj6LgUURAVBgORMvD/sdMXq6iGRL/u pdGGOq+PXnpbiNyV3keCxgq4d92SycbaOL3VK3L/9IKqnbVB9cmMsCZHiX9XEmdtJgyc bnGZfo55AEUxKpXHArNIi8ND6ZDU4vFarCmZ+qy06UfofNJVZcpxT4OjM3m2kLLzD3Yb bRNw== X-Gm-Message-State: AJIora9vuZYXsVVocSLe+W1i2qZQl7NfX4arXeEzu/t4KqK0RjyykMYo dPYP/3TGFVIGMVbONSNXKzs= X-Received: by 2002:a17:907:c202:b0:710:8d0c:6e89 with SMTP id ti2-20020a170907c20200b007108d0c6e89mr1665564ejc.141.1655880522353; Tue, 21 Jun 2022 23:48:42 -0700 (PDT) Received: from localhost.localdomain ([185.107.95.225]) by smtp.gmail.com with ESMTPSA id sd12-20020a1709076e0c00b00722e8c47cc9sm1197148ejc.181.2022.06.21.23.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 23:48:40 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Yassine Oudjana , Yassine Oudjana , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ASoC: wcd9335: Use DT bindings instead of local DAI definitions Date: Wed, 22 Jun 2022 10:47:57 +0400 Message-Id: <20220622064758.40543-3-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220622064758.40543-1-y.oudjana@protonmail.com> References: <20220622064758.40543-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Yassine Oudjana Get DAI indices from DT bindings and remove the currently used local definitions. Signed-off-by: Yassine Oudjana --- sound/soc/codecs/wcd9335.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 7d40a61b03b0..3554b95462e8 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -24,6 +24,8 @@ #include "wcd9335.h" #include "wcd-clsh-v2.h" +#include + #define WCD9335_RATES_MASK (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000) @@ -203,17 +205,6 @@ enum wcd9335_sido_voltage { SIDO_VOLTAGE_NOMINAL_MV = 1100, }; -enum { - AIF1_PB = 0, - AIF1_CAP, - AIF2_PB, - AIF2_CAP, - AIF3_PB, - AIF3_CAP, - AIF4_PB, - NUM_CODEC_DAIS, -}; - enum { COMPANDER_1, /* HPH_L */ COMPANDER_2, /* HPH_R */ -- 2.36.1