Commit Graph

2928 Commits

Author SHA1 Message Date
Liam Girdwood 82be00f200 comp: dai: remove extra memcpy()
No need to copy data twice during DAI init.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-15 13:41:52 +01:00
Seppo Ingalsuo 56856e6a38 tone: The endpoint needs to be set
The signal generator is an endpoint component so this needs to be set for
the pipeline to function.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2017-06-14 11:16:24 +01:00
Liam Girdwood 29f3cc815d pipeline: set component pipeline ID when connecting components.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-13 15:43:54 +01:00
Liam Girdwood 3032fc4667 ipc: fix IIR and FIR build since they use IPC comp that embeds hdr
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 13:46:17 +01:00
Liam Girdwood 09988f00da ipc: all platform to specify the size of host page table data
This can save almost 4k of memory by allowing some tuning of the
compressed page table that is sent by the host.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 13:45:01 +01:00
Liam Girdwood 13ea3bcbe6 ipc: move iir, fir and src IPC data next to the other components.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 13:38:47 +01:00
Liam Girdwood be8c46b2e3 ipc: ext data: dont use zero size arrays and specify max elems
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 13:37:37 +01:00
Liam Girdwood 0a0944ce69 ipc:: dont use 0 as IPC code, start at 1
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 13:36:41 +01:00
Liam Girdwood 960cf8ecb8 comp: make the ipc component data memcpy explicit.
Lets not fool any code scanning tools.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-12 11:38:07 +01:00
Liam Girdwood 64609174a5 Merge remote-tracking branch 'sof/1.0-dev' into pre-1.0 2017-06-12 10:37:46 +01:00
Seppo Ingalsuo 6f27ab602d SRC: Fix possible use of uninitialized plus code cleanup
The s1.x_rptr, s1.y_wptr, and s2.y_wptr might be used as uninitialized.
Also remove some obsolete code lines.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2017-06-12 10:36:13 +01:00
Seppo Ingalsuo f132824ff8 IIR equalizer: Fix a null pointer issue
The cd->config could be passed as null pointer to eq_iir_setup() if the
previous malloc() would fail.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2017-06-12 10:36:13 +01:00
Seppo Ingalsuo 139df3efe3 FIR equalizer: Fix a null pointer issue
The cd->config could be passed as null pointer to eq_fir_setup() if the
previous malloc() would fail.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2017-06-12 10:36:13 +01:00
Liam Girdwood 3234a3dc4a cache: remove writeback for ICACHE
Not used so remove.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 22:26:17 +01:00
Liam Girdwood 29bc19f042 cache: fix build error when cache ops are builtin
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 21:39:34 +01:00
Liam Girdwood 06bb8e3dd3 ipc: values: read value ID and context from component data before use.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 17:59:55 +01:00
Liam Girdwood c3153812b9 scheduler: allocate scheduler context in system heap.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 17:58:49 +01:00
Liam Girdwood 9e8b23d548 ipc: check pipeline source is non NULL before using it
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 17:57:19 +01:00
Liam Girdwood af9e00e030 pipeline: err might be used uninitialized in component_op_upstream()
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 17:56:44 +01:00
Liam Girdwood 1764152119 audio: components: Allocate correct device size
The devices sizes can be variable depending on any IPC init data that is
stored. Make sure we allocate the correct size.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 17:27:02 +01:00
Liam Girdwood 1b0a663b0d rmbox: add support for different CPU clock speeds
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:55:36 +01:00
Liam Girdwood 778d7209cb rmbox: return -EIO and bail on any file open() errors
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:37:14 +01:00
Liam Girdwood e03147d755 rmbox: add support for new trace classes.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:36:33 +01:00
Liam Girdwood 03acfd640d rimage: update to new SOF driver file format.
Support the SOF driver file format.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:25:36 +01:00
Liam Girdwood 072fb5c43f rimage: remove flat file builder.
No longer needed so can be safely removed.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-09 14:24:51 +01:00
Seppo Ingalsuo 6a24a293c6 Add IIR Equalizer component
This change provides an IIR equalizer component. The
 IIR equalizer can be used for any transducer or effects equalizer needs but
 it is especially recommended for speaker response equalization and other
 applications without dependence to matched phase response or best possible
 THD+N performance where FIR may be a better choise. IIR equalization is
 capable to strong response enhancement without need for large DSP resources
 consumption. The tool to create the EQ setup blobs is included in the
 rimage tools.
2017-06-07 15:23:58 +01:00
Seppo Ingalsuo 6f03aa5a5b Add FIR Equalizer component
This change provides a finite impulse response (FIR)
 equalizer component. The FIR equalizer can be used for any transducer or
 effects equalizer needs but it is especially recommended for microphone
 arrays equalization. The tool to create EQ setup blobs is included in the
 rimage tools.
2017-06-07 15:23:57 +01:00
Seppo Ingalsuo 29566ee3e4 Add tone generator component
This change provides a tone generator component. The
 purpose is to provide a high quality FW internal test signal generator for
 objective audio quality measurements for component or system tests. It can
 also be used as simple beep indication tones generator for users.
2017-06-07 15:09:57 +01:00
Seppo Ingalsuo 6a274839ee Add SRC component
This change provides a sample rate converter (SRC).
 The SRC is polyphase FIR type. All the conversions coefficients tables are
 automatically generated by a separate Octave scripts set in the rimage
 tools set. The supported in/out rates and the performance can be customized
 for a different quality/resources trade-off.
2017-06-07 15:09:31 +01:00
Liam Girdwood 84e46b0b2a cache: xtensa: Add cache region implementation for xtensa
Add cache ops for the xtensa architecture.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-07 12:41:29 +01:00
Liam Girdwood 3c5d9a3b63 cache: Add cache management API to writeback/invalidate regions
Add an API to allow drivers to writeback or invalidate cache contents.
This is useful where the DSP firmware runs from cache and needs to
writeback/buffer prior to DMA or other peripheral usage.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-07 10:13:57 +01:00
Liam Girdwood 425aa5e917 ipc: Add support for creating pipelines dynamically. Part 1
Currently pipelines have to be statically defined in the firmware source
code. This patch provides a mechanism whereby they can be created and
destroyed via IPC messages from the host.

Part 2 to follow.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 20:35:05 +01:00
Liam Girdwood f4fc2328bf scheduler: Add initial EDF scheduler.
Add an Earliest Deadline First scheduler to perform scheduling of audio
pipeline tasks based on task deadlines. i.e. the task with the earliest
deadline will be scheduled so that it will complete and preempt other
lower priority tasks before the deadline.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 20:35:05 +01:00
Liam Girdwood 2d2cd78be1 task: add priority driven task management
Provide a method for tasks to be performed on a priority basis using the
interrupts levels to preempt lower priority tasks.

The scheduler will use the to schedule work at different priorities.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 20:35:05 +01:00
Liam Girdwood 535201458f arch: xtensa: display memory dump in the map file and add prefix
Also make sure the binaries have platform prefix.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 20:14:56 +01:00
Liam Girdwood 2743d0eeda drivers: ssp: move regsier macros into seperate header
Move the register macros into separate header.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 19:39:13 +01:00
Liam Girdwood a2d5fe5d58 drivers: dw-dma: move register macros into platform specific header.
Clean up the DW-DMA rsgisters so that it can be more easily integrated
into other platforms.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 19:36:27 +01:00
Liam Girdwood 405b1f34f2 list: add list previous iterator
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 16:41:35 +01:00
Liam Girdwood 69222cf7d7 core: create a context and pass it to each subsystem at init
Create a global firmware context structure and pass this to each subsystem
on initialisation. This allows components to share access to global DSP
context.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 16:41:07 +01:00
Liam Girdwood d65a18a98b trace: add more detailed trace vales for init
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 16:37:05 +01:00
Liam Girdwood b0401e9dc9 build: add rule to clean local files
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 13:17:22 +01:00
Liam Girdwood 68abb98990 dma: Add cherrytrail SSP IRQs and DMAC IDs
Add Cherrytrail SSP handshake IDs and extra DMAC

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 13:17:22 +01:00
Liam Girdwood 50f7b0e906 allocator: simplify heap modification and allocation part 1
The allocator currently has different methods to allocate heap memory
depending on memory size requested. The heap also has to be defined
in two places atm i.e in memory.h and baytrail.x

This patch aligns the heap macros with the linker script and introduces
new flags to specify the allocation type.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 13:17:22 +01:00
Liam Girdwood 58a99d68bf build-all: run autogen and fail on any errors
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 13:17:22 +01:00
Liam Girdwood 658159e7c5 build: fix generation of commit ID and build number
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-06-06 13:17:22 +01:00
Keyon Jie 2e7a2af3b9 work: enable/disable workq timer following each timer_set/clear()
We need enable/disable workq timer also after each calling to
set/clear timer, but not only CPU frequency change, so merge
them into work_set/clear_timer().

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2017-03-16 19:55:15 +00:00
Keyon Jie 29973dfa78 ssp: add handle for default clk type
Add default clk type SSP_CLK_DEFAULT and the handle for it

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2017-03-16 19:52:53 +00:00
Keyon Jie d8dd7576b2 work: fix typos for comment message
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2017-03-16 19:51:52 +00:00
Liam Girdwood 2a0f0ea62b host: Add more comments to host callback
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2017-03-02 12:00:29 +00:00
Keyon Jie bfcf15ef41 host: remove host side buffer check and fix for capture
We assume that there are always datas/spaces for playback/capture,
and then don't need to check the host side buffer pointers, here
remove these buffer check related code to save about 0.6KB to the
firmware binary size.

We also do code cleanup for host in this patch: remove superfluous
prefix 'host_' for host_data members, merge host_dma_cb_playback()
and host_dma_cb_capture() as they have most common code, and the
latter change can save about 0.25KB to firmware binary size.

Furthermore, we also fix the capture doesn't work issue at the
same time.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2017-03-02 11:42:30 +00:00