4444LOG_MODULE_REGISTER (src , CONFIG_SOF_LOG_LEVEL );
4545
4646/* 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 )
4848{
4949 const struct src_stage * stage1 ;
5050 const struct src_stage * stage2 ;
@@ -183,8 +183,8 @@ static int init_stages(const struct src_stage *stage1, const struct src_stage *s
183183 return 0 ;
184184}
185185
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 )
188188{
189189 const struct src_stage * stage1 ;
190190 const struct src_stage * stage2 ;
@@ -392,7 +392,7 @@ void src_set_alignment(struct sof_source *source, struct sof_sink *sink)
392392 sink_set_alignment_constants (sink , byte_align , frame_align_req );
393393}
394394
395- static int src_verify_params (struct processing_module * mod )
395+ __cold static int src_verify_params (struct processing_module * mod )
396396{
397397 struct sof_ipc_stream_params * params = mod -> stream_params ;
398398 struct comp_data * cd = module_get_private_data (mod );
@@ -473,9 +473,9 @@ static bool src_get_copy_limits(struct comp_data *cd,
473473 return true;
474474}
475475
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 )
479479{
480480 struct comp_data * cd = module_get_private_data (mod );
481481 struct comp_dev * dev = mod -> dev ;
@@ -574,7 +574,7 @@ int src_params_general(struct processing_module *mod,
574574 return 0 ;
575575}
576576
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 )
578578{
579579 struct src_param * a = & cd -> param ;
580580 int fs_in = cd -> source_rate ;
@@ -593,9 +593,9 @@ int src_param_set(struct comp_dev *dev, struct comp_data *cd)
593593 return 0 ;
594594}
595595
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 )
599599{
600600#if CONFIG_FAST_GET
601601 struct src_stage * stage_dst ;
@@ -666,21 +666,21 @@ int src_process(struct processing_module *mod,
666666 return cd -> src_func (cd , sources [0 ], sinks [0 ]);
667667}
668668
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 )
673673{
674674 return - EINVAL ;
675675}
676676
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 )
679679{
680680 return - EINVAL ;
681681}
682682
683- int src_reset (struct processing_module * mod )
683+ __cold int src_reset (struct processing_module * mod )
684684{
685685 struct comp_data * cd = module_get_private_data (mod );
686686
0 commit comments