+ af_mask = ret;
+ FOR_EACH_AUDIO_FORMAT(j) {
+ a = afi + j;
+ if ((af_mask & (1 << j)) == 0) /* no match */
+ continue;
+ ret = -E_WRITE_COMMON_SYNTAX;
+ wconf = check_writer_arg(cmd, &writer_num);
+ if (!wconf)
+ goto out;
+ nw = a->num_writers;
+ a->writer_nums = para_realloc(a->writer_nums, (nw + 1) * sizeof(int));
+ a->writer_conf = para_realloc(a->writer_conf, (nw + 1) * sizeof(void *));
+ a->writer_nums[nw] = writer_num;
+ a->writer_conf[nw] = wconf;
+ PARA_INFO_LOG("%s writer #%d: %s\n", audio_formats[writer_num],
+ nw, writer_names[writer_num]);
+ a->num_writers++;