You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
audio: make clock control optional in SOF Zephyr builds
Mark the few places in generic SOF code where SOF clock control
interface is used. These cases are few as most usage has traditionally
been in XTOS drivers and platform code. In Zephyr builds these are
not used, making the clock interface mostly unnecessary.
The one bigger exception is CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL feature
for dynamically adjusting the DSP clock frequency based on IPC
messages and audio pipeline configuration. This is an optional
feature not used by all targets, so the requirement to have a clock
abstraction implemented, should also be optional.
Remaining uses are for IPC4 base firmware attributes and some
informational use in logging. None of these are e.g. required by SOF
Linux driver for any essential functionality, so can be disabled
without side-effects.
As the rtos/clk.h interfaces are still used in many places in
platform code, this patch adds a new transition tool in form
of CONFIG_SOF_ZEPHYR_NO_SOF_CLOCK Kconfig option. This allows
to incrementally transition targets to not use the clock
framework.
In longer term, the remaining uses will be transitioned to use
Zephyr clock-control.h directly
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
0 commit comments