]> 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:25:54 +0000 (16:25 +0200)
commit10c27ab7accbe455904483070975cc89a512df9a
tree7b2bfb0472d4de9345af44b13c7cc50ea418ec9c
parent68b8f05a026f7c6e6a19895bad9b42cd22e40f00
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