]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: fix comment reference in __uac_clock_find_source
authorGeraldo Nascimento <geraldogabriel@gmail.com>
Sat, 25 Sep 2021 02:33:51 +0000 (23:33 -0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Sep 2021 08:17:08 +0000 (10:17 +0200)
commit69b0c2457f5dfe225d7927b52ccab97ffd8aa6a5
tree07839b76f14ba60b59b777d89fb8b201b18fcb02
parent66f80621d3bed5fdb481de7424b0a4ddbe89ed27
ALSA: usb-audio: fix comment reference in __uac_clock_find_source

snd_usb_find_clock_source and snd_usb_find_clock_selector are helper
macros that look at an entity id and validate that this entity id is
in fact a clock source or a clock selector. The present comments
inside __uac_clock_find_source give the reader the impression we're
looking for an entity id.

We're looking for an entity id indeed, the clock source, but since
__uac_clock_find_source is recursive, we're also looking *at* the
entity ids, in the search for the one clock source.

Fix the comment so we don't give readers a wrong idea.

Signed-off-by: Geraldo Nascimento <geraldogabriel@gmail.com>
Link: https://lore.kernel.org/r/YU6Kj05oOqRmhJDf@geday
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c