From 928d660a67e28bf1c20e1630b544a12c134359b1 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 30 Jul 2017 14:31:05 +0200 Subject: rbcodec: fix compilation in debug mode Change-Id: I124cf59c641c2e161cc147b031d9bef5ef773dfb --- lib/rbcodec/dsp/channel_mode.c | 2 +- lib/rbcodec/dsp/crossfeed.c | 2 +- lib/rbcodec/dsp/dsp_proc_entry.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rbcodec/dsp/channel_mode.c b/lib/rbcodec/dsp/channel_mode.c index aa92cec412..7a83236648 100644 --- a/lib/rbcodec/dsp/channel_mode.c +++ b/lib/rbcodec/dsp/channel_mode.c @@ -204,7 +204,7 @@ static intptr_t channel_mode_new_format(struct dsp_proc_entry *this, struct dsp_config *dsp, struct sample_format *format) { - DSP_PRINT_FORMAT(DSP_PROC_CHANNEL_MODE, format); + DSP_PRINT_FORMAT(DSP_PROC_CHANNEL_MODE, *format); bool active = format->num_channels >= 2; dsp_proc_activate(dsp, DSP_PROC_CHANNEL_MODE, active); diff --git a/lib/rbcodec/dsp/crossfeed.c b/lib/rbcodec/dsp/crossfeed.c index 0428f58d8d..60f38b243c 100644 --- a/lib/rbcodec/dsp/crossfeed.c +++ b/lib/rbcodec/dsp/crossfeed.c @@ -302,7 +302,7 @@ static intptr_t crossfeed_new_format(struct dsp_proc_entry *this, struct dsp_config *dsp, struct sample_format *format) { - DSP_PRINT_FORMAT(DSP_PROC_CROSSFEED, format); + DSP_PRINT_FORMAT(DSP_PROC_CROSSFEED, *format); bool was_active = dsp_proc_active(dsp, DSP_PROC_CROSSFEED); bool active = format->num_channels >= 2; diff --git a/lib/rbcodec/dsp/dsp_proc_entry.h b/lib/rbcodec/dsp/dsp_proc_entry.h index 1bf59dd73a..a4f7b71f9c 100644 --- a/lib/rbcodec/dsp/dsp_proc_entry.h +++ b/lib/rbcodec/dsp/dsp_proc_entry.h @@ -158,7 +158,7 @@ void dsp_proc_set_in_place(struct dsp_config *dsp, enum dsp_proc_ids id, #define DSP_PRINT_FORMAT(id, format) \ DEBUGF("DSP format- " #id "\n" \ " ver:%u ch:%u fb:%u os:%u hz:%u chz:%u\n", \ - (unsigned int)(format).version \ + (unsigned int)(format).version, \ (unsigned int)(format).num_channels, \ (unsigned int)(format).frac_bits, \ (unsigned int)(format).output_scale, \ -- cgit v1.2.3