Message ID | 20221221102328.9635-4-peter.ujfalusi@linux.intel.com |
---|---|
State | Accepted |
Commit | caf0f4662e07fcc721d1c85af82aa8a7d57621f3 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> 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 2AD1AC4332F for <alsa-devel@archiver.kernel.org>; Wed, 21 Dec 2022 10:25:45 +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 E282E16BF; Wed, 21 Dec 2022 11:24:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E282E16BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1671618343; bh=0dyPtu5RmOOuyfytvq/zHlFW7uUAOVR4m4Qh7vrwxxk=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=hMmoCiWDOceJU6dYnFwb7oF3r9bTwo539sRloMk/ueTcThbKSh3GaAyb2wTo3NcNc f8c4KYux37zaY+qXTlQZbkuTPXbIBvU8i3TbCSl36mfe/tlrKW3J9VQA9ZvPjb2AtT cLb5H3drEfsjNEHIXZsrz+G5RQPdYDL+iOwR1xos= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1BC5EF8052F; Wed, 21 Dec 2022 11:24:08 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AE2A9F804AD; Wed, 21 Dec 2022 11:23:33 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 77F6AF80022 for <alsa-devel@alsa-project.org>; Wed, 21 Dec 2022 11:23:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 77F6AF80022 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=VgpvtnlE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671618212; x=1703154212; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0dyPtu5RmOOuyfytvq/zHlFW7uUAOVR4m4Qh7vrwxxk=; b=VgpvtnlECd/HDJ7WgELbonYWhPvreIe06vdTjXRz0T45OAa1NC48OMpC DSXAB3gID8dZxtaUBSI7DpiFZV1nokFVmohQPkaLDaZxwPsYQdPmo5W7e frJdHRSPW4Gj2XQ/GfW9Rl6PgHvBoTBdJBss5CGXp/hP/iSuYRgpnuECv PU6ETFdv2g2k3bYC07J2ohVVbyGdI1da+JnfeQZvlg4GD70P1i4BW7EYR Wpl6D1ymeHB2fWx6xvTvdiK5/ptd5l+Zf+UiJCSvRD1EN1oa590GfOi/O BlLgjipVIrA1oSdruMEjhkoxc2xcZ0AegoLrYDn5Hpms3o5IC10PvRzKV A==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="406078624" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="406078624" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 02:23:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="681984298" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="681984298" Received: from cofearra-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.20.202]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 02:23:28 -0800 From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH 03/11] ASoC: SOF: Add helper macro to be used to get an IPC ops Date: Wed, 21 Dec 2022 12:23:20 +0200 Message-Id: <20221221102328.9635-4-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221221102328.9635-1-peter.ujfalusi@linux.intel.com> References: <20221221102328.9635-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" <alsa-devel.alsa-project.org> List-Unsubscribe: <https://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <https://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=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" <alsa-devel-bounces@alsa-project.org> |
Series |
ASoC: SOF: Extend the IPC ops optionality
|
expand
|
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 6760fd895950..144906c4cb63 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -502,6 +502,10 @@ struct snd_sof_ipc { const struct sof_ipc_ops *ops; }; +/* Helper to retrieve the IPC ops */ +#define sof_ipc_get_ops(sdev, ops_name) \ + (((sdev)->ipc && (sdev)->ipc->ops) ? (sdev)->ipc->ops->ops_name : NULL) + /* * SOF Device Level. */