Skip to content

Commit 618bdbd

Browse files
marcinszkudlinskikv2019i
authored andcommitted
dp: remove unused code from dp_queue
Dp queues are no longer kept as a list of objects, remove unused list maintenance code and data Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
1 parent 4240869 commit 618bdbd

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

src/audio/dp_queue.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ struct dp_queue *dp_queue_create(size_t min_available, size_t min_free_space, ui
270270
sink_init(dp_queue_get_sink(dp_queue), &dp_queue_sink_ops,
271271
dp_queue->audio_stream_params);
272272

273-
list_init(&dp_queue->list);
274-
275273
/* set obs/ibs in sink/source interfaces */
276274
sink_set_min_free_space(&dp_queue->_sink_api, min_free_space);
277275
source_set_min_available(&dp_queue->_source_api, min_available);

src/include/sof/audio/dp_queue.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ struct sof_audio_stream_params;
107107
struct dp_queue {
108108
CORE_CHECK_STRUCT_FIELD;
109109

110-
/* public */
111-
struct list_item list; /**< fields for connection queues in a list */
112-
113110
/* public: read only */
114111

115112
/* note!
@@ -162,7 +159,6 @@ void dp_queue_free(struct dp_queue *dp_queue)
162159
if (!dp_queue)
163160
return;
164161
CORE_CHECK_STRUCT(dp_queue);
165-
list_item_del(&dp_queue->list);
166162
rfree((__sparse_force void *)dp_queue->_data_buffer);
167163
rfree(dp_queue);
168164
}
@@ -199,28 +195,4 @@ bool dp_queue_is_shared(struct dp_queue *dp_queue)
199195
return !!(dp_queue->_flags & DP_QUEUE_MODE_SHARED);
200196
}
201197

202-
/**
203-
* @brief append a dp_queue to the list
204-
*/
205-
static inline void dp_queue_append_to_list(struct dp_queue *item, struct list_item *list)
206-
{
207-
list_item_append(&item->list, list);
208-
}
209-
210-
/**
211-
* @brief return a pointer to the first dp_queue on the list
212-
*/
213-
static inline struct dp_queue *dp_queue_get_first_item(struct list_item *list)
214-
{
215-
return list_first_item(list, struct dp_queue, list);
216-
}
217-
218-
/**
219-
* @brief return a pointer to the next dp_queue on the list
220-
*/
221-
static inline struct dp_queue *dp_queue_get_next_item(struct dp_queue *item)
222-
{
223-
return list_next_item(item, list);
224-
}
225-
226198
#endif /* __SOF_DP_QUEUE_H__ */

0 commit comments

Comments
 (0)