OSDN Git Service

ALSA: hda/hdmi: Add option to enable all pins forcibly
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jul 2021 09:35:51 +0000 (11:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jul 2021 11:13:38 +0000 (13:13 +0200)
commit4ff19229487f965118c6f14090edcc8cb6108605
tree5a371c5659cc569212dcdd65b8527dbbbb36e032
parent82a60352c2d3ef06815d4ddfd85d5506b5758804
ALSA: hda/hdmi: Add option to enable all pins forcibly

On Intel platforms, we always enable all pins no matter what BIOS
sets, but for others, we still take the conservative approach, and the
HD-audio HDMI codec driver enables the streams only for the pins that
are enabled by BIOS, and skips the disabled pins.  This seems not good
for some machines that have (as expected) broken BIOS, resulting in
the lack of needed outputs.

There is an allow-list in the driver code to enable all pins, but its
addition needs a recompilation.  This patch adds a module option for
user's convenience to enable all pins forcibly on the fly.  User can
pass snd_hda_codec_hdmi.enable_all_pins=1 option for testing, and once
confirmed, we may add a static entry in force_connect_list[].

Link: https://lore.kernel.org/r/20210712093551.29007-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c