Skip to content

Commit fbd37a3

Browse files
committed
audio: fix cache invalidation in audio_stream_invalidate
Fix remaining calls to old dcache_invalidate_region() API in the audio_stream_invalidate() function that were missed during the cache API migration. Replace with proper sys_cache_data_invd_range() calls. The previous refactor left two calls to the old API which causes build failures. Fixes: f78acf4 ("audio: use zephyr/cache.h for cache flush/invalidate") Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent efbc7c4 commit fbd37a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/include/sof/audio/audio_stream.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,10 +733,10 @@ static inline void audio_stream_invalidate(struct audio_stream *buffer, uint32_t
733733
tail_size = bytes - head_size;
734734
}
735735

736-
dcache_invalidate_region((__sparse_force void __sparse_cache *)buffer->r_ptr, head_size);
736+
sys_cache_data_flush_range((__sparse_force void __sparse_cache *)buffer->r_ptr, head_size);
737737
if (tail_size)
738-
dcache_invalidate_region((__sparse_force void __sparse_cache *)buffer->addr,
739-
tail_size);
738+
sys_cache_data_flush_range((__sparse_force void __sparse_cache *)buffer->addr,
739+
tail_size);
740740
}
741741

742742
/**

0 commit comments

Comments
 (0)