From: Ivan Orlov Date: Tue, 13 Aug 2024 12:06:58 +0000 (+0100) Subject: ALSA: aloop: Allow using global timers X-Git-Tag: v6.12-rc1~169^2~50 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e949df0b021cdd503c4e72db12b1b4154a82d698;p=linux-2.6-block.git 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 Signed-off-by: Takashi Iwai Link: https://patch.msgid.link/20240813120701.171743-2-ivan.orlov0322@gmail.com --- diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 3650d47b7d58..eb8a68a06c4d 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -1129,6 +1129,8 @@ static int loopback_parse_timer_id(const char *str, } } } + if (card_idx == -1) + tid->dev_class = SNDRV_TIMER_CLASS_GLOBAL; if (!err && tid) { tid->card = card_idx; tid->device = dev;