]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - fix the 'Capture Switch' value change notifications
authorJaroslav Kysela <perex@perex.cz>
Wed, 11 Aug 2021 16:14:41 +0000 (18:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Aug 2021 11:39:30 +0000 (13:39 +0200)
commit618feea0a2754d3293ecb28241c508496fbc06bf
treed01b3b45e02d3dbc478a560515bb1b4785d59a6d
parent2dbe8d99159ec2c44486474424ca903451417655
ALSA: hda - fix the 'Capture Switch' value change notifications

The original code in the cap_put_caller() function does not
handle correctly the positive values returned from the passed
function for multiple iterations. It means that the change
notifications may be lost.

Fixes: 93b0a119c20d ("ALSA: hda - Merge Realtek parser code to generic parser")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=213851
Cc: <stable@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210811161441.1325250-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c