@@ -117,7 +117,7 @@ static int cadence_codec_resolve_api(struct processing_module *mod)
117117
118118 /* For ipc4 protocol codec parameters has to be retrieved from configuration */
119119 if (!codec -> cfg .data ) {
120- comp_err (dev , "cadence_codec_resolve_api(): could not find cadence config" );
120+ comp_err (dev , "could not find cadence config" );
121121 return - EINVAL ;
122122 }
123123 param = codec -> cfg .data ;
@@ -133,7 +133,7 @@ static int cadence_codec_resolve_api(struct processing_module *mod)
133133
134134 /* Verify API assignment */
135135 if (!api ) {
136- comp_err (dev , "cadence_codec_resolve_api(): could not find API function for id %x" ,
136+ comp_err (dev , "could not find API function for id %x" ,
137137 api_id );
138138 return - EINVAL ;
139139 }
@@ -193,7 +193,7 @@ static int cadence_codec_resolve_api(struct processing_module *mod)
193193
194194 /* Verify API assignment */
195195 if (!api ) {
196- comp_err (dev , "cadence_codec_resolve_api(): could not find API function for id %x" ,
196+ comp_err (dev , "could not find API function for id %x" ,
197197 api_id );
198198 return - EINVAL ;
199199 }
@@ -237,11 +237,11 @@ static int cadence_codec_post_init(struct processing_module *mod)
237237 /* Allocate space for codec object */
238238 cd -> self = rballoc (SOF_MEM_FLAG_USER , obj_size );
239239 if (!cd -> self ) {
240- comp_err (dev , "cadence_codec_init(): failed to allocate space for lib object" );
240+ comp_err (dev , "failed to allocate space for lib object" );
241241 return - ENOMEM ;
242242 }
243243
244- comp_dbg (dev , "cadence_codec_post_init(): allocated %d bytes for lib object" , obj_size );
244+ comp_dbg (dev , "allocated %d bytes for lib object" , obj_size );
245245
246246 /* Set all params to their default values */
247247 API_CALL (cd , XA_API_CMD_INIT , XA_CMD_TYPE_INIT_API_PRE_CONFIG_PARAMS ,
@@ -270,7 +270,7 @@ static int cadence_codec_init(struct processing_module *mod)
270270
271271 cd = rzalloc (SOF_MEM_FLAG_USER , sizeof (struct cadence_codec_data ));
272272 if (!cd ) {
273- comp_err (dev , "cadence_codec_init(): failed to allocate memory for cadence codec data" );
273+ comp_err (dev , "failed to allocate memory for cadence codec data" );
274274 return - ENOMEM ;
275275 }
276276
@@ -287,7 +287,7 @@ static int cadence_codec_init(struct processing_module *mod)
287287 setup_cfg -> data = rmalloc (SOF_MEM_FLAG_USER ,
288288 cfg -> param_size );
289289 if (!setup_cfg -> data ) {
290- comp_err (dev , "cadence_codec_init(): failed to alloc setup config" );
290+ comp_err (dev , "failed to alloc setup config" );
291291 ret = - ENOMEM ;
292292 goto free ;
293293 }
@@ -296,7 +296,7 @@ static int cadence_codec_init(struct processing_module *mod)
296296 codec -> cfg .data = rmalloc (SOF_MEM_FLAG_USER ,
297297 cfg -> param_size );
298298 if (!codec -> cfg .data ) {
299- comp_err (dev , "cadence_codec_init(): failed to alloc runtime setup config" );
299+ comp_err (dev , "failed to alloc runtime setup config" );
300300 ret = - ENOMEM ;
301301 goto free_cfg ;
302302 }
@@ -305,7 +305,7 @@ static int cadence_codec_init(struct processing_module *mod)
305305 ret = memcpy_s (codec -> cfg .data , codec -> cfg .size ,
306306 cfg -> param , cfg -> param_size );
307307 if (ret ) {
308- comp_err (dev , "cadence_codec_init(): failed to init runtime config %d" ,
308+ comp_err (dev , "failed to init runtime config %d" ,
309309 ret );
310310 goto free_cfg2 ;
311311 }
@@ -315,7 +315,7 @@ static int cadence_codec_init(struct processing_module *mod)
315315 ret = memcpy_s (setup_cfg -> data , setup_cfg -> size ,
316316 cfg -> param , cfg -> param_size );
317317 if (ret ) {
318- comp_err (dev , "cadence_codec_init(): failed to copy setup config %d" , ret );
318+ comp_err (dev , "failed to copy setup config %d" , ret );
319319 goto free_cfg2 ;
320320 }
321321 setup_cfg -> avail = true;
@@ -347,7 +347,7 @@ static int cadence_codec_init(struct processing_module *mod)
347347
348348 cd = rzalloc (SOF_MEM_FLAG_USER , sizeof (struct cadence_codec_data ));
349349 if (!cd ) {
350- comp_err (dev , "cadence_codec_init(): failed to allocate memory for cadence codec data" );
350+ comp_err (dev , "failed to allocate memory for cadence codec data" );
351351 return - ENOMEM ;
352352 }
353353
@@ -362,7 +362,7 @@ static int cadence_codec_init(struct processing_module *mod)
362362 setup_cfg -> data = rmalloc (SOF_MEM_FLAG_USER ,
363363 codec -> cfg .size );
364364 if (!setup_cfg -> data ) {
365- comp_err (dev , "cadence_codec_init(): failed to alloc setup config" );
365+ comp_err (dev , "failed to alloc setup config" );
366366 ret = - ENOMEM ;
367367 goto free ;
368368 }
@@ -372,7 +372,7 @@ static int cadence_codec_init(struct processing_module *mod)
372372 ret = memcpy_s (setup_cfg -> data , setup_cfg -> size ,
373373 codec -> cfg .init_data , setup_cfg -> size );
374374 if (ret ) {
375- comp_err (dev , "cadence_codec_init(): failed to copy setup config %d" , ret );
375+ comp_err (dev , "failed to copy setup config %d" , ret );
376376 goto free_cfg ;
377377 }
378378 setup_cfg -> avail = true;
@@ -447,12 +447,12 @@ static int cadence_codec_apply_config(struct processing_module *mod)
447447 param -> data , ret );
448448 if (ret != LIB_NO_ERROR ) {
449449 if (LIB_IS_FATAL_ERROR (ret )) {
450- comp_err (dev , "cadence_codec_apply_config(): failed to apply parameter: %d value: %d error: %#x" ,
450+ comp_err (dev , "failed to apply parameter: %d value: %d error: %#x" ,
451451 param -> id , * (int32_t * )param -> data , ret );
452452
453453 return ret ;
454454 }
455- comp_warn (dev , "cadence_codec_apply_config(): applied parameter %d value %d with return code: %#x" ,
455+ comp_warn (dev , "applied parameter %d value %d with return code: %#x" ,
456456 param -> id , * (int32_t * )param -> data , ret );
457457 }
458458 /* Obtain next parameter, it starts right after the preceding one */
@@ -694,7 +694,7 @@ static int cadence_codec_prepare(struct processing_module *mod,
694694 return - ENOMEM ;
695695 }
696696
697- comp_dbg (dev , "cadence_codec_prepare(): allocated %d bytes for memtabs" , mem_tabs_size );
697+ comp_dbg (dev , "allocated %d bytes for memtabs" , mem_tabs_size );
698698
699699 API_CALL (cd , XA_API_CMD_SET_MEMTABS_PTR , 0 , cd -> mem_tabs , ret );
700700 if (ret != LIB_NO_ERROR ) {
@@ -757,7 +757,7 @@ cadence_codec_process(struct processing_module *mod,
757757
758758 /* Proceed only if we have enough data to fill the module buffer completely */
759759 if (input_buffers [0 ].size < codec -> mpd .in_buff_size ) {
760- comp_dbg (dev , "cadence_codec_process(): not enough data to process" );
760+ comp_dbg (dev , "not enough data to process" );
761761 return - ENODATA ;
762762 }
763763
@@ -896,12 +896,12 @@ cadence_codec_set_configuration(struct processing_module *mod, uint32_t config_i
896896 /* whole configuration received, apply it now */
897897 ret = cadence_codec_apply_config (mod );
898898 if (ret ) {
899- comp_err (dev , "cadence_codec_set_configuration(): error %x: runtime config apply failed" ,
899+ comp_err (dev , "error %x: runtime config apply failed" ,
900900 ret );
901901 return ret ;
902902 }
903903
904- comp_dbg (dev , "cadence_codec_set_configuration(): config applied" );
904+ comp_dbg (dev , "config applied" );
905905
906906 return 0 ;
907907}
0 commit comments