@@ -47,6 +47,8 @@ static int set_downmix_coefficients(struct processing_module *mod,
4747 struct comp_dev * dev = mod -> dev ;
4848 int ret ;
4949
50+ comp_info (dev , "set_downmix_coefficients()" );
51+
5052 if (cd -> downmix_coefficients ) {
5153 ret = memcpy_s (& custom_coeffs , sizeof (custom_coeffs ), downmix_coefficients ,
5254 sizeof (int32_t ) * UP_DOWN_MIX_COEFFS_LENGTH );
@@ -110,6 +112,8 @@ static int set_downmix_coefficients(struct processing_module *mod,
110112static up_down_mixer_routine select_mix_out_stereo (struct comp_dev * dev ,
111113 const struct ipc4_audio_format * format )
112114{
115+ comp_info (dev , "select_mix_out_stereo()" );
116+
113117 if (format -> depth == IPC4_DEPTH_16BIT ) {
114118 switch (format -> ch_cfg ) {
115119 case IPC4_CHANNEL_CONFIG_MONO :
@@ -175,6 +179,8 @@ static up_down_mixer_routine select_mix_out_stereo(struct comp_dev *dev,
175179static up_down_mixer_routine select_mix_out_mono (struct comp_dev * dev ,
176180 const struct ipc4_audio_format * format )
177181{
182+ comp_info (dev , "select_mix_out_mono(" );
183+
178184 if (format -> depth == IPC4_DEPTH_16BIT ) {
179185 switch (format -> ch_cfg ) {
180186 case IPC4_CHANNEL_CONFIG_STEREO :
@@ -226,6 +232,8 @@ static up_down_mixer_routine select_mix_out_mono(struct comp_dev *dev,
226232static up_down_mixer_routine select_mix_out_5_1 (struct comp_dev * dev ,
227233 const struct ipc4_audio_format * format )
228234{
235+ comp_info (dev , "select_mix_out_5_1()" );
236+
229237 if (format -> depth == IPC4_DEPTH_16BIT ) {
230238 switch (format -> ch_cfg ) {
231239 case IPC4_CHANNEL_CONFIG_MONO :
@@ -265,6 +273,8 @@ static int init_mix(struct processing_module *mod,
265273 struct up_down_mixer_data * cd = module_get_private_data (mod );
266274 struct comp_dev * dev = mod -> dev ;
267275
276+ comp_info (dev , "init_mix()" );
277+
268278 if (!format )
269279 return - EINVAL ;
270280
@@ -326,6 +336,8 @@ static int up_down_mixer_free(struct processing_module *mod)
326336{
327337 struct up_down_mixer_data * cd = module_get_private_data (mod );
328338
339+ comp_info (mod -> dev , "up_down_mixer_free()" );
340+
329341 rfree (cd -> buf_in );
330342 rfree (cd -> buf_out );
331343 rfree (cd );
@@ -398,23 +410,31 @@ static int up_down_mixer_init(struct processing_module *mod)
398410 switch (up_down_mixer -> coefficients_select ) {
399411 case DEFAULT_COEFFICIENTS :
400412 cd -> out_channel_map = create_channel_map (up_down_mixer -> out_channel_config );
413+ comp_info (dev , "c1 out_channel map = %d" , cd -> out_channel_map );
401414 ret = init_mix (mod , & mod -> priv .cfg .base_cfg .audio_fmt ,
402415 up_down_mixer -> out_channel_config , NULL );
416+ comp_info (dev , "c1 init_mix() done" );
403417 break ;
404418 case CUSTOM_COEFFICIENTS :
405419 cd -> out_channel_map = create_channel_map (up_down_mixer -> out_channel_config );
420+ comp_info (dev , "c2 out_channel map = %d" , cd -> out_channel_map );
406421 ret = init_mix (mod , & mod -> priv .cfg .base_cfg .audio_fmt ,
407422 up_down_mixer -> out_channel_config , up_down_mixer -> coefficients );
423+ comp_info (dev , "c2 init_mix() done" );
408424 break ;
409425 case DEFAULT_COEFFICIENTS_WITH_CHANNEL_MAP :
410426 cd -> out_channel_map = up_down_mixer -> channel_map ;
427+ comp_info (dev , "c3 out_channel map = %d" , cd -> out_channel_map );
411428 ret = init_mix (mod , & mod -> priv .cfg .base_cfg .audio_fmt ,
412429 up_down_mixer -> out_channel_config , NULL );
430+ comp_info (dev , "c3 init_mix() done" );
413431 break ;
414432 case CUSTOM_COEFFICIENTS_WITH_CHANNEL_MAP :
415433 cd -> out_channel_map = up_down_mixer -> channel_map ;
434+ comp_info (dev , "c4 out_channel map = %d" , cd -> out_channel_map );
416435 ret = init_mix (mod , & mod -> priv .cfg .base_cfg .audio_fmt ,
417436 up_down_mixer -> out_channel_config , up_down_mixer -> coefficients );
437+ comp_info (dev , "c4 init_mix() done" );
418438 break ;
419439 default :
420440 comp_err (dev , "up_down_mixer_init(): unsupported coefficient type" );
@@ -427,9 +447,11 @@ static int up_down_mixer_init(struct processing_module *mod)
427447 goto err ;
428448 }
429449
450+ comp_info (dev , "up_down_mixer_init() ready" );
430451 return 0 ;
431452
432453err :
454+ comp_err (dev , "up_down_mixer_init() error" );
433455 up_down_mixer_free (mod );
434456 return ret ;
435457}
0 commit comments