Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp757079lqz; Sat, 30 Mar 2024 19:21:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCJb6MITOsmMtjc9LpZiZ6CkodVgKN9+xa4Vjq4op4IDfxlr1N+xjTvGsH0/xk8gA2fd8KNxe8z+EvNyYFaa7yjoQsOCnHkZ4IuHUG7g== X-Google-Smtp-Source: AGHT+IFcyENVMEkZz52oGhwVB8SSSDiiSzKuw3vIHJf7xpu//TCFFaCMXFwS+IUzZoEkO9LEZGFq X-Received: by 2002:a05:6214:1547:b0:691:2b87:2814 with SMTP id t7-20020a056214154700b006912b872814mr6210714qvw.41.1711851665615; Sat, 30 Mar 2024 19:21:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711851665; cv=pass; d=google.com; s=arc-20160816; b=fItmmteBGnwIZFSQdMEpMpUoVhTy0e9hJX0Mtw89bGBpfGeYXBVVusMqOFFs77CIXB gCAeP6NKKXw0PccfD8o2YdNFHud3ofa4R3BKqx/iyF7RGjeRhGj/LBortNuay9DCed48 2ec2xuanThIbFQvO3TkInm2Dpxk9VnvOO1DiLufa60aUDkCQxrj2lTaeRwE22pbzoWX9 Xr6gkto+pFBvqpFkIiADTVwTnZS3n8EyXQkDwf5TmuOFZ9ZgUrkHg9sHfhctiQP70BAF tY9IQdARtFQHeol/zUZeBk9GjXJHw/3bnvf/LyVUUTeJJeX1TbgH2mSu7ftveB8+srVY FDxw== 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=LE6d0ZGSgs6B4tuelssU5HrfUCQjrn+kR854KY36ngU=; fh=rvMnDck6bjF7XpvUPPVR2V+ZZ7ev11WwX89tPyJ0E04=; b=tS4Wu+OgKrZNLkGnyFLvap8yOD3Wpn59fBJgd7CJls15EGopovwc9sW7ZpKmGudbOP oJghe9W7T8f9Z39JDjTD1yBVrSI3vXaAQPQ7DJ7akcIEyI9g0MrpLa5jHmPVnEVCcbLD ZXh1LWyr4JxpSe9tOW4A0OkRMhT84ga6Xe6NT+hSByQ/N9qjByrI+PltmMFljEFycxXr olOEvce/h0+i9IQbkGtoKwcsDXu5iICJ1T2dn0hdWi0BszrTIkG4McRywUIDCf3XWpqY TAVq9a/gYH6zLTMxrPIAOivAjWgNWs72gNdm62Ne0vqKK2a5Ntwfse56BsMVVEuNATGe Nhjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WOSEjsZs; 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-125928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l10-20020a0ce08a000000b006967b8a7c2dsi7178584qvk.297.2024.03.30.19.21.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 19:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125928-linux.lists.archive=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=WOSEjsZs; 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-125928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125928-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A25B1C20CA5 for ; Sun, 31 Mar 2024 02:21:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E90AAD4E; Sun, 31 Mar 2024 02:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="WOSEjsZs" 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 B7EA3613C; Sun, 31 Mar 2024 02:20:15 +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=1711851617; cv=none; b=WuOjRNC6K9ocS4L/GvyAOo1T3kGjhCLjfjOK+KepOY+I9QpCSHrabUka7k0QI/1zMExjp8TlnTI6U7ShR9/3UIyl2UAEpNrKiwbmRRvhNEi4RAw2Ylwu/KnOEfJb2+vWzxjs7a2SG+Zy2Sn3zitb/CnNze825eP5XHLVLvlUVq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711851617; c=relaxed/simple; bh=wszhonbR5gvN2VcFZa8s+jUlda0D/jBmFLjKLmgNe1A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e+Gtn9mAMxcpJDeeMxoL8JoCCDF/X67RzyWIpyTPHolY++IGJtQ3QX0p26WdWWhv5oBpnTnUpMazMc5qy08OdtNaNISgBou2jQfulxmn59rGBDdhvqVsx66+d8NINgxQfkJc5fp7x4rOxi3KuMdgROD+r/et1INlCRoTU/P//Rg= 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=WOSEjsZs; 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 lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42V2J9dw065441; Sat, 30 Mar 2024 21:19:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711851549; bh=LE6d0ZGSgs6B4tuelssU5HrfUCQjrn+kR854KY36ngU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WOSEjsZsifvr46poPf0V8j9sZTYonJOO73CQByNW4eGTl8J6b99wE801QQq6VfzA5 OeP3lMNACmf3Pf9peyij9RkQ79hGc2LW0m4HC6+a1uoegA8/qdv/zg62nBB1CDydAW qUDGiTv65D8dQk5zq1g6UxdJjEmgAp26oHaOQ6jI= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42V2J9Vd128349 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Mar 2024 21:19:09 -0500 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; Sat, 30 Mar 2024 21:19:09 -0500 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; Sat, 30 Mar 2024 21:19:09 -0500 Received: from LT5CG31242FY.dhcp.ti.com ([10.250.160.249]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42V2IcmC106026; Sat, 30 Mar 2024 21:19:03 -0500 From: Shenghao Ding To: CC: , , , , , , , , , <13916275206@139.com>, , , , , , , , , , , , Shenghao Ding Subject: [PATCH v7 3/4] ASoc: PCM6240: Add compile item for PCM6240 Family driver Date: Sun, 31 Mar 2024 10:18:33 +0800 Message-ID: <20240331021835.1470-4-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20240331021835.1470-1-shenghao-ding@ti.com> References: <20240331021835.1470-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 v7: - 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 f78ea2f86fa6..0c35cdfd4a47 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -179,6 +179,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 @@ -1422,6 +1423,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 7c075539dc47..5553155b843b 100644 --- a/sound/soc/codecs/Makefile +++ b/sound/soc/codecs/Makefile @@ -204,6 +204,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 @@ -594,6 +595,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