]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix missing ELD update at unplugging
authorTakashi Iwai <tiwai@suse.de>
Mon, 21 Mar 2016 15:07:30 +0000 (16:07 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 21 Mar 2016 15:25:07 +0000 (16:25 +0100)
commit6b635491aa6969ec0f2515ab19e9a3d60b1eff0c
treeb5b7158997bb678910a52fa6d84d49adffba2f15
parentdede781b8130dff0ad9d7b459fbca3a08bd3f675
ALSA: hda - Fix missing ELD update at unplugging

i915 get_eld ops may return an error when no encoder is connected, and
currently we regard the error as fatal and skip the whole ELD
handling.  This ended up with the missing ELD update at unplugging.

This patch fixes the issue by treating the error as the unplugged
state, instead of skipping the rest.

Reported-by: Libin Yang <libin.yang@linux.intel.com>
Cc: <stable@vger.kernel.org> # v4.5
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c