Commit a6096f88 authored by Karol Trzcinski's avatar Karol Trzcinski Committed by Mark Brown

ASoC: SOF: Remove SOF_IPC_EXT_DMA_BUFFER

This enum code, and what's more important, related structures is
unused in whole source code, so it shouldn't be kept.
Signed-off-by: default avatarKarol Trzcinski <karolx.trzcinski@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200312200622.24477-4-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4ea25785
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
/* extended data types that can be appended onto end of sof_ipc_fw_ready */ /* extended data types that can be appended onto end of sof_ipc_fw_ready */
enum sof_ipc_ext_data { enum sof_ipc_ext_data {
SOF_IPC_EXT_DMA_BUFFER = 0, SOF_IPC_EXT_UNUSED = 0,
SOF_IPC_EXT_WINDOW = 1, SOF_IPC_EXT_WINDOW = 1,
SOF_IPC_EXT_CC_INFO = 2, SOF_IPC_EXT_CC_INFO = 2,
}; };
...@@ -83,22 +83,6 @@ struct sof_ipc_ext_data_hdr { ...@@ -83,22 +83,6 @@ struct sof_ipc_ext_data_hdr {
uint32_t type; /**< SOF_IPC_EXT_ */ uint32_t type; /**< SOF_IPC_EXT_ */
} __packed; } __packed;
struct sof_ipc_dma_buffer_elem {
struct sof_ipc_hdr hdr;
uint32_t type; /**< SOF_IPC_REGION_ */
uint32_t id; /**< platform specific - used to map to host memory */
struct sof_ipc_host_buffer buffer;
} __packed;
/* extended data DMA buffers for IPC, trace and debug */
struct sof_ipc_dma_buffer_data {
struct sof_ipc_ext_data_hdr ext_hdr;
uint32_t num_buffers;
/* host files in buffer[n].buffer */
struct sof_ipc_dma_buffer_elem buffer[];
} __packed;
struct sof_ipc_window_elem { struct sof_ipc_window_elem {
struct sof_ipc_hdr hdr; struct sof_ipc_hdr hdr;
uint32_t type; /**< SOF_IPC_REGION_ */ uint32_t type; /**< SOF_IPC_REGION_ */
......
...@@ -95,9 +95,6 @@ int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) ...@@ -95,9 +95,6 @@ int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset)
/* process structure data */ /* process structure data */
switch (ext_hdr->type) { switch (ext_hdr->type) {
case SOF_IPC_EXT_DMA_BUFFER:
ret = 0;
break;
case SOF_IPC_EXT_WINDOW: case SOF_IPC_EXT_WINDOW:
ret = get_ext_windows(sdev, ext_hdr); ret = get_ext_windows(sdev, ext_hdr);
break; break;
......
...@@ -415,7 +415,6 @@ struct snd_sof_dev { ...@@ -415,7 +415,6 @@ struct snd_sof_dev {
u32 enabled_cores_mask; /* keep track of enabled cores */ u32 enabled_cores_mask; /* keep track of enabled cores */
/* FW configuration */ /* FW configuration */
struct sof_ipc_dma_buffer_data *info_buffer;
struct sof_ipc_window *info_window; struct sof_ipc_window *info_window;
/* IPC timeouts in ms */ /* IPC timeouts in ms */
......
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