Skip to content

Commit a6096f8

Browse files
ktrzcinxbroonie
authored andcommitted
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: Karol Trzcinski <karolx.trzcinski@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200312200622.24477-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4ea2578 commit a6096f8

3 files changed

Lines changed: 1 addition & 21 deletions

File tree

‎include/sound/sof/info.h‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
/* extended data types that can be appended onto end of sof_ipc_fw_ready */
3030
enum sof_ipc_ext_data {
31-
SOF_IPC_EXT_DMA_BUFFER = 0,
31+
SOF_IPC_EXT_UNUSED = 0,
3232
SOF_IPC_EXT_WINDOW = 1,
3333
SOF_IPC_EXT_CC_INFO = 2,
3434
};
@@ -83,22 +83,6 @@ struct sof_ipc_ext_data_hdr {
8383
uint32_t type; /**< SOF_IPC_EXT_ */
8484
} __packed;
8585

86-
struct sof_ipc_dma_buffer_elem {
87-
struct sof_ipc_hdr hdr;
88-
uint32_t type; /**< SOF_IPC_REGION_ */
89-
uint32_t id; /**< platform specific - used to map to host memory */
90-
struct sof_ipc_host_buffer buffer;
91-
} __packed;
92-
93-
/* extended data DMA buffers for IPC, trace and debug */
94-
struct sof_ipc_dma_buffer_data {
95-
struct sof_ipc_ext_data_hdr ext_hdr;
96-
uint32_t num_buffers;
97-
98-
/* host files in buffer[n].buffer */
99-
struct sof_ipc_dma_buffer_elem buffer[];
100-
} __packed;
101-
10286
struct sof_ipc_window_elem {
10387
struct sof_ipc_hdr hdr;
10488
uint32_t type; /**< SOF_IPC_REGION_ */

‎sound/soc/sof/loader.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset)
9595

9696
/* process structure data */
9797
switch (ext_hdr->type) {
98-
case SOF_IPC_EXT_DMA_BUFFER:
99-
ret = 0;
100-
break;
10198
case SOF_IPC_EXT_WINDOW:
10299
ret = get_ext_windows(sdev, ext_hdr);
103100
break;

‎sound/soc/sof/sof-priv.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ struct snd_sof_dev {
415415
u32 enabled_cores_mask; /* keep track of enabled cores */
416416

417417
/* FW configuration */
418-
struct sof_ipc_dma_buffer_data *info_buffer;
419418
struct sof_ipc_window *info_window;
420419

421420
/* IPC timeouts in ms */

0 commit comments

Comments
 (0)