Skip to content

Commit ccbfcac

Browse files
committed
ALSA: timer: Relax start tick time check for slave timer elements
The recent addition of a sanity check for a too low start tick time seems breaking some applications that uses aloop with a certain slave timer setup. They may have the initial resolution 0, hence it's treated as if it were a too low value. Relax and skip the check for the slave timer instance for addressing the regression. Fixes: 4a63bd1 ("ALSA: timer: Set lower bound of start tick time") Cc: <[email protected]> Link: raspberrypi/linux#6294 Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent d3e82ce commit ccbfcac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/core/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static int snd_timer_start1(struct snd_timer_instance *timeri,
547547
/* check the actual time for the start tick;
548548
* bail out as error if it's way too low (< 100us)
549549
*/
550-
if (start) {
550+
if (start && !(timer->hw.flags & SNDRV_TIMER_HW_SLAVE)) {
551551
if ((u64)snd_timer_hw_resolution(timer) * ticks < 100000)
552552
return -EINVAL;
553553
}

0 commit comments

Comments
 (0)