@@ -54,6 +54,8 @@ __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+
5759 a = & cd -> param ;
5860 fs_in = cd -> source_rate ;
5961 fs_out = cd -> sink_rate ;
@@ -192,6 +194,8 @@ __cold static int src_polyphase_init(struct polyphase_src *src, struct src_param
192194 int n_stages ;
193195 int ret ;
194196
197+ assert_can_be_cold ();
198+
195199 if (p -> idx_in < 0 || p -> idx_out < 0 )
196200 return - EINVAL ;
197201
@@ -400,6 +404,8 @@ __cold static int src_verify_params(struct processing_module *mod)
400404 struct comp_dev * dev = mod -> dev ;
401405 int ret ;
402406
407+ assert_can_be_cold ();
408+
403409 comp_dbg (dev , "src_verify_params()" );
404410
405411 /* check whether params->rate (received from driver) are equal
@@ -485,6 +491,8 @@ __cold int src_params_general(struct processing_module *mod,
485491 int n ;
486492 int err ;
487493
494+ assert_can_be_cold ();
495+
488496 comp_info (dev , "src_params()" );
489497
490498 err = src_set_params (mod , sink );
@@ -581,6 +589,8 @@ __cold int src_param_set(struct comp_dev *dev, struct comp_data *cd)
581589 int fs_in = cd -> source_rate ;
582590 int fs_out = cd -> sink_rate ;
583591
592+ assert_can_be_cold ();
593+
584594 a -> idx_in = src_find_fs (a -> in_fs , a -> num_in_fs , fs_in );
585595 a -> idx_out = src_find_fs (a -> out_fs , a -> num_out_fs , fs_out );
586596
@@ -607,6 +617,8 @@ __cold int src_allocate_copy_stages(struct comp_dev *dev, struct src_param *prm,
607617 size_t tap_size = sizeof (int32_t );
608618#endif
609619
620+ assert_can_be_cold ();
621+
610622 stage_dst = rmalloc (SOF_MEM_ZONE_RUNTIME , 0 , SOF_MEM_CAPS_RAM ,
611623 2 * sizeof (* stage_dst ));
612624 if (!stage_dst ) {
@@ -672,19 +684,25 @@ __cold int src_set_config(struct processing_module *mod, uint32_t config_id,
672684 const uint8_t * fragment , size_t fragment_size , uint8_t * response ,
673685 size_t response_size )
674686{
687+ assert_can_be_cold ();
688+
675689 return - EINVAL ;
676690}
677691
678692__cold int src_get_config (struct processing_module * mod , uint32_t config_id ,
679693 uint32_t * data_offset_size , uint8_t * fragment , size_t fragment_size )
680694{
695+ assert_can_be_cold ();
696+
681697 return - EINVAL ;
682698}
683699
684700__cold int src_reset (struct processing_module * mod )
685701{
686702 struct comp_data * cd = module_get_private_data (mod );
687703
704+ assert_can_be_cold ();
705+
688706 comp_info (mod -> dev , "src_reset()" );
689707
690708 cd -> src_func = src_fallback ;
@@ -697,6 +715,8 @@ __cold int src_free(struct processing_module *mod)
697715{
698716 struct comp_data * cd = module_get_private_data (mod );
699717
718+ assert_can_be_cold ();
719+
700720 comp_info (mod -> dev , "src_free()" );
701721
702722 /* Free dynamically reserved buffers for SRC algorithm */
0 commit comments