Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2160892rdb; Tue, 20 Feb 2024 21:17:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVaC346gTeCMH47wDezhGwF5dLn46OXo8l59NeeNZwgqE/fJTyHzWHhZ61Z3urP+oMB4DaNNOYOyUzASWVn8aBv3R+4qfF9P2FTA/tsgQ== X-Google-Smtp-Source: AGHT+IFavqQfWxm50PCnmNY+/KxJE1F4KmlxYbx9rKZsH6T9Op7xSiqwVJWGXIsuCZRzITqnh7Dg X-Received: by 2002:a05:6830:1691:b0:6e4:6921:aab3 with SMTP id k17-20020a056830169100b006e46921aab3mr446386otr.24.1708492636726; Tue, 20 Feb 2024 21:17:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708492636; cv=pass; d=google.com; s=arc-20160816; b=pI0Us3baY6Z2iDvSecsGPkz/ULPWe+ajKcbPn65S7OjuobRpw7T3SeOC5iqwboiqD8 PPbnM+BRrvd2UPLgU61pLTyitstAkHIfENWEcRI+k/yM1EYpC+QUxroARHM68SWLXVBM HDkr5X5hF1O7f1i5Vu+OUv6dAHWsFW7vdWXMk7514FsOcT4yZz9HXIPGfFvv6t/DWXCA 71vRtwGCnpfZbliRIR+YCI7HRghLhDzPCJpvs+7FqAgpqUedyFOFRY2niWkoK6sTcOvS 5BJ22xDk0jbVmH5L/f++LG2rtH82QYktzi77bQSei7aDQKUCIXL4rT14t4aMfwUVMNZ0 Zvvw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s16-20020a656910000000b005cdc5c70fd5si7415653pgq.531.2024.02.20.21.17.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 21:17:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74065-linux.lists.archive=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=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74065-linux.lists.archive=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 BBF6BB22AA3 for ; Wed, 21 Feb 2024 05:17:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32B613A1D7; Wed, 21 Feb 2024 05:16:37 +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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 -- 2.34.1