aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRohit kumar <rohitkr@codeaurora.org>2020-08-19 15:21:07 +0530
committerRohit kumar <rohitkr@codeaurora.org>2020-09-03 11:34:16 +0530
commit9c7a358e0e4dbb447129b91d3633fb8d0cec2a85 (patch)
tree2e1e7600db362b9642d035f11b986bda78dc7e71 /src
parentf29b8df6261e72d9a426d6d8c175a896931654e2 (diff)
pcm_plugin: Update pcm state check in ttstamp ops
TTstamp ops is called from pcm_open. Update state check to avoid failure.
Diffstat (limited to 'src')
-rw-r--r--src/pcm_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_plugin.c b/src/pcm_plugin.c
index 8b633aa..15bfc80 100644
--- a/src/pcm_plugin.c
+++ b/src/pcm_plugin.c
@@ -570,7 +570,7 @@ static int pcm_plug_ttstamp(struct pcm_plug_data *plug_data,
{
struct pcm_plugin *plugin = plug_data->plugin;
- if (plugin->state != PCM_PLUG_STATE_RUNNING)
+ if (plugin->state < PCM_PLUG_STATE_SETUP)
return -EBADFD;
return plug_data->ops->ttstamp(plugin, tstamp);