Commit e949df0b authored by Ivan Orlov's avatar Ivan Orlov Committed by Takashi Iwai

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: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20240813120701.171743-2-ivan.orlov0322@gmail.com
parent 48f1434a
...@@ -1129,6 +1129,8 @@ static int loopback_parse_timer_id(const char *str, ...@@ -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) { if (!err && tid) {
tid->card = card_idx; tid->card = card_idx;
tid->device = dev; tid->device = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment