Skip to content

Commit

Permalink
removed fwlogs from udm
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdobrowolski committed Sep 15, 2023
1 parent ac3a418 commit d42362e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/audio/up_down_mixer/up_down_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <rimage/sof/user/manifest.h>
#include <sof/audio/module_adapter/library/module_api_ver.h>

LOG_MODULE_REGISTER(up_down_mixer, CONFIG_SOF_LOG_LEVEL);
// LOG_MODULE_REGISTER(up_down_mixer, CONFIG_SOF_LOG_LEVEL);

/* these ids aligns windows driver requirement to support windows driver */
/* 42f8060c-832f-4dbf-b247-51e961997b34 */
Expand All @@ -53,12 +53,12 @@ struct sof_module_api_build_info udm_build_info __attribute__((section(".buildin

static struct module_interface up_down_mixer_interface;

UT_STATIC void sys_comp_module_up_down_mixer_interface_init(void);
//UT_STATIC void sys_comp_module_up_down_mixer_interface_init(void);

// __attribute__((section(".cmi.text")))
void *loadable_udm_entry_point(void *mod_cfg, void *parent_ppl, void **mod_ptr)
{
sys_comp_module_up_down_mixer_interface_init();
// sys_comp_module_up_down_mixer_interface_init();
return &up_down_mixer_interface;
}

Expand Down Expand Up @@ -139,7 +139,7 @@ static int set_downmix_coefficients(struct processing_module *mod,
cd->downmix_coefficients = k_scaled_lo_ro_downmix32bit;
break;
default:
comp_err(dev, "set_downmix_coefficients(): invalid channel config.");
// comp_err(dev, "set_downmix_coefficients(): invalid channel config.");
return -EINVAL;
}

Expand Down Expand Up @@ -167,7 +167,7 @@ static up_down_mixer_routine select_mix_out_stereo(struct comp_dev *dev,
return downmix16bit_5_1;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_stereo(): invalid channel config.");
// comp_err(dev, "select_mix_out_stereo(): invalid channel config.");
/*
* This is a strange situation. We will allow to process it
* in the release code (hoping for the best) with downmix16bit,
Expand Down Expand Up @@ -200,7 +200,7 @@ static up_down_mixer_routine select_mix_out_stereo(struct comp_dev *dev,
return downmix32bit_7_1;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_stereo(): invalid channel config.");
// comp_err(dev, "select_mix_out_stereo(): invalid channel config.");
/*
* This is a strange situation. We will allow to process it
* in the release code (hoping for the best) with downmix32bit,
Expand All @@ -224,7 +224,7 @@ static up_down_mixer_routine select_mix_out_mono(struct comp_dev *dev,
return downmix16bit_4ch_mono;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_mono(): invalid channel config.");
// comp_err(dev, "select_mix_out_mono(): invalid channel config.");
/*
* This is a strange situation. We will allow to process it
* in the release code (hoping for the best) with downmix16bit,
Expand All @@ -251,7 +251,7 @@ static up_down_mixer_routine select_mix_out_mono(struct comp_dev *dev,
return downmix32bit_7_1_mono;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_mono(): invalid channel config.");
// comp_err(dev, "select_mix_out_mono(): invalid channel config.");
/*
* This is a strange situation. We will allow to process it
* in the release code (hoping for the best) with downmix32bit,
Expand All @@ -273,7 +273,7 @@ static up_down_mixer_routine select_mix_out_5_1(struct comp_dev *dev,
return upmix16bit_2_0_to_5_1;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_5_1(): invalid channel config.");
// comp_err(dev, "select_mix_out_5_1(): invalid channel config.");
return NULL;
}
} else {
Expand All @@ -290,7 +290,7 @@ static up_down_mixer_routine select_mix_out_5_1(struct comp_dev *dev,
return downmix32bit_7_1_to_5_1;
case IPC4_CHANNEL_CONFIG_INVALID:
default:
comp_err(dev, "select_mix_out_5_1(): invalid channel config.");
// comp_err(dev, "select_mix_out_5_1(): invalid channel config.");
return NULL;
}
}
Expand Down Expand Up @@ -418,13 +418,13 @@ static int up_down_mixer_init(struct processing_module *mod)
up_down_mixer->out_channel_config, up_down_mixer->coefficients);
break;
default:
comp_err(dev, "up_down_mixer_init(): unsupported coefficient type");
// comp_err(dev, "up_down_mixer_init(): unsupported coefficient type");
ret = -EINVAL;
break;
}

if (ret < 0) {
comp_err(dev, "up_down_mixer_init(): failed to initialize up_down_mix");
// comp_err(dev, "up_down_mixer_init(): failed to initialize up_down_mix");
goto err;
}

Expand All @@ -444,7 +444,7 @@ static int up_down_mixer_prepare(struct processing_module *mod,
struct comp_dev *dev = mod->dev;

if (!cd->mix_routine) {
comp_err(dev, "up_down_mixer_prepare(): mix routine not initialized");
// comp_err(dev, "up_down_mixer_prepare(): mix routine not initialized");
return -EINVAL;
}

Expand All @@ -466,7 +466,7 @@ up_down_mixer_process(struct processing_module *mod,
uint32_t source_bytes, sink_bytes;
uint32_t mix_frames;

comp_dbg(dev, "up_down_mixer_process()");
// comp_dbg(dev, "up_down_mixer_process()");

mix_frames = audio_stream_avail_frames(mod->input_buffers[0].data,
mod->output_buffers[0].data);
Expand Down

0 comments on commit d42362e

Please sign in to comment.