X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=amp_filter.c;h=360e3fc2d7429bb7aa8219248ff4d38505a86ac2;hb=501b83a39828c9d3db5498c7352a2e5b60175bba;hp=54ff0adeaabdca3efceb640ae2e381c3075d75c3;hpb=610cb53b94af8e95326cd44b7845f35cffdb6bf3;p=paraslash.git diff --git a/amp_filter.c b/amp_filter.c index 54ff0ade..360e3fc2 100644 --- a/amp_filter.c +++ b/amp_filter.c @@ -29,7 +29,7 @@ static void amp_close(struct filter_node *fn) static void amp_open(struct filter_node *fn) { - struct private_amp_data *pad = para_calloc(sizeof(*pad)); + struct private_amp_data *pad = zalloc(sizeof(*pad)); unsigned given = FILTER_CMD_OPT_GIVEN(AMP, AMP, fn->lpr); uint32_t amp_arg = FILTER_CMD_OPT_UINT32_VAL(AMP, AMP, fn->lpr); @@ -43,7 +43,7 @@ static void amp_open(struct filter_node *fn) pad->amp, pad->amp / 64.0 + 1.0); } -static int amp_post_select(__a_unused struct sched *s, void *context) +static int amp_post_monitor(__a_unused struct sched *s, void *context) { struct filter_node *fn = context; struct private_amp_data *pad = fn->private_data; @@ -100,6 +100,6 @@ err: const struct filter lsg_filter_cmd_com_amp_user_data = { .open = amp_open, .close = amp_close, - .pre_select = generic_filter_pre_select, - .post_select = amp_post_select, + .pre_monitor = generic_filter_pre_monitor, + .post_monitor = amp_post_monitor, };