]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: SOF: move definition of snd_sof_ipc to header file
authorRander Wang <rander.wang@intel.com>
Tue, 8 Mar 2022 16:43:44 +0000 (08:43 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2022 13:30:10 +0000 (13:30 +0000)
Move definition of struct snd_sof_ipc to the header file so it can be
shared with new IPC versions.

Signed-off-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.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/20220308164344.577647-19-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc.c
sound/soc/sof/sof-priv.h

index c729bb7bf8c820ab3572e28e8bd895552dffa9d9..34084e0008f1e87579a1c50d779bc6bc48479ddc 100644 (file)
@@ -27,18 +27,6 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, void *msg_buf);
  * 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 {
        size_t msg_bytes;
        size_t hdr_bytes;
index 2e19ac619ad5729a8ac7fbfee86ca86814957c39..7f0514db4d067835e15d805aeaf7221579b34a53 100644 (file)
@@ -345,6 +345,18 @@ struct snd_sof_ipc_msg {
        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.
  */