ALSA: hda - verify pin:converter connection on unsol event for HSW and VLV
authorMengdong Lin <mengdong.lin@intel.com>
Thu, 12 Jun 2014 06:42:25 +0000 (14:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:17:37 +0000 (15:17 -0400)
commitef56aa414e7e978237cbcef2e9fc29ecf42e97e6
tree46a47b3d55d58d88d3f52eaf21538f089e2edf1c
parentbdd1bfe6bb8d0db0e3e085a334b86fb60eeeb0fc
ALSA: hda - verify pin:converter connection on unsol event for HSW and VLV

commit b4f75aea553a2146bbdd159c397a2ac42cbb9902 upstream.

This patch will verify the pin's coverter selection for an active stream
when an unsol event reports this pin becomes available again after a display
mode change or hot-plug event.

For Haswell+ and Valleyview: display mode change or hot-plug can change the
transcoder:port connection and make all the involved audio pins share the 1st
converter. So the stream using 1st convertor will flow to multiple pins
but active streams using other converters will fail. This workaround
is to assure the pin selects the right conveter and an assigned converter is
not shared by other unused pins.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_hdmi.c