Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp156580rdb; Thu, 8 Feb 2024 01:56:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IE55UwvCmDEDJ5iFQoXhGIEYzAPMVLQBkU5SiRFuZQ6z8R8sygXb4JRveNuX1LBm85Q1ZUK X-Received: by 2002:a05:6214:dc1:b0:68c:ae6d:2953 with SMTP id 1-20020a0562140dc100b0068cae6d2953mr9225830qvt.18.1707386185538; Thu, 08 Feb 2024 01:56:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707386185; cv=pass; d=google.com; s=arc-20160816; b=m9HxFKFznhNaz6HxPVonO2ivupWntHhTNlK8+HL9wpkxs1Z9Yb4CWBrriimyBwAKF5 bMFTSVjqc4E32dY3sB4ulBswic97DDsZcwe4A6uwakVXyMagIm6rbSKf7AScGXLzheAY STH8oyjhtXVZi0ckxIDJL11YAFbcR5zTvVw4x0Rr9/kGFFSmhOWLinhLIatTL8jZ+8VO tnUm3aD/RnG+WLaxn/vIqpjMaLefajtEFG1DgNVcbWhxLAVrEZdNiz4W7fTD3tQf80h6 6JxIf09sbXDWBdLHWMaS0R2XEuYoMKf+EbX9/ydhKt20bmMoZuiD1vJGjCwX7E7Wnh3b f8FA== 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=7opL0zSVFjKbMr+AvWF+mEU7KwHnfICtgBJY8r+XMu0=; fh=RudUTqVFZMQg4bkcP0WXFPr1GhvoQi1npPEbhYoVyQY=; b=i57vgJ0UgSL3p7VGExvqcZ9sXyCIrrOQdbrGKGhkkUr42f+4oPugr/hyFlR9biS4rf Y03wRumhmfACTifjZ8I5pqaEwTBfoa5ydXbfFiug57H4/Qs3o+ykOMmeYgWRKYFWf9RS Lc6udLfe07M+5NZR0NEUwvKV5immxzm6quNta7QkkqxUKG/LF8BDsEgSB5MS4w8OoNJf AwzG6WYnxVi3liXPDRy5612kLMXdKNqZ27aycq+ICz5LbdrN59ypIIicZtnlZIxxG5Uu iNhYDLlTvi1UHhPbeHhCcI5mpfZY1z6sOAyWlYt8YT22KT3N9Z/hrg4oYlG39QiW6YnG FkKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wLx1RYOt; 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-57783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCWvE/pQAVIUMKttcKaftg17+vz2fvCl1apa8gVG0uZX0TM/WPKVs3XT1P/x3+x4zaCLM/fvf+3FuPD8lOhiTrBlmeqYWn6pFPI8Hd1Wyw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m9-20020a0ce8c9000000b0068cc08516besi2434276qvo.567.2024.02.08.01.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 01:56:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=wLx1RYOt; 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-57783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57783-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 10AC41C22F7B for ; Thu, 8 Feb 2024 09:56:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C7276D1DD; Thu, 8 Feb 2024 09:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="wLx1RYOt" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 8E2856F51E; Thu, 8 Feb 2024 09:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707386065; cv=none; b=R7b3R9WxLm8uSgez//1WjurpQjx5fS/rPOXPQI46VolGN5OhX18prvgOjb24ow2OTSqK8gksSHO5d05mOBaMMb/wEdcddfRFdqEaf74XairQHhiXR4ioTZkwyyBQtt0ZOkZKGTX08N89Q2Gf+Mqs0z64iXHR9dGUEZYGsx8P//Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707386065; c=relaxed/simple; bh=Qo52dT+MaX4Zu1tDJ9IE+j+kFhpRPJkdsCNMZCVnhdo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VJEDpUbe7k64MnoWDDjq/5NdVwELCrK9DRvZ00WdgZZGbaiFK+KGcafTKdVOUuahUxlgtWrjQ3rl0p6OBrrqmoGNQ+95cwIJddzviwPQfXmIZ/v2JmchVvE+sCsevxZsuTlXYVOpa4qCQjdfB3EM/NEWjHhHeAq6JX4QHr3cSUM= 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=wLx1RYOt; arc=none smtp.client-ip=198.47.23.249 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 lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4189rSsm124315; Thu, 8 Feb 2024 03:53:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707386008; bh=7opL0zSVFjKbMr+AvWF+mEU7KwHnfICtgBJY8r+XMu0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wLx1RYOtoX+1yCvLZi+78M27e3lWEOV9lyGTWq+k8HCUe3Ux0bProNp9iDgGOnXoP y+51kkSNAEN5yghKfD/FqFqyb7MTBECllvIpxtWDMwPfn9LJZpuO9sWWMU9ziB6MH5 xpvJUhYz57QAK3rJQxl79CrIGz4N1ODnEWIXOMsI= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4189rSwT102861 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 03:53:28 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Feb 2024 03:53:28 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE100.ent.ti.com (157.170.170.30) 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, 8 Feb 2024 03:53:27 -0600 Received: from LT5CG31242FY.dhcp.ti.com ([10.250.162.93]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4189qwg5001185; Thu, 8 Feb 2024 03:53:19 -0600 From: Shenghao Ding To: , , , , , , , , , CC: , , , , , , , <13916275206@139.com>, , , , , , , , , , , Shenghao Ding Subject: [PATCH v4 3/4] ASoc: PCM6240: Add compile item for PCM6240 Family driver Date: Thu, 8 Feb 2024 17:52:53 +0800 Message-ID: <20240208095255.1508-3-shenghao-ding@ti.com> X-Mailer: git-send-email 2.33.0.windows.2 In-Reply-To: <20240208095255.1508-1-shenghao-ding@ti.com> References: <20240208095255.1508-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 v4: - 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