Skip to content

Commit c51528a

Browse files
Marcin Makadbaluta
authored andcommitted
pipe: trace: add more details to events
Log stream parameters. Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
1 parent b631f86 commit c51528a

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/audio/pipeline.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,13 @@ int pipeline_params(struct pipeline *p, struct comp_dev *host,
390390
int dir = params->params.direction;
391391
int ret;
392392

393-
pipe_info(p, "pipeline_params()");
393+
pipe_info(p, "pipe params dir %d frame_fmt %d buffer_fmt %d rate %d",
394+
params->params.direction, params->params.frame_fmt,
395+
params->params.buffer_fmt, params->params.rate);
396+
pipe_info(p, "pipe params stream_tag %d channels %d sample_valid_bytes %d sample_container_bytes %d",
397+
params->params.stream_tag, params->params.channels,
398+
params->params.sample_valid_bytes,
399+
params->params.sample_container_bytes);
394400

395401
/* settin hw params */
396402
data.start = host;
@@ -511,7 +517,7 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
511517
struct pipeline_data ppl_data;
512518
int ret = 0;
513519

514-
pipe_info(p, "pipeline_prepare()");
520+
pipe_info(p, "pipe prepare");
515521

516522
ppl_data.start = dev;
517523

@@ -639,7 +645,7 @@ int pipeline_trigger(struct pipeline *p, struct comp_dev *host, int cmd)
639645
struct pipeline_data data;
640646
int ret;
641647

642-
pipe_info(p, "pipeline_trigger()");
648+
pipe_info(p, "pipe trigger cmd %d", cmd);
643649

644650
/* handle pipeline global checks before going into each components */
645651
if (p->xrun_bytes) {
@@ -710,7 +716,7 @@ int pipeline_reset(struct pipeline *p, struct comp_dev *host)
710716
{
711717
int ret = 0;
712718

713-
pipe_info(p, "pipeline_reset()");
719+
pipe_info(p, "pipe reset");
714720

715721
ret = pipeline_comp_reset(host, NULL, p, host->direction);
716722
if (ret < 0) {

0 commit comments

Comments
 (0)