Skip to content

Commit 114f597

Browse files
committed
audio: add driver list access debugging
The global driver list should never be accessed from the audio context. Add an assertion for that. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 69ea9d3 commit 114f597

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/audio/component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ static APP_SYSUSER_BSS SHARED_DATA struct comp_driver_list cd;
4141
#ifdef CONFIG_SOF_USERSPACE_LL
4242
struct comp_driver_list *comp_drivers_get(void)
4343
{
44+
assert(!ll_sch_is_current());
4445
return &cd;
4546
}
4647
#endif

0 commit comments

Comments
 (0)