ALSA: hda: Refer to correct stream index at loops
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Nov 2023 15:41:25 +0000 (16:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Nov 2023 15:42:06 +0000 (16:42 +0100)
commit26257869672fd4a06a60c2da841e15fb2cb47bbe
tree9b559d656a9367828d5661585ac346c7279bbca0
parent5a77457232fa0453da4d3d5a7d530129944aeeb5
ALSA: hda: Refer to correct stream index at loops

In a couple of loops over the all streams, we check the bitmap against
the loop counter.  A more correct reference would be, however, the
index of each stream, instead.

This patch corrects the check of bitmaps to the stream index.

Note that this change doesn't fix anything for now; all existing
drivers set up the stream indices properly, hence the loop count is
always equal with the stream index.  That said, this change is only
for consistency.

Link: https://lore.kernel.org/r/20231121154125.4888-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c