From patchwork Tue Jan 23 11:14:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Shenghao" X-Patchwork-Id: 190873 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp266312dyi; Tue, 23 Jan 2024 03:29:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8xPwyt2kV7dfQb1Andz2pHHDnnQA6AWrhU91+EPdcq1v7xmCW+eEEjXTJEaqhOMzirQGJ X-Received: by 2002:a05:6358:15d6:b0:176:5bef:d33e with SMTP id t22-20020a05635815d600b001765befd33emr2820783rwh.14.1706009347897; Tue, 23 Jan 2024 03:29:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706009347; cv=pass; d=google.com; s=arc-20160816; b=OPFF1ZMHSvH73TC3hkwm5AIpoOaJFsMqxbd86uLhkF8FBMlhqu3FqI/U3BUXTpnEsV 0wcheWcdskoDmeYaS5cE8p6HRNqin8cb51n/h6lqVAm+urXTVyCCuKyiN6+HZLmGaG1f Px5dLfwKavlPBeo7h5KrGmX1CV+rDAR0i9Vv1JgXhvNKob7/V55KLMxG4DNSnXWZPUEJ WGfh4/PLQGDxJW3VPHOgTK2Vy3CrvWQVG1YxC0ohiSoijrt8kCpe7LoIuZox2wXDIKgm ND0ndv9MVTAwgsJQ8uGQr00yLcy1578c2g2SOEN5muBMdwnOG8n0qZodpYWLZP2avWeK vKXg== ARC-Message-Signature: i=2; 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=4gJRUPiOEkN9y57oNCHDaWWI7fyUc/nGZE+6XBvaBP8=; fh=xmVIb/XBRaq/FXBOdGW27qe4MVYLrPljfhyNB1T4CuI=; b=OCFJELAd9PgvkheGKmyo1kAXfOVWPLS3fc31fQMORtupfovVTMrFPQ6q7Y26eUTaeT pudCBUV8945fswsO7fKzQsqRCrz3whbok+YQBC33UuDvCQq3tKZavFsGB15r2NwJlzop kVi/6hKhS9M9SXRGpwI5F6hdrVrAoYsx5jOVeNKwEFz3JX5EGs7D87ZcmIWpAFQ6OXdL 0N9O9QYv4WyO9jaq+4yh9dyqDq18u728K4pfsOHhXaYNaDfakPFemZY5V0RAuTOp5k7z ZsIRraXX5P4kxldIMeD+3cJJwGKjpDfs7k0MgBXqJJJjyXxRJGb257XXH9yh0mxXNl5m FE+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="h2xoa/xu"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-35179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35179-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v18-20020a62a512000000b006dbaf6c303bsi8586697pfm.6.2024.01.23.03.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 03:29:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="h2xoa/xu"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-35179-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35179-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 89FA9B2282A for ; Tue, 23 Jan 2024 11:16:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECB565DF16; Tue, 23 Jan 2024 11:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="h2xoa/xu" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 CC03F5D73C; Tue, 23 Jan 2024 11:15:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706008548; cv=none; b=dmDG1ePPNFDaO07VKipb9dM20lJx42gBfpbKZHDBvahoQ1g1f2DoZSUDzP5El9bxpAGxAm7DRACLpC5dJEMtNNkezKO5u7eMhWK/W9irPDP1ddsIDuBWClc8tN8tppvkVBQznS8inop4HGbPrS9kAu8Ojdf1hT85LGpslpi2D0c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706008548; c=relaxed/simple; bh=+C+E75lqxharvQbpo3PR/kRPaJd4SUH4GJkUH+xGIvI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rI0mAEHmGff0gVdpaIIo8BH+ESH7qauvbCgs3WUd590xk9926gq6vqjFJfoKFtGcB3GFiuHEQOYJWiMh0BVcf/Llz9QNGeIeqHlJkyUmBy3luHDy5euyUVmJMNVHbeSBgQQOwvw+Q+eJIshOhM9mfOtGII4dVpQBxEOq2xy3POI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=h2xoa/xu; arc=none smtp.client-ip=198.47.23.248 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 fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40NBEfMY103904; Tue, 23 Jan 2024 05:14:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706008481; bh=4gJRUPiOEkN9y57oNCHDaWWI7fyUc/nGZE+6XBvaBP8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=h2xoa/xu8k3SpZFg8INgl+8P60QQbUFRmIihZAFEZRJdYkTmIPxVN5wUnUBKo4S78 sW4TSXio9CNZcsMXGngwiFnWgj/lcn7JHCv30m3L1qLdyaomy5V5xaptb0HX0gFFV8 GS6jyjmxzzsuU5XFUvNl6ZDKPYqD7xmno7qMetf8= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40NBEfIv098189 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Jan 2024 05:14:41 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 23 Jan 2024 05:14:41 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE111.ent.ti.com (10.64.6.32) 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; Tue, 23 Jan 2024 05:14:40 -0600 Received: from LT5CG31242FY.dhcp.ti.com (lt5cg31242fy.dhcp.ti.com [10.85.14.124]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40NBEHxS083823; Tue, 23 Jan 2024 05:14:34 -0600 From: Shenghao Ding To: , , CC: , , , , , , , , <13916275206@139.com>, , , , , , , , , , Shenghao Ding Subject: [PATCH v1 3/4] ASoc: pcm6240: Add compile item for pcm6240 codec driver Date: Tue, 23 Jan 2024 19:14:09 +0800 Message-ID: <20240123111411.850-3-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20240123111411.850-1-shenghao-ding@ti.com> References: <20240123111411.850-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: 1788880261461821259 X-GMAIL-MSGID: 1788880457856389226 PCM6240 driver implements a flexible and configurable setting for register and filter coefficients, to one, two or even multiple PCM6240 Family Audio chips. Signed-off-by: Shenghao Ding --- Change in v1: - Add compile item for pcm6240 codec driver --- sound/soc/codecs/Kconfig | 10 ++++++++++ sound/soc/codecs/Makefile | 2 ++ 2 files changed, 12 insertions(+) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 59f9742e9ff4..bab0ed032b5d 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -178,6 +178,7 @@ config SND_SOC_ALL_CODECS imply SND_SOC_PCM5102A imply SND_SOC_PCM512x_I2C imply SND_SOC_PCM512x_SPI + imply SND_SOC_PCM6240 imply SND_SOC_PEB2466 imply SND_SOC_RK3328 imply SND_SOC_RK817 @@ -1389,6 +1390,15 @@ config SND_SOC_PCM512x_SPI select SND_SOC_PCM512x select REGMAP_SPI +config SND_SOC_PCM6240 + tristate "Texas Instruments PCM6240 Family Audio chips based on I2C" + depends on I2C + help + Enable support for Texas Instruments PCM6240 Family Audio chips. + Note the PCM6240 driver implements a flexible and configurable + setting for register and filter coefficients, to one, two or + even multiple PCM6240 Family Audio chips. + config SND_SOC_PEB2466 tristate "Infineon PEB2466 quad PCM codec" depends on SPI diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile index f53baa2b9565..c2ae573b62dd 100644 --- a/sound/soc/codecs/Makefile +++ b/sound/soc/codecs/Makefile @@ -201,6 +201,7 @@ snd-soc-pcm5102a-objs := pcm5102a.o snd-soc-pcm512x-objs := pcm512x.o snd-soc-pcm512x-i2c-objs := pcm512x-i2c.o snd-soc-pcm512x-spi-objs := pcm512x-spi.o +snd-soc-pcm6240-objs := pcm6240.o snd-soc-peb2466-objs := peb2466.o snd-soc-rk3328-objs := rk3328_codec.o snd-soc-rk817-objs := rk817_codec.o @@ -586,6 +587,7 @@ obj-$(CONFIG_SND_SOC_PCM5102A) += snd-soc-pcm5102a.o obj-$(CONFIG_SND_SOC_PCM512x) += snd-soc-pcm512x.o obj-$(CONFIG_SND_SOC_PCM512x_I2C) += snd-soc-pcm512x-i2c.o obj-$(CONFIG_SND_SOC_PCM512x_SPI) += snd-soc-pcm512x-spi.o +obj-$(CONFIG_SND_SOC_PCM6240) += snd-soc-pcm6240.o obj-$(CONFIG_SND_SOC_PEB2466) += snd-soc-peb2466.o obj-$(CONFIG_SND_SOC_RK3328) += snd-soc-rk3328.o obj-$(CONFIG_SND_SOC_RK817) += snd-soc-rk817.o