diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-10-30 06:46:22 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-10-30 06:46:22 -0400 |
commit | fd080b2d8a6a13992b4b1b6300e1befdb9e089f2 (patch) | |
tree | 470c0fb8b083ce88d04c05a3078db509b38833ce /sound/pci/hda/patch_intelhdmi.c | |
parent | f424367c3a393ca8b9669ceaa5b7f959d83bb14c (diff) |
ALSA: hda - remove static intelhdmi configurations
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_intelhdmi.c')
-rw-r--r-- | sound/pci/hda/patch_intelhdmi.c | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c index 1c374f11ed07..650de1b4ea8d 100644 --- a/sound/pci/hda/patch_intelhdmi.c +++ b/sound/pci/hda/patch_intelhdmi.c | |||
@@ -841,24 +841,7 @@ static struct hda_codec_ops intel_hdmi_patch_ops = { | |||
841 | .unsol_event = intel_hdmi_unsol_event, | 841 | .unsol_event = intel_hdmi_unsol_event, |
842 | }; | 842 | }; |
843 | 843 | ||
844 | static struct intel_hdmi_spec static_specs[] = { | 844 | static int patch_intel_hdmi(struct hda_codec *codec) |
845 | { | ||
846 | .num_cvts = 1, | ||
847 | .num_pins = 1, | ||
848 | .cvt = { 0x2 }, | ||
849 | .pin = { 0x3 }, | ||
850 | .pin_cvt = { 0x2 }, | ||
851 | }, | ||
852 | { | ||
853 | .num_cvts = 2, | ||
854 | .num_pins = 3, | ||
855 | .cvt = { 0x2, 0x3 }, | ||
856 | .pin = { 0x4, 0x5, 0x6 }, | ||
857 | .pin_cvt = { 0x2, 0x2, 0x2 }, | ||
858 | }, | ||
859 | }; | ||
860 | |||
861 | static int do_patch_intel_hdmi(struct hda_codec *codec, int spec_id) | ||
862 | { | 845 | { |
863 | struct intel_hdmi_spec *spec; | 846 | struct intel_hdmi_spec *spec; |
864 | int i; | 847 | int i; |
@@ -873,9 +856,6 @@ static int do_patch_intel_hdmi(struct hda_codec *codec, int spec_id) | |||
873 | kfree(spec); | 856 | kfree(spec); |
874 | return -EINVAL; | 857 | return -EINVAL; |
875 | } | 858 | } |
876 | if (memcmp(spec, static_specs + spec_id, sizeof(*spec))) | ||
877 | snd_printk(KERN_WARNING | ||
878 | "HDMI: auto parse disagree with known config\n"); | ||
879 | codec->patch_ops = intel_hdmi_patch_ops; | 859 | codec->patch_ops = intel_hdmi_patch_ops; |
880 | 860 | ||
881 | for (i = 0; i < spec->num_pins; i++) | 861 | for (i = 0; i < spec->num_pins; i++) |
@@ -886,23 +866,13 @@ static int do_patch_intel_hdmi(struct hda_codec *codec, int spec_id) | |||
886 | return 0; | 866 | return 0; |
887 | } | 867 | } |
888 | 868 | ||
889 | static int patch_intel_hdmi(struct hda_codec *codec) | ||
890 | { | ||
891 | return do_patch_intel_hdmi(codec, 0); | ||
892 | } | ||
893 | |||
894 | static int patch_intel_hdmi_ibexpeak(struct hda_codec *codec) | ||
895 | { | ||
896 | return do_patch_intel_hdmi(codec, 1); | ||
897 | } | ||
898 | |||
899 | static struct hda_codec_preset snd_hda_preset_intelhdmi[] = { | 869 | static struct hda_codec_preset snd_hda_preset_intelhdmi[] = { |
900 | { .id = 0x808629fb, .name = "G45 DEVCL", .patch = patch_intel_hdmi }, | 870 | { .id = 0x808629fb, .name = "G45 DEVCL", .patch = patch_intel_hdmi }, |
901 | { .id = 0x80862801, .name = "G45 DEVBLC", .patch = patch_intel_hdmi }, | 871 | { .id = 0x80862801, .name = "G45 DEVBLC", .patch = patch_intel_hdmi }, |
902 | { .id = 0x80862802, .name = "G45 DEVCTG", .patch = patch_intel_hdmi }, | 872 | { .id = 0x80862802, .name = "G45 DEVCTG", .patch = patch_intel_hdmi }, |
903 | { .id = 0x80862803, .name = "G45 DEVELK", .patch = patch_intel_hdmi }, | 873 | { .id = 0x80862803, .name = "G45 DEVELK", .patch = patch_intel_hdmi }, |
904 | { .id = 0x80862804, .name = "G45 DEVIBX", .patch = patch_intel_hdmi_ibexpeak }, | 874 | { .id = 0x80862804, .name = "G45 DEVIBX", .patch = patch_intel_hdmi }, |
905 | { .id = 0x80860054, .name = "Q57 DEVIBX", .patch = patch_intel_hdmi_ibexpeak }, | 875 | { .id = 0x80860054, .name = "Q57 DEVIBX", .patch = patch_intel_hdmi }, |
906 | { .id = 0x10951392, .name = "SiI1392 HDMI", .patch = patch_intel_hdmi }, | 876 | { .id = 0x10951392, .name = "SiI1392 HDMI", .patch = patch_intel_hdmi }, |
907 | {} /* terminator */ | 877 | {} /* terminator */ |
908 | }; | 878 | }; |