Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: aloop: Allow using global timers

Allow using global timers as a timer source when card id is equal to -1
in the timer_source parameter.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240813120701.171743-2-ivan.orlov0322@gmail.com

authored by

Ivan Orlov and committed by
Takashi Iwai
e949df0b 48f1434a

+2
+2
sound/drivers/aloop.c
··· 1129 1129 } 1130 1130 } 1131 1131 } 1132 + if (card_idx == -1) 1133 + tid->dev_class = SNDRV_TIMER_CLASS_GLOBAL; 1132 1134 if (!err && tid) { 1133 1135 tid->card = card_idx; 1134 1136 tid->device = dev;