From: Takashi Iwai <tiwai@suse.de>
To: "Cássio Gabriel" <cassiogabrielcontato@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: timer: keep a list of open masters for slave lookup
Date: Tue, 17 Mar 2026 09:17:33 +0100 [thread overview]
Message-ID: <87bjgmg99e.wl-tiwai@suse.de> (raw)
In-Reply-To: <20260316-alsa-timer-master-list-v1-1-fb95e547110a@gmail.com>
On Mon, 16 Mar 2026 14:39:38 +0100,
Cássio Gabriel wrote:
>
> snd_timer_check_slave() still walks all registered timers and all open
> timer instances to find a matching master for a newly opened slave.
>
> Maintain a global list of open master instances that can accept slave
> links and use it for the slave lookup path instead. This keeps the
> existing matching semantics while avoiding the nested walk over
> snd_timer_list and each timer open_list_head.
>
> The reverse path in snd_timer_check_master() already scans only the
> pending slave list, so this makes both lookup paths closer in shape
> without changing the master/slave linking logic.
>
> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Thanks, applied to for-next branch now.
Takashi
prev parent reply other threads:[~2026-03-17 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 13:39 [PATCH] ALSA: timer: keep a list of open masters for slave lookup Cássio Gabriel
2026-03-17 8:17 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bjgmg99e.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cassiogabrielcontato@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.