Commit f535880b authored by Rander Wang's avatar Rander Wang Committed by Mark Brown

ASoC: SOF: move definition of snd_sof_ipc to header file

Move definition of struct snd_sof_ipc to the header file so it can be
shared with new IPC versions.
Signed-off-by: default avatarRander Wang <rander.wang@intel.com>
Reviewed-by: default avatarPéter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220308164344.577647-19-ranjani.sridharan@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 839e484f
...@@ -27,18 +27,6 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, void *msg_buf); ...@@ -27,18 +27,6 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, void *msg_buf);
* IPC message Tx/Rx message handling. * IPC message Tx/Rx message handling.
*/ */
/* SOF generic IPC data */
struct snd_sof_ipc {
struct snd_sof_dev *sdev;
/* protects messages and the disable flag */
struct mutex tx_mutex;
/* disables further sending of ipc's */
bool disable_ipc_tx;
struct snd_sof_ipc_msg msg;
};
struct sof_ipc_ctrl_data_params { struct sof_ipc_ctrl_data_params {
size_t msg_bytes; size_t msg_bytes;
size_t hdr_bytes; size_t hdr_bytes;
......
...@@ -345,6 +345,18 @@ struct snd_sof_ipc_msg { ...@@ -345,6 +345,18 @@ struct snd_sof_ipc_msg {
bool ipc_complete; bool ipc_complete;
}; };
/* SOF generic IPC data */
struct snd_sof_ipc {
struct snd_sof_dev *sdev;
/* protects messages and the disable flag */
struct mutex tx_mutex;
/* disables further sending of ipc's */
bool disable_ipc_tx;
struct snd_sof_ipc_msg msg;
};
/* /*
* SOF Device Level. * SOF Device Level.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment