Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4980102iog; Wed, 22 Jun 2022 09:27:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+jEnsvRa9nAuzbZZyp8rTQQijvk5bzXAaFnVu9+921F793oPreTYiQ1ZfLKhNCD4qRc+4 X-Received: by 2002:a17:90a:2d82:b0:1eb:6ee0:9d68 with SMTP id p2-20020a17090a2d8200b001eb6ee09d68mr35332123pjd.28.1655915271481; Wed, 22 Jun 2022 09:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655915271; cv=none; d=google.com; s=arc-20160816; b=AJV+Gs2YcAU5YQzAi/ZBBjztdQ0xMGwRJ0jWn3U6OLLtf4awWsFESM+gJrrzyYFgoQ mxRvC+6CAQJdgXdZ08iB7IAeFrsSnkIGbw1AjGppcYExPdZb5oGAePeZ59+0pLdmP5/W z9AkFqi8IuEPUA8Y7K5iJEEwr3edP9Sv7djUzh75qwzAfgCkSnj/rJ+qfGY75R+Co24b MHPyUvSjDVCealYS8S+2zpsDtP3nfM6HvkrzY7//G19xjDP4GPscJrDJCiH9J7FO2Sqw fMW3il0bicHcWhQ/D8mNw4oiwt//fJ8t073a/mbzrfzxDsRjNYPVZtomMHVMr84XRKJX 6gkg== 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=BPDXlvqV0AxMWt136en9f/MZtZ2FaK26EatF9Qx87KM=; b=J8bX/O0v44xfu1qraEMNwCOGlItOy6pw7PBNzjjLbtF4Yz/2zXlzP4+UxIqqvOkw3W YQOcdyXD3ICfNtQWDSuOzzxp4lUX2B0Pxa3WvrkCwVOE6xPLOPiOvPqBjRFgWCzMp9M1 qGNfESgXehpILHoBjzA/b7FojGoEl+nDa0adVKFUDZ2KwrJkgtMhBnWK4pBtmj+dxrBC RET1La4obIOb+HMB6jCZuVnpA4af8J8nVo6NX/zMFhV5k2MA6wxZ43whpuPYvxGcrbCs mWO+zkFQ8HzeGyULzJTWIKaBH/Q2GbT63DeiUaUhnNfGQHFRqykTJPfjXFX6nl28QA6M j0sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hf8j8FP8; 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 bh11-20020a170902a98b00b0016646a4d661si22435510plb.377.2022.06.22.09.27.39; Wed, 22 Jun 2022 09:27:51 -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=hf8j8FP8; 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 S1376521AbiFVQON (ORCPT + 99 others); Wed, 22 Jun 2022 12:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358374AbiFVQOC (ORCPT ); Wed, 22 Jun 2022 12:14:02 -0400 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 46FE425E9F; Wed, 22 Jun 2022 09:14:01 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id z11so18444322edp.9; Wed, 22 Jun 2022 09:14:01 -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=BPDXlvqV0AxMWt136en9f/MZtZ2FaK26EatF9Qx87KM=; b=hf8j8FP8sSZV8bbnqKdDoJXLx/IEZmAA8Jaa7wqvMhUaHYLq7K36mR7xDrLaIUE+BJ adS6FpovfS8Ut0BA2qx0T0HI3g1rm6mib96GmJhyBkC2DgWLEOzzM3GDt2xI7Xo68lcp hMDIQ2wFarYLSsxe6KPVqoYxSUfP3HiTrfUAissQ1JRwIgKnWtIJfGklxJcmY9mYujWI ruGjt7mQKz7apoj5WXYGzb37tWtqr6bwdQW0GYFk3OL2RAoIYXxbJvXZZwxTL1Q3G/Qu bvfVvlQrmh2Aj0mwLQTyP07oDZtWDyZuZpyxVM77ODlI6xx8IIeCDbgMGh/7FsxeZOKn wB1Q== 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=BPDXlvqV0AxMWt136en9f/MZtZ2FaK26EatF9Qx87KM=; b=tWQtanii852WWSfKDaobKhsuVLXk9xn8nrUEhrAspxPbeOVjU0IRJWQ2qt/kao+MXS Y6ER1zIuQ2jxT2eaw5JgfT4DalYSVoY43PQsveGR7Dk5+w1q7LR1A+eH04AEoCLVRcoA /kpr0lT4f1FjGN9n+D95JKHEuLL/Qf8EVLrCp1weBHZLkGOtrTZHM4mns94XT5fS0DIg K6UZ60Vw6+h4G/0Xd2QDw/iBZojc0rciwdoYugVN3/mATpN30Uae1wKk+0WMsdrjL1x1 aZt4NS+oqrUHOusluAQ8xSF79tMQkUCCh1bdUIGKjTYlg7bRn6gNADFbHefdleDEyBF2 u3aA== X-Gm-Message-State: AJIora+hQRfvMJu1KCKycxvECeYBFO18cQDJ9nL+q5OBmci7D0J3XbPu yAqWInDSUCjpOl/6/K2xVCWEZFC5tIDC7g== X-Received: by 2002:a05:6402:28a2:b0:435:798e:2988 with SMTP id eg34-20020a05640228a200b00435798e2988mr4965039edb.217.1655914439781; Wed, 22 Jun 2022 09:13:59 -0700 (PDT) Received: from localhost.localdomain ([185.107.95.225]) by smtp.gmail.com with ESMTPSA id sd14-20020a1709076e0e00b007072dc80e06sm9576036ejc.190.2022.06.22.09.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 09:13:59 -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, Krzysztof Kozlowski Subject: [PATCH v2 2/3] ASoC: wcd9335: Use DT bindings instead of local DAI definitions Date: Wed, 22 Jun 2022 20:13:21 +0400 Message-Id: <20220622161322.168017-3-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220622161322.168017-1-y.oudjana@protonmail.com> References: <20220622161322.168017-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 Acked-by: Krzysztof Kozlowski --- 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