From patchwork Tue Nov 8 00:29:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13035559 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 4DF33C433FE for ; Tue, 8 Nov 2022 00:25:05 +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 797DE823; Tue, 8 Nov 2022 01:24:13 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 797DE823 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1667867103; bh=NuC8kKBrfvp08/rez3oFrzAks7/tQGO1pKDAS8gvr5Q=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Vs1LhH8N797rUMPGgrZwD9t82SRSslxhE4b8ZLZEeUSqGGUk6WgMCSvY15sugGfAp vFE5xXS7GnI6zjvVJQ51PU9FPBwZVQq0q8egLait1FadMIQpiSUuWHQ0kXIFBJW+Wv vHvlGyvXClKknCtqF0JdZnISBz2LcpdVZUT3fqD8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id DD331F804C1; Tue, 8 Nov 2022 01:24:01 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E3BEAF804D0; Tue, 8 Nov 2022 01:23:59 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 60D75F80116 for ; Tue, 8 Nov 2022 01:23:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 60D75F80116 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NqkpdC/+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667867034; x=1699403034; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NuC8kKBrfvp08/rez3oFrzAks7/tQGO1pKDAS8gvr5Q=; b=NqkpdC/+7HI+vM4KhqCu1/92pQtLnU+d957F8Bz29hMYbVeQkKWrm1El iFOLshBxPbQKpbRNWQSrU6+8sjmURAb2rT9zQLYezRGNJYTuVYCDq2tWG d/sFk55kB2J3baJDL45LQsKTYhRhxcceG9I3BBPTEt85uQqwIck+0uL6i cDeUNwPIii9nji4hNbWDcP1kv572EixIr/A7wgZbqVOr24uaInC19kiI0 ZvjPWs1ExSVuIK6jC8xcRm3SGirqWkp+nm5n7WuG46x7Jp6a+TpxcUk4Z C/lZph0wycZpPYecE15RVgkLIeQiPMLRYcJtzbMkSchGy3mtUjmvkvxH+ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="293927269" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="293927269" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 16:23:46 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="614070231" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="614070231" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 16:23:44 -0800 From: Bard Liao To: broonie@kernel.org, tiwai@suse.de Subject: [PATCH 1/3] ASoC: SOF: ipc4-topology: rename sof_ipc4_widget_free_comp Date: Tue, 8 Nov 2022 08:29:08 +0800 Message-Id: <20221108002910.2819709-2-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108002910.2819709-1-yung-chuan.liao@linux.intel.com> References: <20221108002910.2819709-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, peter.ujfalusi@linux.intel.com, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com, ranjani.sridharan@linux.intel.com 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" sof_ipc4_widget_free_comp is dedicated to pipeline. Rename it to sof_ipc4_widget_free_comp_pipeline. Signed-off-by: Bard Liao Reviewed-by: Rander Wang Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Reviewed-by: Péter Ujfalusi --- sound/soc/sof/ipc4-topology.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index ab85dde4303b..4f056adc7181 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -280,7 +280,7 @@ static void sof_ipc4_free_audio_fmt(struct sof_ipc4_available_audio_format *avai available_fmt->out_audio_fmt = NULL; } -static void sof_ipc4_widget_free_comp(struct snd_sof_widget *swidget) +static void sof_ipc4_widget_free_comp_pipeline(struct snd_sof_widget *swidget) { kfree(swidget->private); } @@ -1884,7 +1884,8 @@ static const struct sof_ipc_tplg_widget_ops tplg_ipc4_widget_ops[SND_SOC_DAPM_TY dai_token_list, ARRAY_SIZE(dai_token_list), NULL, sof_ipc4_prepare_copier_module, sof_ipc4_unprepare_copier_module}, - [snd_soc_dapm_scheduler] = {sof_ipc4_widget_setup_comp_pipeline, sof_ipc4_widget_free_comp, + [snd_soc_dapm_scheduler] = {sof_ipc4_widget_setup_comp_pipeline, + sof_ipc4_widget_free_comp_pipeline, pipeline_token_list, ARRAY_SIZE(pipeline_token_list), NULL, NULL, NULL}, [snd_soc_dapm_pga] = {sof_ipc4_widget_setup_comp_pga, sof_ipc4_widget_free_comp_pga,