From patchwork Wed Feb 1 12:32:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 649202 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0893C05027 for ; Wed, 1 Feb 2023 12:33:31 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 368A61ED; Wed, 1 Feb 2023 13:32:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 368A61ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1675254809; bh=tFddUHtOVgwvjVM+0gmJXWsjIARB5Qfbh97T0KNUV2w=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=HGPMt265bM2LJ7Ui5jDlprsZPXG765TEefp7NvXiIs/jgWw/N5BKxzKllZinRYtXm W2uVWrijhsRi7CFgdyATnkGShiOPhJo3mt/jT7O6TXqW6mGGZQM/kxO6bdls+CPUa0 hC1yLBuIWuj6RP582h54QGPukjCZY3ribibREVXg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C842DF8045D; Wed, 1 Feb 2023 13:32:38 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EDBA0F80169; Wed, 1 Feb 2023 13:32:36 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 49775F80169 for ; Wed, 1 Feb 2023 13:32:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49775F80169 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=RlKT37IR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675254750; x=1706790750; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tFddUHtOVgwvjVM+0gmJXWsjIARB5Qfbh97T0KNUV2w=; b=RlKT37IRQE3envsJfGhyUI+oUwiDsdFn2Q17DwtlRmRbWBVLSgVlTPlw m50M3qCNj+1r14lMghovl1UZrc+cHlZWzysnonu/xoWKVxet0HjVArvpQ 0rOzFEZ3pcEguvoScQYsZyxhtVXWZ72vDmtA14EP4pyUa/CtEZDytHQZ9 VZ7zbbyhYdgn+2JWn2EIgsm8ER65+aslKUm6QWBW9Da1bAK5qAkfYLVaR jfaidXFwxgg2aE3nRWdCuqbQfocjXTN7ijhxwVwdDBIGITF2VVJNvIzTM gLayI8l91rbNTHwN/fj+B9+tR77T1tVdw5FZAgVmRBipa3D6wnVQx52Om A==; X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="328143499" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="328143499" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 04:32:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10607"; a="788865663" X-IronPort-AV: E=Sophos;i="5.97,263,1669104000"; d="scan'208";a="788865663" Received: from jehdildi-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.31.67]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 04:32:21 -0800 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH 0/9] ASoC: SOF: core/ipc4/mtl: Add support for PCM delay reporting Date: Wed, 1 Feb 2023 14:32:22 +0200 Message-Id: <20230201123231.26361-1-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, pierre-louis.bossart@linux.intel.com, rander.wang@intel.com, ranjani.sridharan@linux.intel.com, yung-chuan.liao@linux.intel.com Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi, The following series adds support for the PCM delay reporting in SOF core level and implements the needed infrastructure with IPC4 to finally enable it for MTL. Currently this is only supported on MTL (and via IPC4), but with the infrastructure in place it will be possible to support other platforms with DeepBuffer. Regards, Peter --- Rander Wang (9): ASoC: SOF: add ipc4_fw_reg header file ASoC: SOF: add fw_info_box support ASoC: SOF: add time info structure for ipc4 path ASoC: SOF: ipc4-pcm: allocate time info for pcm delay feature ASoC: SOF: ipc4-pcm: add hw_params ASoC: SOF: add delay function support in sof framework ASoC: SOF: add get_stream_position ops for pcm delay ASoC: SOF: Intel: mtl: add get_stream_position support ASoC: SOF: ipc4-pcm: add delay function support sound/soc/sof/intel/mtl.c | 14 +++ sound/soc/sof/intel/mtl.h | 6 + sound/soc/sof/ipc4-fw-reg.h | 155 ++++++++++++++++++++++++ sound/soc/sof/ipc4-pcm.c | 230 ++++++++++++++++++++++++++++++++++++ sound/soc/sof/ipc4-priv.h | 15 +++ sound/soc/sof/ipc4.c | 3 + sound/soc/sof/ops.h | 10 ++ sound/soc/sof/pcm.c | 13 ++ sound/soc/sof/sof-audio.h | 6 + sound/soc/sof/sof-priv.h | 10 ++ 10 files changed, 462 insertions(+) create mode 100644 sound/soc/sof/ipc4-fw-reg.h