Skip to content

Commit 06e8ff3

Browse files
authored
Merge pull request zephyrproject-rtos#11 from dcpleung/sof/fix-audio
Fix audio distortions
2 parents e08cbf8 + f9438a7 commit 06e8ff3

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

modules/Kconfig.sof

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,10 @@ config SOF_STATIC_PIPELINE
8585
help
8686
Enable static pipeline
8787

88+
config SOF_USE_DMIC
89+
bool "Enable DMIC"
90+
default n
91+
help
92+
Enable DMIC
93+
8894
endif #SOF

samples/audio/sof/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CONFIG_LOG_PRINTK=y
44
CONFIG_LOG_IMMEDIATE=y
55
CONFIG_SOF_LOG_LEVEL=4
66
# SOF requires malloc/calloc
7-
CONFIG_HEAP_MEM_POOL_SIZE=196608
7+
CONFIG_HEAP_MEM_POOL_SIZE=65536

soc/xtensa/intel_apl_adsp/Kconfig.defconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ config 2ND_LEVEL_INTERRUPTS
3737
config DYNAMIC_INTERRUPTS
3838
default y
3939

40-
# Work queues in SOF needs microsecond delays.
41-
# 100000 = 10us per tick
42-
config SYS_CLOCK_TICKS_PER_SEC
43-
default 100000
44-
4540
endif
4641

4742
endif

subsys/audio/sof.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ LOG_MODULE_REGISTER(sof, CONFIG_SOF_LOG_LEVEL);
1717
#include <platform/dma.h>
1818
#include <platform/shim.h>
1919
#include <platform/timer.h>
20+
#include <sof/alloc.h>
2021
#include <sof/clk.h>
2122
#include <sof/interrupt.h>
2223
#include <sof/mailbox.h>
@@ -290,6 +291,8 @@ static int sof_init(struct device *unused)
290291
{
291292
int ret;
292293

294+
malloc_init();
295+
293296
platform_interrupt_init();
294297

295298
/* prepare host windows */

0 commit comments

Comments
 (0)