Skip to content

Commit 4239e88

Browse files
author
Jyri Sarha
committed
SQUASHaa copier hostiin
1 parent 6f0f977 commit 4239e88

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/audio/copier/copier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ __cold static int copier_free(struct processing_module *mod)
271271
switch (dev->ipc_config.type) {
272272
case SOF_COMP_HOST:
273273
if (!cd->ipc_gtw)
274-
copier_host_free(mod);
274+
copier_host_free(cd);
275275
else
276276
/* handle gtw case */
277277
copier_ipcgtw_free(cd);

src/audio/copier/copier_host.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,8 @@ __cold int copier_host_create(struct processing_module *mod, struct copier_data
253253
return ret;
254254
}
255255

256-
__cold void copier_host_free(struct processing_module *mod)
256+
__cold void copier_host_free(struct copier_data *cd)
257257
{
258-
struct copier_data *cd = module_get_private_data(mod);
259-
260258
assert_can_be_cold();
261259

262260
#if CONFIG_HOST_DMA_STREAM_SYNCHRONIZATION

src/audio/copier/host_copier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void host_common_one_shot(struct host_data *hd, uint32_t bytes);
132132
int copier_host_create(struct processing_module *mod, struct copier_data *cd,
133133
const struct ipc4_copier_module_cfg *copier_cfg,
134134
struct pipeline *pipeline);
135-
void copier_host_free(struct processing_module *mod);
135+
void copier_host_free(struct copier_data *cd);
136136
int copier_host_params(struct copier_data *cd, struct comp_dev *dev,
137137
struct sof_ipc_stream_params *params);
138138
void copier_host_dma_cb(struct comp_dev *dev, size_t bytes);

0 commit comments

Comments
 (0)