From patchwork Thu Mar 10 04:27:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjani Sridharan X-Patchwork-Id: 550537 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 48F3CC433F5 for ; Thu, 10 Mar 2022 04:28:39 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AC99716EE; Thu, 10 Mar 2022 05:27:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AC99716EE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646886517; bh=lKr0wbsPJRu+RA7flBYlV5F7OhlCB58ZaQPUkOl91+s=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=NEnev5ORKXK46RsGl80DfzIopfb52ZdTNG9li1nVquQcianTDbrse3rYHoV0cjGWH yiY2wdhP+oi6D3CRSIsB33J9sBSY6G1Rq6GbhNhlCzJ8Rzn1m68XT+3cPU7wVSMcQG zLbhoYaNKa3NChq7rtYEvj3Garn44Liv0kwih+8Q= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1FEFBF80137; Thu, 10 Mar 2022 05:27:47 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8976CF8012C; Thu, 10 Mar 2022 05:27:43 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 E4433F8012C for ; Thu, 10 Mar 2022 05:27:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E4433F8012C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="V8B6Mg/f" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646886461; x=1678422461; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lKr0wbsPJRu+RA7flBYlV5F7OhlCB58ZaQPUkOl91+s=; b=V8B6Mg/f5fv8qJjIv4cfIunePR30Gx5Z1/0AuW0haVNx+oP0pUN2ETzg 6HWQAAwOSkMeIgMRelsmO1iIZo/bM0SrxWxAPK9L93SbnwbLFk2jGJPwK F+iRZZdwX3fdHT9C/oOmCr8D+qdKFZ8Qu7ZMSHiHDNeEjNFZvsnO2meeU uO04ePnlnfP8/Zz6piHvoFlSNDk97SdT6fBT4M7xxqA6CMkrUyIwAhO0O WxJRoAuzubMINp44UH2slhZ+b+zxe6J1HMP0jB8jh7TWTMkMnETfiAk39 RrLl70mFoRYh7zVtqGFsMl1hVnBZeIA3sNrwarw8eF/fSGLbMhBZM9Y6S A==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="318380879" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="318380879" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 20:27:31 -0800 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="547884663" Received: from ttahmed-mobl2.amr.corp.intel.com (HELO rsridh2-mobl1.localdomain) ([10.254.50.225]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 20:27:31 -0800 From: Ranjani Sridharan To: alsa-devel@alsa-project.org Subject: [PATCH 00/10] Make the SOF pcm_hw_params DSP op IPC agnostic Date: Wed, 9 Mar 2022 20:27:10 -0800 Message-Id: <20220310042720.976809-1-ranjani.sridharan@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: tiwai@suse.de, broonie@kernel.org, Ranjani Sridharan X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" In preparation for supporting the newly introduced IPC version in the SOF firmware, this patchset adds the changes required to make the pcm_hw_params DSP op IPC agnostic. Peter Ujfalusi (10): ASoC: SOF: sof-priv: Remove stale snd_sof_ipc_stream_pcm_params() declaration ASoC: SOF: Make pcm_hw_params snd_sof_dsp_ops callback IPC neutral ASoC: SOF: pcm: Remove sof_pcm_dsp_params() wrapper ASoC: SOF: Introduce optional callback to configure stream data offset ASoC: SOF: Mark snd_sof_dsp_ops.ipc_pcm_params() callback optional ASoC: SOF: stream-ipc: Add sof_set_stream_data_offset() ASoC: SOF: Intel: hda-ipc: Add hda_set_stream_data_offset() ASoC: SOF: Intel: Convert to use the generic set_stream_data_offset ops ASoC: SOF: imx: Convert to use the generic set_stream_data_offset ops ASoC: SOF: Remove ipc_pcm_params() ops sound/soc/sof/amd/acp-pcm.c | 8 ++++--- sound/soc/sof/amd/acp.h | 3 ++- sound/soc/sof/core.c | 3 +-- sound/soc/sof/imx/imx8.c | 4 ++-- sound/soc/sof/imx/imx8m.c | 2 +- sound/soc/sof/intel/apl.c | 2 +- sound/soc/sof/intel/bdw.c | 2 +- sound/soc/sof/intel/byt.c | 4 ++-- sound/soc/sof/intel/cnl.c | 2 +- sound/soc/sof/intel/hda-ipc.c | 8 +++---- sound/soc/sof/intel/hda-pcm.c | 18 ++++---------- sound/soc/sof/intel/hda.h | 8 +++---- sound/soc/sof/intel/icl.c | 2 +- sound/soc/sof/intel/pci-tng.c | 2 +- sound/soc/sof/intel/tgl.c | 2 +- sound/soc/sof/ops.h | 21 +++++++++------- sound/soc/sof/pcm.c | 45 ++++++++++++++++++++--------------- sound/soc/sof/sof-priv.h | 33 +++++++++++++++++-------- sound/soc/sof/stream-ipc.c | 9 ++++--- 19 files changed, 95 insertions(+), 83 deletions(-)