From patchwork Thu Dec 21 10:13:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Shenghao" X-Patchwork-Id: 182137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp309802dyi; Thu, 21 Dec 2023 02:16:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi+CrqzFVlxwmyhxgd730MnjJruT9oDN7KnlClAi4Aac+JAi4EgluuAFQli+6nroS+rZ12 X-Received: by 2002:a05:620a:f85:b0:77f:3b93:b62d with SMTP id b5-20020a05620a0f8500b0077f3b93b62dmr530102qkn.73.1703153777140; Thu, 21 Dec 2023 02:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703153777; cv=none; d=google.com; s=arc-20160816; b=Jvi8jRJJH7IKPOB8h0cD1vU9izSXaTw0kvUiFqUQjnu5rn710gapsE3kVLKOtkkS7o P/wa+rVdQLd+PZbOv08QITsrYvVvLKuOJ/2YZnmfut0N5qzGZgBY7IiScnhnFdyHl+Fl VQVQZCDhSjf6eD9FwLo486ifoxqS47n8a3o8GzD8Lj5pgKgMO0FfExMeTh8uMkykwKBe YYGhbJXinMS8u3bLNHpBuMBmuamH3uQgwXYvizyJ39MYBBmBzLfQVsDiQdszZ3jdBKS7 xCPBtPa3eDPOWKNaYXS3SuAEQzideVKcozn4ZlXoAdaaptsv/L2olnuxSe9E13f4O5yl tq7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8h/5qNeBqZLu4DtB6QWlxRAttsKrDL6jdEBGySa6oNo=; fh=nmpqriIAxzz9z4/piqOabUsFkiEK8VDv7G5j+pvfHas=; b=PxDn0e0sWZwkfXn8PGFUc+gTdYKoj41d4enYrFwyiLN5uqM2UKQcgZ8M3jluYyua8I ht9n0E0MuE3EwXMPO+U0qsZjV/e2u6VX1Qhuj40ltPAnlGY3Rt7faczG79htc5WGmkaV qrBMbTlGLFkNis+n+05DY6dxCnDyUCR0uxcarwgB1Zaxv+g3wF2kN0beuT82Y1tSDsgk z9Pa0xDvn/mUAtUbgjkC5BnaZSSgh5OCrs8KA9IWto80Cvx9FyxPJwWdV3dkuCjkMuAh UP3LcJe8NqritVyvp2Qm4Qny8eYExVxCoZ5hiMeyFN3n45WYPiWknTfMKyemeUP2AbsR 9Xzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rvNCEiKm; spf=pass (google.com: domain of linux-kernel+bounces-8190-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8190-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bq15-20020a05620a468f00b00781226b6853si475825qkb.543.2023.12.21.02.16.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 02:16:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8190-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rvNCEiKm; spf=pass (google.com: domain of linux-kernel+bounces-8190-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8190-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E8B4A1C24F09 for ; Thu, 21 Dec 2023 10:16:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 009FC52742; Thu, 21 Dec 2023 10:15:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="rvNCEiKm" X-Original-To: linux-kernel@vger.kernel.org Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0F9F51C29; Thu, 21 Dec 2023 10:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BLAEHkq123049; Thu, 21 Dec 2023 04:14:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1703153657; bh=8h/5qNeBqZLu4DtB6QWlxRAttsKrDL6jdEBGySa6oNo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=rvNCEiKmTkwd7qYnofyFNa2UVRy0l03p6FpkiGoBz5JOrZDyzYgUNLB6tADqJE/UX LkO8+2jG9Js2mum0Pn3UtQfrqz8mPY8KbhbDdBvG/HAN+dIC/RGaiQRK10LxhKkjgW 7XqyFZSHt2CRP7KYs2C3hEccVFhYD4uyLdXShzOs= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BLAEGD8003965 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Dec 2023 04:14:16 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 21 Dec 2023 04:14:16 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 21 Dec 2023 04:14:16 -0600 Received: from LT5CG31242FY.dhcp.ti.com (lt5cg31242fy.dhcp.ti.com [10.85.14.210]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BLADoQf069419; Thu, 21 Dec 2023 04:14:11 -0600 From: Shenghao Ding To: , , CC: , , , , , , , , <13916275206@139.com>, , , , , , , , Shenghao Ding Subject: [PATCH v2 4/5] ASoC: tas2781: Add tas2563 into driver Date: Thu, 21 Dec 2023 18:13:44 +0800 Message-ID: <20231221101346.429-4-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20231221101346.429-1-shenghao-ding@ti.com> References: <20231221101346.429-1-shenghao-ding@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785886174758986209 X-GMAIL-MSGID: 1785886174758986209 Add tas2563 to better support dsp mode. Signed-off-by: Shenghao Ding --- Change in v2: - Move tas2563 to tas2781 driver --- sound/soc/codecs/tas2781-i2c.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c index 55cd5e3c23a5..c6afc87f2c69 100644 --- a/sound/soc/codecs/tas2781-i2c.c +++ b/sound/soc/codecs/tas2781-i2c.c @@ -5,9 +5,9 @@ // Copyright (C) 2022 - 2023 Texas Instruments Incorporated // https://www.ti.com // -// The TAS2781 driver implements a flexible and configurable +// The TAS2781/TAS2563 driver implements a flexible and configurable // algo coefficient setting for one, two, or even multiple -// TAS2781 chips. +// TAS2781/TAS2563 chips. // // Author: Shenghao Ding // Author: Kevin Lu @@ -33,6 +33,7 @@ static const struct i2c_device_id tasdevice_id[] = { { "tas2781", TAS2781 }, + { "tas2563", TAS2563 }, {} }; MODULE_DEVICE_TABLE(i2c, tasdevice_id); @@ -40,6 +41,7 @@ MODULE_DEVICE_TABLE(i2c, tasdevice_id); #ifdef CONFIG_OF static const struct of_device_id tasdevice_of_match[] = { { .compatible = "ti,tas2781" }, + { .compatible = "ti,tas2563" }, {}, }; MODULE_DEVICE_TABLE(of, tasdevice_of_match);