History

src_sinc: define configurable channels

Embedded systems have limited resources and need to lower the default channel alocation

Alin Jerpelea committed 6 years ago

Commit d2fbdfd1 parent 8e7e4ca1 file · +6 −0Browse files

Showing the changes to src (1 of 1 file). Show all

Unified · Split

src/src_sinc.c+6−0
@@ -25,7 +25,13 @@ · 24 unmodified lines
2525 #define SHIFT_BITS 12
2626 #define FP_ONE ((double) (((increment_t) 1) << SHIFT_BITS))
2727 #define INV_FP_ONE (1.0 / FP_ONE)
28+
29+/* Customixe max channls from Kconfig. */
30+#ifndef CONFIG_CHAN_NR
2831 #define MAX_CHANNELS 128
32+#else
33+#define MAX_CHANNELS CONFIG_CHAN_NR
34+#endif
2935
3036 /*========================================================================================
3137 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t