[Sound-open-firmware] [PATCH] comp: volume: dump trace output on format matching failure.
Liam Girdwood
liam.r.girdwood at linux.intel.com
Sun Sep 24 00:07:22 CEST 2017
Emit trace data to show format matching failures for source and sink data
types.
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/audio/volume.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/audio/volume.c b/src/audio/volume.c
index 960a144..be6197e 100644
--- a/src/audio/volume.c
+++ b/src/audio/volume.c
@@ -616,7 +616,10 @@ static int volume_prepare(struct comp_dev *dev)
cd->scale_vol = func_map[i].func;
goto found;
}
-
+ trace_volume_error("vp3");
+ trace_value(cd->source_format);
+ trace_value(cd->sink_format);
+ trace_value(dev->params.channels);
return -EINVAL;
found:
--
2.11.0
More information about the Sound-open-firmware
mailing list