Skip to content

Commit

Permalink
tez do wywalenia
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Sep 1, 2023
1 parent 7e92994 commit e393c7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/audio/module_adapter/module_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ int module_adapter_prepare(struct comp_dev *dev)
size_t size = MAX(mod->deep_buff_bytes, mod->period_bytes);

mod->input_buffers[i].data =
(void *)rballoc(0, SOF_MEM_CAPS_RAM, size);
(__sparse_force void __sparse_cache *)rballoc(0, SOF_MEM_CAPS_RAM, size);
if (!mod->input_buffers[i].data) {
comp_err(mod->dev, "module_adapter_prepare(): Failed to alloc input buffer data");
ret = -ENOMEM;
Expand All @@ -418,7 +418,7 @@ int module_adapter_prepare(struct comp_dev *dev)
i = 0;
list_for_item(blist, &dev->bsink_list) {
mod->output_buffers[i].data =
(void *)rballoc(0, SOF_MEM_CAPS_RAM,
(__sparse_force void __sparse_cache *)rballoc(0, SOF_MEM_CAPS_RAM,
md->mpd.out_buff_size);
if (!mod->output_buffers[i].data) {
comp_err(mod->dev, "module_adapter_prepare(): Failed to alloc output buffer data");
Expand Down Expand Up @@ -545,8 +545,8 @@ int module_adapter_params(struct comp_dev *dev, struct sof_ipc_stream_params *pa
* @bytes: number of bytes available in the source buffer
*/
static void
ca_copy_from_source_to_module(const struct audio_stream *source,
void *buff, uint32_t buff_size, size_t bytes)
ca_copy_from_source_to_module(const struct audio_stream __sparse_cache *source,
void __sparse_cache *buff, uint32_t buff_size, size_t bytes)
{
/* head_size - available data until end of source buffer */
const int without_wrap = audio_stream_bytes_without_wrap(source,
Expand All @@ -573,8 +573,8 @@ ca_copy_from_source_to_module(const struct audio_stream *source,
* @bytes: number of bytes available in the module output buffer
*/
static void
ca_copy_from_module_to_sink(const struct audio_stream *sink,
void *buff, size_t bytes)
ca_copy_from_module_to_sink(const struct audio_stream __sparse_cache *sink,
void __sparse_cache *buff, size_t bytes)
{
/* head_size - free space until end of sink buffer */
const int without_wrap = audio_stream_bytes_without_wrap(sink, audio_stream_get_wptr(sink));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum module_processing_mode {
* \brief Input stream buffer
*/
struct input_stream_buffer {
void *data; /* data stream buffer */
void __sparse_cache *data; /* data stream buffer */
uint32_t size; /* size of data in the buffer */
uint32_t consumed; /* number of bytes consumed by the module */

Expand All @@ -63,7 +63,7 @@ struct input_stream_buffer {
* \brief Output stream buffer
*/
struct output_stream_buffer {
void *data; /* data stream buffer */
void __sparse_cache *data; /* data stream buffer */
uint32_t size; /* size of data in the buffer */
};

Expand Down

0 comments on commit e393c7b

Please sign in to comment.