diff --git a/app/boards/intel_adsp/Kconfig.defconfig b/app/boards/intel_adsp/Kconfig.defconfig index 0fd7126d58d1..f656ec2f7aca 100644 --- a/app/boards/intel_adsp/Kconfig.defconfig +++ b/app/boards/intel_adsp/Kconfig.defconfig @@ -120,9 +120,6 @@ config INTEL_ADSP_TIMER config MM_DRV default y -config UAOL - default y if ACE - # # Zephyr / power settings # ---------------------------------------- diff --git a/app/internal_ci_overlay.conf b/app/internal_ci_overlay.conf index 01193afaa8d0..51f67e616d8a 100644 --- a/app/internal_ci_overlay.conf +++ b/app/internal_ci_overlay.conf @@ -18,3 +18,8 @@ # virtual heap buffers (VIRTUAL_HEAP_EXTENDED) on platforms # that support them. CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY=n + +# Enable USB Audio Offload Link (UAOL) support. It is disabled by +# default as Linux 7.0 and older do not enable UAOL access and +# reading the UAOL capabilities would cause a DSP panic. +CONFIG_UAOL=y diff --git a/app/uaol_overlay.conf b/app/uaol_overlay.conf new file mode 100644 index 000000000000..aa71045c9403 --- /dev/null +++ b/app/uaol_overlay.conf @@ -0,0 +1,9 @@ +# +# Enable USB Audio Offload Link (UAOL) support on platforms that have +# UAOL hardware (Intel ACE 2.0 / LNL and later). +# +# UAOL is disabled by default as Linux 7.0 and older do not enable +# UAOL access and reading the UAOL capabilities would cause a DSP +# panic. Only use this overlay with a host driver that supports UAOL. +# +CONFIG_UAOL=y diff --git a/src/include/sof/audio/intel_uaol.h b/src/include/sof/audio/intel_uaol.h index 6f6947d4c22c..53330871ebc7 100644 --- a/src/include/sof/audio/intel_uaol.h +++ b/src/include/sof/audio/intel_uaol.h @@ -13,9 +13,7 @@ struct sof_tlv; struct device; -#if !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type); -#endif /* !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY */ __cold int uaol_stream_id_to_hda_link_stream_id(int uaol_stream_id); diff --git a/src/kernel/audio/base_fw_intel.c b/src/kernel/audio/base_fw_intel.c index 2b7c46ae59f6..dcc3d74331d7 100644 --- a/src/kernel/audio/base_fw_intel.c +++ b/src/kernel/audio/base_fw_intel.c @@ -133,9 +133,10 @@ __cold int basefw_vendor_hw_config(uint32_t *data_offset, char *data) /* Linux 7.0 and older do not enable UAOL for any Intel * hardware, so below capability check will lead to a DSP - * panic. In strict compatibility mode, bypass the capability - * check. */ -#if !defined(CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY) && defined(CONFIG_UAOL_INTEL_ADSP) + * panic. UAOL is therefore disabled by default and must be + * enabled explicitly with CONFIG_UAOL. + */ +#if CONFIG_UAOL_INTEL_ADSP tuple = tlv_next(tuple); tlv_value_set_uaol_caps(tuple, IPC4_UAOL_CAPS_HW_CFG); #endif diff --git a/src/kernel/audio/intel_uaol-kernel.c b/src/kernel/audio/intel_uaol-kernel.c index 788bf49893ec..f7ef190d2b25 100644 --- a/src/kernel/audio/intel_uaol-kernel.c +++ b/src/kernel/audio/intel_uaol-kernel.c @@ -30,7 +30,6 @@ struct ipc4_uaol_capabilities { struct ipc4_uaol_link_capabilities link_caps[]; } __packed __aligned(4); -#if !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type) { const size_t dev_count = ARRAY_SIZE(uaol_devs); @@ -59,7 +58,6 @@ __cold void tlv_value_set_uaol_caps(struct sof_tlv *tuple, uint32_t type) tlv_value_set(tuple, type, caps_size, caps); } -#endif /* !CONFIG_SOF_OS_LINUX_COMPAT_PRIORITY */ __cold int uaol_stream_id_to_hda_link_stream_id(int uaol_stream_id) {