Unverified Commit 90bd060f authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents c5aac4b6 b38b099b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -553,6 +553,16 @@ static int snd_timer_start1(struct snd_timer_instance *timeri,
		goto unlock;
	}

	/* check the actual time for the start tick;
	 * bail out as error if it's way too low (< 100us)
	 */
	if (start) {
		if ((u64)snd_timer_hw_resolution(timer) * ticks < 100000) {
			result = -EINVAL;
			goto unlock;
		}
	}

	if (start)
		timeri->ticks = timeri->cticks = ticks;
	else if (!timeri->cticks)