44
44
LOG_MODULE_REGISTER (src , CONFIG_SOF_LOG_LEVEL );
45
45
46
46
/* Calculates buffers to allocate for a SRC mode */
47
- static int src_buffer_lengths (struct comp_dev * dev , struct comp_data * cd , int nch )
47
+ __cold static int src_buffer_lengths (struct comp_dev * dev , struct comp_data * cd , int nch )
48
48
{
49
49
const struct src_stage * stage1 ;
50
50
const struct src_stage * stage2 ;
@@ -183,8 +183,8 @@ static int init_stages(const struct src_stage *stage1, const struct src_stage *s
183
183
return 0 ;
184
184
}
185
185
186
- static int src_polyphase_init (struct polyphase_src * src , struct src_param * p ,
187
- int32_t * delay_lines_start )
186
+ __cold static int src_polyphase_init (struct polyphase_src * src , struct src_param * p ,
187
+ int32_t * delay_lines_start )
188
188
{
189
189
const struct src_stage * stage1 ;
190
190
const struct src_stage * stage2 ;
@@ -392,7 +392,7 @@ void src_set_alignment(struct sof_source *source, struct sof_sink *sink)
392
392
sink_set_alignment_constants (sink , byte_align , frame_align_req );
393
393
}
394
394
395
- static int src_verify_params (struct processing_module * mod )
395
+ __cold static int src_verify_params (struct processing_module * mod )
396
396
{
397
397
struct sof_ipc_stream_params * params = mod -> stream_params ;
398
398
struct comp_data * cd = module_get_private_data (mod );
@@ -473,9 +473,9 @@ static bool src_get_copy_limits(struct comp_data *cd,
473
473
return true;
474
474
}
475
475
476
- int src_params_general (struct processing_module * mod ,
477
- struct sof_source * source ,
478
- struct sof_sink * sink )
476
+ __cold int src_params_general (struct processing_module * mod ,
477
+ struct sof_source * source ,
478
+ struct sof_sink * sink )
479
479
{
480
480
struct comp_data * cd = module_get_private_data (mod );
481
481
struct comp_dev * dev = mod -> dev ;
@@ -574,7 +574,7 @@ int src_params_general(struct processing_module *mod,
574
574
return 0 ;
575
575
}
576
576
577
- int src_param_set (struct comp_dev * dev , struct comp_data * cd )
577
+ __cold int src_param_set (struct comp_dev * dev , struct comp_data * cd )
578
578
{
579
579
struct src_param * a = & cd -> param ;
580
580
int fs_in = cd -> source_rate ;
@@ -593,9 +593,9 @@ int src_param_set(struct comp_dev *dev, struct comp_data *cd)
593
593
return 0 ;
594
594
}
595
595
596
- int src_allocate_copy_stages (struct comp_dev * dev , struct src_param * prm ,
597
- const struct src_stage * stage_src1 ,
598
- const struct src_stage * stage_src2 )
596
+ __cold int src_allocate_copy_stages (struct comp_dev * dev , struct src_param * prm ,
597
+ const struct src_stage * stage_src1 ,
598
+ const struct src_stage * stage_src2 )
599
599
{
600
600
#if CONFIG_FAST_GET
601
601
struct src_stage * stage_dst ;
@@ -666,21 +666,21 @@ int src_process(struct processing_module *mod,
666
666
return cd -> src_func (cd , sources [0 ], sinks [0 ]);
667
667
}
668
668
669
- int src_set_config (struct processing_module * mod , uint32_t config_id ,
670
- enum module_cfg_fragment_position pos , uint32_t data_offset_size ,
671
- const uint8_t * fragment , size_t fragment_size , uint8_t * response ,
672
- size_t response_size )
669
+ __cold int src_set_config (struct processing_module * mod , uint32_t config_id ,
670
+ enum module_cfg_fragment_position pos , uint32_t data_offset_size ,
671
+ const uint8_t * fragment , size_t fragment_size , uint8_t * response ,
672
+ size_t response_size )
673
673
{
674
674
return - EINVAL ;
675
675
}
676
676
677
- int src_get_config (struct processing_module * mod , uint32_t config_id ,
678
- uint32_t * data_offset_size , uint8_t * fragment , size_t fragment_size )
677
+ __cold int src_get_config (struct processing_module * mod , uint32_t config_id ,
678
+ uint32_t * data_offset_size , uint8_t * fragment , size_t fragment_size )
679
679
{
680
680
return - EINVAL ;
681
681
}
682
682
683
- int src_reset (struct processing_module * mod )
683
+ __cold int src_reset (struct processing_module * mod )
684
684
{
685
685
struct comp_data * cd = module_get_private_data (mod );
686
686
0 commit comments