Skip to content

Commit

Permalink
Merge pull request #60 from tlauda/topic/glk_001_kw
Browse files Browse the repository at this point in the history
klocwork: fix initialization of HiFi3 variables
  • Loading branch information
tlauda authored Jul 6, 2018
2 parents 599e180 + 6158e0e commit bc596bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/audio/src_hifi3.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ static inline void fir_filter(ae_f32 *rp, const void *cp, ae_f32 *wp0,
*/
ae_f64 a0;
ae_f64 a1;
ae_f24x2 data2;
ae_f24x2 coef2;
ae_f24x2 d0;
ae_f24x2 d1;
ae_f24x2 data2 = AE_ZERO24();
ae_f24x2 coef2 = AE_ZERO24();
ae_f24x2 d0 = AE_ZERO24();
ae_f24x2 d1 = AE_ZERO24();
ae_f24x2 *coefp;
ae_f24x2 *dp;
ae_f24 *dp1;
Expand Down Expand Up @@ -332,7 +332,7 @@ void src_polyphase_stage_cir(struct src_stage_prm *s)
* 16x integers
* 7x address pointers,
*/
ae_int32x2 q;
ae_int32x2 q = AE_ZERO32();
ae_f32 *rp;
ae_f32 *wp;
int i;
Expand Down Expand Up @@ -448,7 +448,7 @@ void src_polyphase_stage_cir_s24(struct src_stage_prm *s)
* 16x integers
* 7x address pointers,
*/
ae_int32x2 q;
ae_int32x2 q = AE_ZERO32();
ae_f32 *rp;
ae_f32 *wp;
int i;
Expand Down
10 changes: 5 additions & 5 deletions src/audio/volume_hifi3.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void vol_s16_to_s16(struct comp_dev *dev, struct comp_buffer *sink,
ae_f32x2 volume;
ae_f32x2 mult;
ae_f32x2 out_sample;
ae_f16x4 in_sample;
ae_f16x4 in_sample = AE_ZERO16();
size_t channel;
int i;
int limit = source->size / (dev->params.channels << 1);
Expand Down Expand Up @@ -105,7 +105,7 @@ static void vol_s16_to_sX(struct comp_dev *dev, struct comp_buffer *sink,
ae_f32x2 volume;
ae_f32x2 mult;
ae_f32x2 out_sample;
ae_f16x4 in_sample;
ae_f16x4 in_sample = AE_ZERO16();
size_t channel;
uint8_t shift_left = 0;
int i;
Expand Down Expand Up @@ -161,7 +161,7 @@ static void vol_sX_to_s16(struct comp_dev *dev, struct comp_buffer *sink,
uint32_t vol_scaled[SOF_IPC_MAX_CHANNELS];
ae_f32x2 volume;
ae_f32x2 mult;
ae_f32x2 in_sample;
ae_f32x2 in_sample = AE_ZERO32();
ae_f16x4 out_sample;
size_t channel;
uint8_t shift_left = 0;
Expand Down Expand Up @@ -216,7 +216,7 @@ static void vol_s24_to_s24_s32(struct comp_dev *dev, struct comp_buffer *sink,
struct comp_data *cd = comp_get_drvdata(dev);
uint32_t vol_scaled[SOF_IPC_MAX_CHANNELS];
ae_f32x2 volume;
ae_f32x2 in_sample;
ae_f32x2 in_sample = AE_ZERO32();
ae_f32x2 out_sample;
ae_f32x2 mult;
size_t channel;
Expand Down Expand Up @@ -271,7 +271,7 @@ static void vol_s32_to_s24_s32(struct comp_dev *dev, struct comp_buffer *sink,
struct comp_data *cd = comp_get_drvdata(dev);
uint32_t vol_scaled[SOF_IPC_MAX_CHANNELS];
ae_f32x2 volume;
ae_f32x2 in_sample;
ae_f32x2 in_sample = AE_ZERO32();
ae_f32x2 out_sample;
ae_f32x2 mult;
size_t channel;
Expand Down

0 comments on commit bc596bc

Please sign in to comment.