]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: intel8x0: Fix incorrect codec index usage in mixer for ICH4
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Sat, 21 Jun 2025 18:52:24 +0000 (11:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:18 +0000 (16:28 +0200)
commit789aa0b98854d0e28ab114be2be15017d52b309f
treef9e5cb35c5a919d06b46825b591253f05f2b86ec
parent2828f2c4f2e98cd3433f0b927aefdaf70de049d7
ALSA: intel8x0: Fix incorrect codec index usage in mixer for ICH4

[ Upstream commit 87aafc8580acf87fcaf1a7e30ed858d8c8d37d81 ]

code mistakenly used a hardcoded index (codec[1]) instead of
iterating, over the codec array using the loop variable i.
Use codec[i] instead of codec[1] to match the loop iteration.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20250621185233.4081094-1-alok.a.tiwari@oracle.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/intel8x0.c