]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/realtek - Avoid setting wrong COEF on ALC269 & co
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Aug 2014 15:35:00 +0000 (17:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 16 Aug 2014 07:10:26 +0000 (09:10 +0200)
commit4cc5f8a6721b99fe1c9d8d2a143ad40042cc8211
treef8e6246f10a4e3d1b97eaf90ba98958f0401eb9b
parenta3defee79f4e1564ee8bb4e836c0eee54314cc8e
ALSA: hda/realtek - Avoid setting wrong COEF on ALC269 & co

ALC269 & co have many vendor-specific setups with COEF verbs.
However, some verbs seem specific to some codec versions and they
result in the codec stalling.  Typically, such a case can be avoided
by checking the return value from reading a COEF.  If the return value
is -1, it implies that the COEF is invalid, thus it shouldn't be
written.

This patch adds the invalid COEF checks in appropriate places
accessing ALC269 and its variants.  The patch actually fixes the
resume problem on Acer AO725 laptop.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=52181
Tested-by: Francesco Muzio <muziofg@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c