summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5031836)
raw | patch | inline | side by side (parent: 5031836)
author | Sinthu Raja M <x0257345@ti.com> | |
Thu, 11 Oct 2018 09:52:47 +0000 (15:22 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Thu, 11 Oct 2018 09:52:47 +0000 (15:22 +0530) |
Initialized the variables to default which are not initialized
common/components/fil.c | patch | blob | history | |
common/components/mss/src/mssproc.c | patch | blob | history |
index 74a97213cb9a151805dcda6c1bb50cfc284a3f9a..5d6b063c86dc9fdafaded1b7bd4eebe2458fc17f 100644 (file)
--- a/common/components/fil.c
+++ b/common/components/fil.c
/*
- * Copyright (c) 2016, Texas Instruments Incorporated
+ * Copyright (c) 2016 - 2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
int fid;\r
# endif\r
\r
- if (bufnum > FIL_MAX) { /* Make sure we have appropriate buffer to store data */\r
+ if (bufnum >= FIL_MAX) { /* Make sure we have appropriate buffer to store data */\r
return(SYS_ERR_FMAXBUF);\r
}\r
nread = 0;\r
\r
int filRead(void *fid, int n, linSample inbuf[], int buflen)\r
{\r
- int k, ch, r_idx, r_idx_new, nfiles, length, ncopy, overflow;\r
+ int k, ch, r_idx, nfiles, length, ncopy, overflow;
+ int r_idx_new = 0;\r
tuint *in_p, *in_base_p, value;\r
linSample *out_p;\r
tbool wrap, big, write_zeros;\r
index ee55547d907aa2e59eaaa3114ddd6e3a57996a45..87ce6ff2e8a5998d40911659a3092b74de6c527d 100644 (file)
* @brief Contains Main Processing Routines for Multi-Source Selection \r
* (MSS) module.\r
*\r
- * Copyright (c) 2016, Texas Instruments Incorporated
+ * Copyright (c) 2016 - 2018, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
void mss_src_selection(mssInst_t *inst, void *mic_fix[], void *mic_rem[], \r
void *mic_cln[])\r
{\r
- int i, max_pow_src_index, svd_decision;\r
+ int i, svd_decision;\r
+ int max_pow_src_index = 0;\r
LFract max_pow, sig_pow;\r
tword *svd_ptr;\r
mssSrcType_t max_pow_src_group;\r
void *mic_rem[], void *mic_cln[])\r
{\r
int i;\r
- linSample * cur_sel_src;\r
- linSample * new_sel_src;\r
+ linSample * cur_sel_src = NULL;\r
+ linSample * new_sel_src = NULL;\r
linSample * output;\r
- Fract fade_in_alpha, fade_out_alpha, sin_phase;\r
+ Fract fade_in_alpha = 0;\r
+ Fract fade_out_alpha = 0;\r
+ Fract sin_phase = 0;\r
LFract phase, phase_inc;\r
\r
/* Identify the buffer of the current selected source. */\r