4545LOG_MODULE_REGISTER (src , CONFIG_SOF_LOG_LEVEL );
4646
4747/* Calculates buffers to allocate for a SRC mode */
48- __cold static int src_buffer_lengths (struct comp_dev * dev , struct comp_data * cd , int nch )
48+ static int src_buffer_lengths (struct comp_dev * dev , struct comp_data * cd , int nch )
4949{
5050 const struct src_stage * stage1 ;
5151 const struct src_stage * stage2 ;
@@ -54,8 +54,6 @@ __cold static int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd,
5454 int source_frames ;
5555 int r1 , n ;
5656
57- assert_can_be_cold ();
58-
5957 a = & cd -> param ;
6058 fs_in = cd -> source_rate ;
6159 fs_out = cd -> sink_rate ;
@@ -186,16 +184,14 @@ static int init_stages(const struct src_stage *stage1, const struct src_stage *s
186184 return 0 ;
187185}
188186
189- __cold static int src_polyphase_init (struct polyphase_src * src , struct src_param * p ,
190- int32_t * delay_lines_start )
187+ static int src_polyphase_init (struct polyphase_src * src , struct src_param * p ,
188+ int32_t * delay_lines_start )
191189{
192190 const struct src_stage * stage1 ;
193191 const struct src_stage * stage2 ;
194192 int n_stages ;
195193 int ret ;
196194
197- assert_can_be_cold ();
198-
199195 if (p -> idx_in < 0 || p -> idx_out < 0 )
200196 return - EINVAL ;
201197
@@ -397,15 +393,13 @@ void src_set_alignment(struct sof_source *source, struct sof_sink *sink)
397393 sink_set_alignment_constants (sink , byte_align , frame_align_req );
398394}
399395
400- __cold static int src_verify_params (struct processing_module * mod )
396+ static int src_verify_params (struct processing_module * mod )
401397{
402398 struct sof_ipc_stream_params * params = mod -> stream_params ;
403399 struct comp_data * cd = module_get_private_data (mod );
404400 struct comp_dev * dev = mod -> dev ;
405401 int ret ;
406402
407- assert_can_be_cold ();
408-
409403 comp_dbg (dev , "src_verify_params()" );
410404
411405 /* check whether params->rate (received from driver) are equal
@@ -480,9 +474,9 @@ static bool src_get_copy_limits(struct comp_data *cd,
480474 return true;
481475}
482476
483- __cold int src_params_general (struct processing_module * mod ,
484- struct sof_source * source ,
485- struct sof_sink * sink )
477+ int src_params_general (struct processing_module * mod ,
478+ struct sof_source * source ,
479+ struct sof_sink * sink )
486480{
487481 struct comp_data * cd = module_get_private_data (mod );
488482 struct comp_dev * dev = mod -> dev ;
@@ -491,8 +485,6 @@ __cold int src_params_general(struct processing_module *mod,
491485 int n ;
492486 int err ;
493487
494- assert_can_be_cold ();
495-
496488 comp_info (dev , "src_params()" );
497489
498490 err = src_set_params (mod , sink );
@@ -583,14 +575,12 @@ __cold int src_params_general(struct processing_module *mod,
583575 return 0 ;
584576}
585577
586- __cold int src_param_set (struct comp_dev * dev , struct comp_data * cd )
578+ int src_param_set (struct comp_dev * dev , struct comp_data * cd )
587579{
588580 struct src_param * a = & cd -> param ;
589581 int fs_in = cd -> source_rate ;
590582 int fs_out = cd -> sink_rate ;
591583
592- assert_can_be_cold ();
593-
594584 a -> idx_in = src_find_fs (a -> in_fs , a -> num_in_fs , fs_in );
595585 a -> idx_out = src_find_fs (a -> out_fs , a -> num_out_fs , fs_out );
596586
@@ -604,9 +594,9 @@ __cold int src_param_set(struct comp_dev *dev, struct comp_data *cd)
604594 return 0 ;
605595}
606596
607- __cold int src_allocate_copy_stages (struct comp_dev * dev , struct src_param * prm ,
608- const struct src_stage * stage_src1 ,
609- const struct src_stage * stage_src2 )
597+ int src_allocate_copy_stages (struct comp_dev * dev , struct src_param * prm ,
598+ const struct src_stage * stage_src1 ,
599+ const struct src_stage * stage_src2 )
610600{
611601#if CONFIG_FAST_GET
612602 struct src_stage * stage_dst ;
@@ -617,8 +607,6 @@ __cold int src_allocate_copy_stages(struct comp_dev *dev, struct src_param *prm,
617607 size_t tap_size = sizeof (int32_t );
618608#endif
619609
620- assert_can_be_cold ();
621-
622610 stage_dst = rmalloc (SOF_MEM_ZONE_RUNTIME , 0 , SOF_MEM_CAPS_RAM ,
623611 2 * sizeof (* stage_dst ));
624612 if (!stage_dst ) {
0 commit comments