]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: hdmi - Keep old slot assignment behavior for Intel platforms
authorTakashi Iwai <tiwai@suse.de>
Tue, 3 Dec 2019 15:41:05 +0000 (16:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Dec 2019 19:33:05 +0000 (20:33 +0100)
commitb35f451c677604da2e165042d71f0ad3fcf5bdc6
tree512ff09c6ecff8830dd76facd128ea93cd4847c2
parentbe75827036088320d1ab21a28cb96340d8139630
ALSA: hda: hdmi - Keep old slot assignment behavior for Intel platforms

The commit 47489dd2ee49 ("ALSA: hda: hdmi - preserve non-MST PCM
routing for Intel platforms") tried to restore the old behavior wrt
assignment of the PCM slot for Intel platforms, but this didn't do it
right.  As found in the later discussion, a positive pipe id on Intel
platforms can be passed for single monitor attachment case.

This patch reverts the previous attempt and applies a simpler
workaround instead.  Actually, for Intel platforms, we can handle as
if per_pin->dev_id=0, assign the primary slot at the first try.  This
assures the compatible behavior with the previous versions regarding
the slot assignment.

Fixes: 47489dd2ee49 ("ALSA: hda: hdmi - preserve non-MST PCM routing for Intel platforms")
Link: https://lore.kernel.org/r/20191203154105.30414-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c