From patchwork Fri Jan 26 03:58:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Shenghao" X-Patchwork-Id: 192376 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:e09d:b0:103:945f:af90 with SMTP id gm29csp432392dyb; Thu, 25 Jan 2024 20:03:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJW1HUG5tau27Sx9sjtUipn7lQc1WiMHxyB9bC/Xmx7tuJIZTyiavc39Xzqk1rZ7syqMRM X-Received: by 2002:a05:6358:7215:b0:176:57fc:695c with SMTP id h21-20020a056358721500b0017657fc695cmr478037rwa.33.1706241802445; Thu, 25 Jan 2024 20:03:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706241802; cv=pass; d=google.com; s=arc-20160816; b=QRedUtoj5hII28cFXaQCForA19CEjzp5/+wUZnb0peAWjBaYKBYBYW5mIAA3/loKeH PGnBMaNezjh7u0HX2ul49WZO3vtsg3BCjMpucU6bFWpFm/vYaTaSTr7MrzYLl8dg1BlZ Q8Lhofcy8xpjkKkII8ECnIry+I9xHlLppmZ0jKHNd06vtV1TdjtYOGNK6OSF1cRsGEuf HqmHjtOv3d1vR01r+dcaWylGSNF1M4UjCDY19X7qlSagM1CIJ4Ay9mSPHQEkUUoqVXlF STj6+A8pp1CTIbpDAkhfk+d2unoFMDjEyY7VQLZTkpxJ7dBx3A/RD3yoKRjqLs1SyUUs bU1Q== 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=cynHbA1s2RwlMQIYdoqhMGUYAYd1L4aZdkKa/QOnUZM=; fh=McJV5RLiY/4qz4qQj16KjyI1KFrP0x4DQbRPl5fHa/o=; b=pxzcNP8vqv+0PQWDxP6wawIrlp3mrgl0TNZJQMjiceJwmkYqEsAfac4dwVL9ZLNQhu Hn6AUD/ASeLb+ulqwPhCMXDmbaPNLPiokooU/sEGo4FBS5YJYGg0ewEA6zib1NBtZPZP jiO2VGkGhGzj8ab1DeXyjXMqE//8YfdgE9GaH8vuix261k8uRMivFdg8VbIX0gDPhDc8 VwRyBMjL8ptSvW1yXwx720dAyGF6LSPZUZ5jtaZyDJt4CJbo3Ycw4hGFAM6fUxVZRxwG hkyqArTWQjdtKy4TW/dCniSZrX6H21g09agHTWbsIG70gWZZOyqF7bzkEVQ7q0FNNXmu yGlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ys2y0JOu; 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-39590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39590-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q16-20020a638c50000000b005cfbea76cfbsi405413pgn.358.2024.01.25.20.03.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 20:03:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ys2y0JOu; 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-39590-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39590-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5CC02844AC for ; Fri, 26 Jan 2024 04:02:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59F0711712; Fri, 26 Jan 2024 04:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Ys2y0JOu" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 CF50EB677; Fri, 26 Jan 2024 04:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706241623; cv=none; b=eicaQVL23pIfPHFNbie3/SZQNpmZYFhjve7wfdsHoNylbA2vhy5lDs+cjgC+aJWfKfgqCH2Sc34u7R6fuJEcLMfR/ZOr8YT14SO7kE1L5xS9LvBKncgmTkfCix0d8hA0JdYxg9zApVAoSGROLJX/W/69UjVwrUYkrDB4AEPiBfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706241623; c=relaxed/simple; bh=BZ9seXQWPHikKGV8/8B+VTH2rJ1MQS0YlIjvFUhvG0o=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cigQIE7z0b6XW5AuWU2V4ZivzQExog6W+Em9mZP2JMRp4hyCLa+JgwKYvOUFCetTE4a3NF2yqJ0Ct+W5SF2ZzKCzbwLXjT2k7q7M8Qcexys8057ZMHNcsMe3MxP4XaWYAF7qspeck1sUTACvKfQPP3S2BULzT8LKM8qrXryULcI= 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=Ys2y0JOu; arc=none smtp.client-ip=198.47.19.142 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40Q3xSDT058508; Thu, 25 Jan 2024 21:59:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706241568; bh=cynHbA1s2RwlMQIYdoqhMGUYAYd1L4aZdkKa/QOnUZM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ys2y0JOud5VVXiNAq8IJ54HZrupAQLRuUOAmmq2rZVQuKi53mjEWQauec42PnOqJb UCnMtuwiJqEXfQGeLus3CO2dF8dQKoLOfu0kWk0Uc4VqUaSA9eeD1QuaQ+0aJiyKXD L58WtknbkQ0/+StfTeWnCa9GGrih3QiPR8WFstFY= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40Q3xSUL023807 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Jan 2024 21:59:28 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 25 Jan 2024 21:59:27 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE112.ent.ti.com (10.64.6.33) 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, 25 Jan 2024 21:59:27 -0600 Received: from LT5CG31242FY.dhcp.ti.com (lt5cg31242fy.dhcp.ti.com [10.85.14.72]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40Q3wwil025780; Thu, 25 Jan 2024 21:59:20 -0600 From: Shenghao Ding To: , , CC: , , , , , , , , , <13916275206@139.com>, , , , , , , , , , , Shenghao Ding Subject: [PATCH v2 3/4] ASoc: PCM6240: Add compile item for PCM6240 Family driver Date: Fri, 26 Jan 2024 11:58:53 +0800 Message-ID: <20240126035855.1785-3-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20240126035855.1785-1-shenghao-ding@ti.com> References: <20240126035855.1785-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: 1789124204175149644 X-GMAIL-MSGID: 1789124204175149644 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 v2: - All these chips have only a portion of the functionality of codec, such as ADC or DAC, and so on, but their audio performance is far superior to the codec's, and cost is lower than codec, and much easier to program than codec. --- 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