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
25#define SHIFT_BITS 1225#define SHIFT_BITS 12
26#define FP_ONE ((double) (((increment_t) 1) << SHIFT_BITS))26#define FP_ONE ((double) (((increment_t) 1) << SHIFT_BITS))
27#define INV_FP_ONE (1.0 / FP_ONE)27#define INV_FP_ONE (1.0 / FP_ONE)
28
29/* Customixe max channls from Kconfig. */
30#ifndef CONFIG_CHAN_NR
28#define MAX_CHANNELS 12831#define MAX_CHANNELS 128
32#else
33#define MAX_CHANNELS CONFIG_CHAN_NR
34#endif
29 35
30/*========================================================================================36/*========================================================================================
31*/37*/

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