Skip to content

Commit ef56aa4

Browse files
mengdonglingregkh
authored andcommitted
ALSA: hda - verify pin:converter connection on unsol event for HSW and VLV
commit b4f75ae 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>
1 parent bdd1bfe commit ef56aa4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎sound/pci/hda/patch_hdmi.c‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,10 +1598,18 @@ static bool hdmi_present_sense(struct hdmi_spec_per_pin *per_pin, int repoll)
15981598
* Re-setup pin and infoframe. This is needed e.g. when
15991599
* - sink is first plugged-in (infoframe is not set up if !monitor_present)
16001600
* - transcoder can change during stream playback on Haswell
1601+
* and this can make HW reset converter selection on a pin.
16011602
*/
1602-
if (eld->eld_valid && !old_eld_valid && per_pin->setup)
1603+
if (eld->eld_valid && !old_eld_valid && per_pin->setup) {
1604+
if (is_haswell_plus(codec) || is_valleyview(codec)) {
1605+
intel_verify_pin_cvt_connect(codec, per_pin);
1606+
intel_not_share_assigned_cvt(codec, pin_nid,
1607+
per_pin->mux_idx);
1608+
}
1609+
16031610
hdmi_setup_audio_infoframe(codec, per_pin,
16041611
per_pin->non_pcm);
1612+
}
16051613
}
16061614

16071615
if (eld_changed)

0 commit comments

Comments
 (0)