Skip to content

Commit

Permalink
ipc: fill timestamp resolution in sof_ipc_stream_posn
Browse files Browse the repository at this point in the history
Fills timestamp resolution in sof_ipc_stream_posn structure.
This field has been never set before.

Signed-off-by: Tomasz Lauda <[email protected]>
  • Loading branch information
tlauda authored and jajanusz committed May 10, 2019
1 parent fe913cc commit 6eb79af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/audio/pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ void pipeline_get_timestamp(struct pipeline *p, struct comp_dev *host,
data.posn = posn;

pipeline_comp_timestamp(host, &data, host->params.direction);

/* set timestamp resolution */
posn->timestamp_ns = p->ipc_pipe.period * 1000;
}

static int pipeline_comp_xrun(struct comp_dev *current, void *data, int dir)
Expand Down

0 comments on commit 6eb79af

Please sign in to comment.