Skip to content

Commit

Permalink
Audio: Volume: Add temporary traces to know test condition
Browse files Browse the repository at this point in the history
Temporary change to debug dev ops test failure.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu committed Mar 20, 2024
1 parent 4cf60f1 commit 38b9400
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/audio/volume/volume_ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ static int volume_set_volume(struct processing_module *mod, const uint8_t *data,
return -EINVAL;
}

comp_info(dev, "volume_set_volume %u %u %u %u",
cdata.channel_id, cdata.target_volume, cdata.curve_type, cdata.curve_duration);

if (cdata.channel_id == IPC4_ALL_CHANNELS_MASK) {
for (i = 0; i < channels_count; i++) {
if (cd->muted[i]) {
Expand Down Expand Up @@ -274,6 +277,8 @@ static int volume_set_attenuation(struct processing_module *mod, const uint8_t *
return -EINVAL;
}

comp_info(dev, "volume_set_attenuation %d", attenuation);

audio_stream_fmt_conversion(mod->priv.cfg.base_cfg.audio_fmt.depth,
mod->priv.cfg.base_cfg.audio_fmt.valid_bit_depth,
&frame_fmt, &valid_fmt,
Expand Down Expand Up @@ -321,7 +326,7 @@ static int volume_set_switch(struct processing_module *mod, const uint8_t *data,

for (i = 0; i < num_elems; i++) {
val = ctl->chanv[i].value;
comp_dbg(dev, "channel %i, value %u", i, val);
comp_info(dev, "volume_set_switch channel %i, value %u", i, val);

if (val)
volume_set_chan_unmute(mod, i);
Expand Down

0 comments on commit 38b9400

Please sign in to comment.