Skip to content

Commit cde1e83

Browse files
author
Wu Zhigang
committed
[RFC]host:remove the useless state set.
1. when the stop command comes, the host's state is set in host_trigger() function with PREPARE. it should not be set with PAUSED in host_stop(). 2. when the host_pointer_reset() called, it does not need to set host state to READY state.the caller will do this job. Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
1 parent 748aad9 commit cde1e83

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/audio/host.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ static int host_pointer_reset(struct comp_dev *dev)
727727
hd->local_pos = 0;
728728
hd->report_pos = 0;
729729
dev->position = 0;
730-
comp_set_state(dev, COMP_TRIGGER_RESET);
731730

732731
return 0;
733732
}
@@ -740,7 +739,6 @@ static int host_stop(struct comp_dev *dev)
740739
/* reset elements, to let next start from original one */
741740
host_elements_reset(dev);
742741

743-
dev->state = COMP_STATE_PAUSED;
744742
return 0;
745743
}
746744

0 commit comments

Comments
 (0)