diff options
author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2024-08-13 15:06:58 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-18 10:55:54 +0300 |
commit | e949df0b021cdd503c4e72db12b1b4154a82d698 (patch) | |
tree | 46d056e25719b94394393f1d0ed38cf2fc1789f4 | |
parent | 48f1434a4632c7da1a6a94e159512ebddbe13392 (diff) | |
download | linux-e949df0b021cdd503c4e72db12b1b4154a82d698.tar.xz |
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
-rw-r--r-- | sound/drivers/aloop.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |