Skip to content

Commit c5c9e11

Browse files
committed
ipc4: make fw_reg mutex available to user-space
Mark the fw_reg mutex with APP_SYSUSER_BSS, allowing the lock to be used when DAI module is run in user-space. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 98148a3 commit c5c9e11

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ipc/ipc4/dai.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434

3535
LOG_MODULE_DECLARE(ipc, CONFIG_SOF_LOG_LEVEL);
3636

37-
/* Protects IPC4 LLP reading-slot firmware registers used by DAI code. */
38-
static SYS_MUTEX_DEFINE(llp_reading_slots_lock);
37+
static APP_SYSUSER_BSS SYS_MUTEX_DEFINE(llp_reading_slots_lock);
3938

4039
void dai_set_link_hda_config(uint16_t *link_config,
4140
struct ipc_config_dai *common_config,

0 commit comments

Comments
 (0)