Skip to content

Commit 0c3ae5a

Browse files
dbalutalgirdwood
authored andcommitted
audio: drc_hifi4: Fix compilation warnings
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>
1 parent a4a3b3a commit 0c3ae5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/audio/drc/drc_hifi4.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ static void drc_delay_input_sample_s16(struct drc_state *state,
577577
drc_pre_delay_index_inc(&state->pre_delay_read_index, nfrm);
578578
}
579579

580-
*x = x0;
581-
*y = y0;
580+
*x = (int16_t *)x0;
581+
*y = (int16_t *)y0;
582582
}
583583

584584
static void drc_s16_default(struct processing_module *mod,
@@ -715,8 +715,8 @@ static void drc_delay_input_sample_s32(struct drc_state *state,
715715
drc_pre_delay_index_inc(&state->pre_delay_read_index, nfrm);
716716
}
717717

718-
*x = x0;
719-
*y = y0;
718+
*x = (int32_t *)x0;
719+
*y = (int32_t *)y0;
720720
}
721721
#endif
722722

0 commit comments

Comments
 (0)