From patchwork Wed Feb 21 05:14:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ding, Shenghao" X-Patchwork-Id: 203921 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp841637dyc; Tue, 20 Feb 2024 21:17:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJCGNrAb5iRzOsGhs5zOSMvDGmUwy9n5eQcomkxJEPpvoyJF44ra94SSDcNyo1GOzHoyq1QAOx8HGALGRvm4FjNUWItA== X-Google-Smtp-Source: AGHT+IEuXXUl23eaNQNH6DHY0wVucxf5D7DJsX0WcFzxrmm4B6JrayeP7VcAdFpWwU6UIUGLr7yn X-Received: by 2002:a17:903:298b:b0:1db:c143:abbb with SMTP id lm11-20020a170903298b00b001dbc143abbbmr13827270plb.29.1708492639462; Tue, 20 Feb 2024 21:17:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708492639; cv=pass; d=google.com; s=arc-20160816; b=02cOY28mWVs86YqtcRgJhoAUQDMoD4zJXN0chsOBFwwZqnckkQmmbUFHJ+X/mm85af JPTXgdUW6L/ivVKz4KjJngJd2W4oFU4G0Jm6dB5j1kGi8mhZ8KTPBq5XRbe6vInssHOC tGwOckSc/5n8qQnKnSYrDoyj5tYH43z9tlbintsRRsTTER4DzgsSrTT5ZIooG+gCu6pX LqlBYmhs01S9TiJv+oKN7OSwegtzuYHtF6C3An+7ReC8s2YneZzzdNcQj8lIyVHDsehx wGQWL1tnZ4HWSFFSOwdV/+osZsqiUBdShRy6tjracx6+EFcTzdW7qA/2+4Pj6GteouP6 4AEg== 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=ZlGxvwlOvptscZmYgg9wSjM+aipQ7IA7FbnFZnyyMjw=; fh=XEaCbdZOyLsh3vN5mLurhL+mAPVoHBPpa4gF+pGepS8=; b=VUGYcw8Xrw3LR9JKE7lOiCtFMadHSu68m2PUUh1g4hOfH9nBOC0/r4HVTUE4pgedxQ 7JolroFWHwP96mhKKfle849aZXW10D/Z8K7zphqYykUrBF72UYWQTeZReE1b6jHHENZd jAdKcT8qai517NWN0Z1J/gA2GA9bmYudV4jVCDDTAwbgjsxPke9S6P8TJi5y+NwLpmtp Qgc1wvojBVhJSW4v8KlTRNch99dmFm8oGetzZMSMXBR8YuJ/QO44rHkzokGK8MCtdIxk EBbReD5bBmpPl62TKj1H+0sWT7dMrsPGuTp+ri0H4vLLonPZS51HxgkN/KnRzaNTf6sL a4lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N2Nsfs1H; 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-74065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74065-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c4-20020a170903234400b001db3cdb3863si7445548plh.547.2024.02.20.21.17.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 21:17:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=N2Nsfs1H; 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-74065-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74065-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 494B3284B5B for ; Wed, 21 Feb 2024 05:17:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E62DC3A294; Wed, 21 Feb 2024 05:16:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="N2Nsfs1H" 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 C216039FC7; Wed, 21 Feb 2024 05:16:34 +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=1708492596; cv=none; b=OUlHLZU1ugHhtqDb+vT9Qk8LQOxWRhmT1z5v4dm8ehPYk1N+n13RA3KAZ59L2NnQIbUej0Q56S8+LIVWrZ8yjWpJK8ytwjnA5yrIXA/BBhjhay/STSsfr+1V90ERlRFzoY74esmPgE5yJ3SEBl5AGGK21CvP3b2LoSLOsrlbwSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708492596; c=relaxed/simple; bh=E3YXeUL6VcIZtvmC37iXEwJDVjp8w8qU1h3KKc3cShs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=D54fdcx0HtvGoS7B64PKON932IYf2+ire0IZnzqOm1/LH1zmi3PiwN7ONX70lflsREicTvA7CZsqu4lPWg3zKyh1SnDlUVvyJiugOe5uXiyWIVUB+CzPvuzrEbQ6E9bg1XXRrIU7OA/HUx7UL/I5SGy37H+EroAb3qoJALcDf6s= 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=N2Nsfs1H; 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41L5FWZh053151; Tue, 20 Feb 2024 23:15:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1708492532; bh=ZlGxvwlOvptscZmYgg9wSjM+aipQ7IA7FbnFZnyyMjw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=N2Nsfs1HnmGpnBS6saJxv8Sky94m3n5B2C0IFXADCba9EjTs0ifUf7UpWWGY/AHng 8z78U4IpcQkS9Pn5WlMaF0bAhwhOY2r4X/4qOpn29M3sbvbDQZz2dQ4khIyHLMDU1U YJXXPI/MhuYeIBP/zqNVZMUbHHSBkTOHaDOIT5uI= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41L5FWiL031593 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Feb 2024 23:15:32 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 20 Feb 2024 23:15:32 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE101.ent.ti.com (10.64.6.22) 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, 20 Feb 2024 23:15:32 -0600 Received: from LT5CG31242FY.dhcp.ti.com (lt5cg31242fy.dhcp.ti.com [10.85.14.246]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41L5F59w108039; Tue, 20 Feb 2024 23:15:25 -0600 From: Shenghao Ding To: CC: , , , , , , , , , <13916275206@139.com>, , , , , , , , , , , Shenghao Ding Subject: [PATCH v5 3/4] ASoc: PCM6240: Add compile item for PCM6240 Family driver Date: Wed, 21 Feb 2024 13:14:59 +0800 Message-ID: <20240221051501.627-3-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20240221051501.627-1-shenghao-ding@ti.com> References: <20240221051501.627-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: 1791484378157646197 X-GMAIL-MSGID: 1791484378157646197 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 v5: - All these chips have only a portion of the codec's functionality, 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