Simplifies idc_pipeline_trigger function by reading
component data directly from IPC buffer. This way
we don't need to send unneeded data through IDC.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
The CONFIG_DMA_GW only enable with hda_dma, as the create_local_elems is
refined to create elem at every start. Did not need to keep the first
elem.
Use list_for_item_safe to delete all item in list. The old way will
delete and free the list header with belongs to the host_data. Free
the list header will directly free host_data and make the second run
fail if the memory is alloced again.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Remove freeing of config data in reset. If pm is
not enabled, stopping the stream causes component
reset in firmware. When you start a new stream the
eq parameters are gone and defaults will be used.
When pm is enabled this is not a problem because
component is recreated from swidget in kernel side.
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
There will be new task added in schedule_edf function, refine the
function to handle multiple task.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
list_item_for_safe is safe for item deletion, but when a new item is
appended to the list. It seems the item could not be go through.
To fix this limitation, move interrupt clear to make sure every IRQ is
handled.
Do not try to handle two task with one IRQ handler.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
It is caused by the change of removing dai waiting after stop.
dma should not be stopped in dai_comp_trigger if HW LLI is not
enable. At this time DMA is still working and it can't be stopped
DMA engine would stop the channel automatically after each transfer.
So just query channel status to stop dma on BYT
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
All kernel level components/services allocate objects
from sys heap again. Separation from the runtime heap
provides more reliable, deterministic power flows.
It also presents an opportunity to implement kernel/app
memory protection on platforms which support it.
A better performance is expected due to much simpler
allocation approach.
In order to enable 'free()', slave cores allocate their
objects from their small dedicated sys heaps and when
the core goes down, the entire heap is reset at once.
Further memory power optimization is possible by moving
each sys heap to a separate memory bank that is powered
on/off along with the slave core.
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
There are two paths to delete a task in shedule list. A task would be
deleted when task is completed or cancelled. So it maybe deleted
twice. there is a circle in the schedule list after a sequence
of append-delete operations. This makes a infinite loop in schedule function
Now all of list items are deleted in one place and cancelled when task are complete
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Don't delete item with list_for_item. with list_for_item, a item
is deleted from list but the next of this item is used to visit
the list.
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
Don't delete item with list_for_item. with list_for_item, a item
is deleted from list but the next of this item is used to visit
the list.
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
There are possible that we call list_item_del to same list item twice. This
will cause the list be into chaos. Reset the next and prev pointer to 0
to avoid risk.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
500us woulld cause dma trace buffer overflow at the boot up time.
Now refine it to 100us to make both scheduler and dma trace happy
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
If reschedule work timeout is too small. The reschedule will fail.
Workaround this issue by increace the reschedule timeout.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
waiti can only work with interrupt level 0, check if the level is 0 and
set SOF_IPC_PANIC_WFI panic.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
I've added clks_control field in sof_ipc_dai_ssp_params
struct. I've deleted mclk/bclk/fs_keep_active field. They
will be supported by clks_control field and defined macros.
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
We need to writeback clock data, because it's used
in work queue. Also we need to writeback bss in order
to share static pointers with slave cores.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
schedule_task_init and schedule_task_config was removed on the
"Merge remote-tracking branch 'gh/next' into next-master2" commit.
Which is necessary for scheduler task.
Signed-off-by: Bard liao <yung-chuan.liao@intel.com>
We should switch from microseconds to milliseconds as
difference in cycles for current timeout is 150000.
Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
Removed dma/dsp race condition that happened within preload phase.
Min buffer size set to entire buffer to avoid dma and dsp
pointers misalignmen in case the period size is not multiple
of the hda dma burst size.
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>