Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/boards/intel_adsp/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ config INTEL_ADSP_TIMER
config MM_DRV
default y

config UAOL
default y if ACE


# # Zephyr / power settings
# ----------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions app/internal_ci_overlay.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions app/uaol_overlay.conf
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions src/include/sof/audio/intel_uaol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
7 changes: 4 additions & 3 deletions src/kernel/audio/base_fw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/kernel/audio/intel_uaol-kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{
Expand Down
Loading