Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp779871ybv; Thu, 20 Feb 2020 07:10:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyAB2a3x1XzRXrMTjH1+58J7nDQiq3r97cdPP+iRQH0xZkjmJHdNTGqH3I7GYbDmaybCldf X-Received: by 2002:a9d:76d6:: with SMTP id p22mr24539825otl.37.1582211456455; Thu, 20 Feb 2020 07:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582211456; cv=none; d=google.com; s=arc-20160816; b=FESEpNI5UseoEDbcm3jm4dcEEPHhQcDrYaN+zryOw0tXwdUpL4FzbSdRS6MK8GHpYP /n0Yug3P+WhWup/YiaZHLRoEQ7oK/c7O/FkWk8kzRaX82vPJzzC93+pHYXztjlNjfd0e Cpct8/sacPX7NllYLhZtSnUN9+maoWJlKD6Ml3FZPvY3W7RgpxcIHKXWyoFJK0bfR1Hz 3bfbvVJUla7CugQlPGyvcyAMkcfdFAWGInABle3uNPbJ3ErQN9X3uHIWpXfVp6426kPW Paw1zgsoBggNZJaKgrc9BjpvKYdDQfvfHbrU/P1FeA8qmFU0XreNuLqbEYzTTM+4/F2Q 6u6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DqhgkJnHxUcz8diUkAKKorYICLcz915PBRp2VzGuspI=; b=EcXu1g7Yx38wnYR6KK5Nxqb4thqfhJ3XXdDEM+VscEQgb1TWfsoiO04nR1VhjwuCit +wkDhftRkAIMBQjCguUMDXUQ+jLsMJuJHMBrXEXJ/jxaTVao6BSy5TmlPvPf58YIJ/nP cYjIL6oTYhclxmMZWubYxuQX+3PyQtSEyeysHvhkOV1mM0SEfdhUTFO0ugvb3cqSayUR ymSZANsBlU3iIIqV9YUoYZIyY47YWXj/ELlelYNPVAPpCtnbx8LKFUuW+DHFk+GQeZgw r/Kf4CGc/JP3l+sC4InLZcv7M8LsTSDqwje0xMN9kU9S35JfxoWz+rZg2Q/VRYvH0tX2 PNfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="iJiqZm/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si1961249oti.301.2020.02.20.07.10.20; Thu, 20 Feb 2020 07:10:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="iJiqZm/8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728295AbgBTPKR (ORCPT + 99 others); Thu, 20 Feb 2020 10:10:17 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:15494 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728176AbgBTPKQ (ORCPT ); Thu, 20 Feb 2020 10:10:16 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 20 Feb 2020 07:10:02 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 20 Feb 2020 07:10:15 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 20 Feb 2020 07:10:15 -0800 Received: from [10.21.133.51] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 20 Feb 2020 15:10:12 +0000 Subject: Re: [PATCH v3 06/10] ASoC: tegra: add Tegra186 based DSPK driver To: Sameer Pujar , , , CC: , , , , , , , , , , , , , References: <1582180492-25297-1-git-send-email-spujar@nvidia.com> <1582180492-25297-7-git-send-email-spujar@nvidia.com> From: Jon Hunter Message-ID: <21f89564-2e04-7d06-bb07-5fa488d9ee8f@nvidia.com> Date: Thu, 20 Feb 2020 15:10:10 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1582180492-25297-7-git-send-email-spujar@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1582211402; bh=DqhgkJnHxUcz8diUkAKKorYICLcz915PBRp2VzGuspI=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=iJiqZm/8CmQ+plBvUef6JAzfIwThPCK7ELdBLATXQ1HHnhpPGcC6AMs5eGG50IHC/ qZyeHfJ4KuLem1QhEnqfHr6Tw/j4PStoRmi5VYIWKizvoGMfNxm3Q/qALQygxJgU1j DMUp3OoK8kZFgspILqGleRn4nDu9vdFkWMH33SQdG5n2KpGXM9uOxXhGu5Z8yeOO5U mLp06zsH2VCH/z3sfEieQ+gQ+CVLPvzCQekA0fqtYrFUnw+txu0u2KTUzLzE6Ita7k sJqSWo/Wj6KwwDfuuQKSBG3TIfVF0QYsr9Pm4Ka69rKw75EcrftJ/J+mX1c/Wd/HTz mwFQxuse41eKw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/02/2020 06:34, Sameer Pujar wrote: > The Digital Speaker Controller (DSPK) converts the multi-bit Pulse Code > Modulation (PCM) audio input to oversampled 1-bit Pulse Density Modulation > (PDM) output. From the signal flow perpsective, the DSPK can be viewed as > a PDM transmitter that up-samples the input to the desired sampling rate > by interpolation then converts the oversampled PCM input to the desired > 1-bit output via Delta Sigma Modulation (DSM). > > This patch registers DSPK component with ASoC framework. The component > driver exposes DAPM widgets, routes and kcontrols for the device. The DAI > driver exposes DSPK interfaces, which can be used to connect different > components in the ASoC layer. Makefile and Kconfig support is added to > allow to build the driver. The DSPK devices can be enabled in the DT via > "nvidia,tegra186-dspk" compatible binding. This driver can be used > on Tegra194 chip as well. > > Signed-off-by: Sameer Pujar > --- > sound/soc/tegra/Kconfig | 13 + > sound/soc/tegra/Makefile | 2 + > sound/soc/tegra/tegra186_dspk.c | 510 ++++++++++++++++++++++++++++++++++++++++ > sound/soc/tegra/tegra186_dspk.h | 73 ++++++ > 4 files changed, 598 insertions(+) > create mode 100644 sound/soc/tegra/tegra186_dspk.c > create mode 100644 sound/soc/tegra/tegra186_dspk.h Aside from Randy's comment ... Reviewed-by: Jon Hunter Cheers Jon -- nvpublic