diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-04-05 10:27:05 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-11 19:17:59 +0100 |
commit | 2f1f5a438899a9d2933ef004a1f0f2c962b29fb4 (patch) | |
tree | 33cc6f6ebd3ab82d111d19834b9c181646510fa0 /sound/soc/sof/sof-priv.h | |
parent | 85d0f881471531ffb081711b13df32b1f6f1f637 (diff) | |
download | lwn-2f1f5a438899a9d2933ef004a1f0f2c962b29fb4.tar.gz lwn-2f1f5a438899a9d2933ef004a1f0f2c962b29fb4.zip |
ASoC: SOF: ipc: Switch over to use the rx_msg ops
Use the new ops for handling message reception.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220405172708.122168-13-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/sof-priv.h')
-rw-r--r-- | sound/soc/sof/sof-priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 2bf7844f01d7..6a09e5a73a50 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -603,7 +603,10 @@ struct snd_sof_ipc *snd_sof_ipc_init(struct snd_sof_dev *sdev); void snd_sof_ipc_free(struct snd_sof_dev *sdev); void snd_sof_ipc_get_reply(struct snd_sof_dev *sdev); void snd_sof_ipc_reply(struct snd_sof_dev *sdev, u32 msg_id); -void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev); +static inline void snd_sof_ipc_msgs_rx(struct snd_sof_dev *sdev) +{ + sdev->ipc->ops->rx_msg(sdev); +} int snd_sof_ipc_valid(struct snd_sof_dev *sdev); int sof_ipc_tx_message(struct snd_sof_ipc *ipc, void *msg_data, size_t msg_bytes, void *reply_data, size_t reply_bytes); |