Skip to content

Commit

Permalink
audio: drc_hifi4: Fix compilation warnings
Browse files Browse the repository at this point in the history
This fixes following compilation warnings:

repos/sof/src/audio/drc/drc_hifi4.c: In function ‘drc_delay_input_sample_s16’:
repos/sof/src/audio/drc/drc_hifi4.c:580: warning: assignment from incompatible pointer type
repos/sof/src/audio/drc/drc_hifi4.c:581: warning: assignment from incompatible pointer type
repos/sof/src/audio/drc/drc_hifi4.c: In function ‘drc_delay_input_sample_s32’:
repos/sof/src/audio/drc/drc_hifi4.c:718: warning: assignment from incompatible pointer type
repos/sof/src/audio/drc/drc_hifi4.c:719: warning: assignment from incompatible pointer type

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta authored and lgirdwood committed Nov 29, 2023
1 parent a4a3b3a commit 0c3ae5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/audio/drc/drc_hifi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ static void drc_delay_input_sample_s16(struct drc_state *state,
drc_pre_delay_index_inc(&state->pre_delay_read_index, nfrm);
}

*x = x0;
*y = y0;
*x = (int16_t *)x0;
*y = (int16_t *)y0;
}

static void drc_s16_default(struct processing_module *mod,
Expand Down Expand Up @@ -715,8 +715,8 @@ static void drc_delay_input_sample_s32(struct drc_state *state,
drc_pre_delay_index_inc(&state->pre_delay_read_index, nfrm);
}

*x = x0;
*y = y0;
*x = (int32_t *)x0;
*y = (int32_t *)y0;
}
#endif

Expand Down

0 comments on commit 0c3ae5a

Please sign in to comment.