Skip to content

Commit

Permalink
ASoC: SOF: move definition of snd_sof_ipc to header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
RanderWang authored and plbossart committed Sep 29, 2021
1 parent 850d68a commit 9aea033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sound/soc/sof/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ static void ipc_stream_message(struct snd_sof_dev *sdev, u32 msg_cmd);
* 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;
Expand Down
12 changes: 12 additions & 0 deletions sound/soc/sof/sof-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,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;
};

enum snd_sof_fw_state {
SOF_FW_BOOT_NOT_STARTED = 0,
SOF_FW_BOOT_PREPARE,
Expand Down

0 comments on commit 9aea033

Please sign in to comment.