]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ice1724: Fix invalid access for enumerated ctl items
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Apr 2020 08:44:02 +0000 (10:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Apr 2020 14:43:46 +0000 (16:43 +0200)
commitdf6dbcf8f86c62f90f7299321dbc2afcacb059c4
tree9c7f1ab51167e25df9d55bc20e5df2f452b7e7ac
parenta6ab2fdf384eea97064757592b1e341f4da7a78e
ALSA: ice1724: Fix invalid access for enumerated ctl items

The access to Analog Capture Source control value implemented in
prodigy_hifi.c is wrong, as caught by the recently introduced sanity
check; it should be accessing value.enumerated.item[] instead of
value.integer.value[].  This patch corrects the wrong access pattern.

Fixes: fd9eaea60409 ("[ALSA] ICE1724: Added support for Audiotrak Prodigy 7.1 HiFi & HD2, Hercules Fortissimo IV")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207139
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200407084402.25589-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/prodigy_hifi.c