Skip to content

Commit 4c29f63

Browse files
author
Jyri Sarha
committed
SQUASH Audio: Copier: All memory allocations through module API
1 parent 1be12a0 commit 4c29f63

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/audio/copier/copier.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ static int mic_privacy_configure(struct processing_module *mod, struct copier_da
100100

101101
ret = copier_gain_set_params(mod->dev, &mic_priv_data->mic_priv_gain_params,
102102
zeroing_wait_time, SOF_DAI_INTEL_NONE);
103-
if (ret != 0) {
104-
rfree(mic_priv_data);
103+
if (ret != 0)
105104
return ret;
106-
}
107105

108106
cd->mic_priv = mic_priv_data;
109107

@@ -121,8 +119,6 @@ static void mic_privacy_free(struct copier_data *cd)
121119
mic_privacy_enable_dmic_irq(false);
122120

123121
notifier_unregister(cd->mic_priv, NULL, NOTIFIER_ID_MIC_PRIVACY_STATE_CHANGE);
124-
125-
rfree(cd->mic_priv);
126122
}
127123
#endif
128124

0 commit comments

Comments
 (0)