소스 검색

ALSA: HDA: Increase MAX_HDMI_PINS

The recently introduced NVIDIA GeForce GT 520 has 4 pins within a single
codec. Bump MAX_HDMI_PINS to accomodate this. Also bump MAX_HDMI_CVTS
to match it; this might be needed later too.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Stephen Warren 14 년 전
부모
커밋
739266566a
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      sound/pci/hda/patch_hdmi.c

+ 3 - 2
sound/pci/hda/patch_hdmi.c

@@ -48,8 +48,8 @@ MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info");
  *
  *
  * The HDA correspondence of pipes/ports are converter/pin nodes.
  * The HDA correspondence of pipes/ports are converter/pin nodes.
  */
  */
-#define MAX_HDMI_CVTS	3
-#define MAX_HDMI_PINS	3
+#define MAX_HDMI_CVTS	4
+#define MAX_HDMI_PINS	4
 
 
 struct hdmi_spec {
 struct hdmi_spec {
 	int num_cvts;
 	int num_cvts;
@@ -1027,6 +1027,7 @@ static char *generic_hdmi_pcm_names[MAX_HDMI_CVTS] = {
 	"HDMI 0",
 	"HDMI 0",
 	"HDMI 1",
 	"HDMI 1",
 	"HDMI 2",
 	"HDMI 2",
+	"HDMI 3",
 };
 };
 
 
 /*
 /*