diff options
Diffstat (limited to 'sound/pci/hda/patch_nvhdmi.c')
-rw-r--r-- | sound/pci/hda/patch_nvhdmi.c | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/patch_nvhdmi.c index 2eed2c8b98da..0270fda0bda5 100644 --- a/sound/pci/hda/patch_nvhdmi.c +++ b/sound/pci/hda/patch_nvhdmi.c | |||
@@ -158,8 +158,34 @@ static int patch_nvhdmi(struct hda_codec *codec) | |||
158 | /* | 158 | /* |
159 | * patch entries | 159 | * patch entries |
160 | */ | 160 | */ |
161 | struct hda_codec_preset snd_hda_preset_nvhdmi[] = { | 161 | static struct hda_codec_preset snd_hda_preset_nvhdmi[] = { |
162 | { .id = 0x10de0002, .name = "NVIDIA MCP78 HDMI", .patch = patch_nvhdmi }, | 162 | { .id = 0x10de0002, .name = "MCP78 HDMI", .patch = patch_nvhdmi }, |
163 | { .id = 0x10de0007, .name = "NVIDIA MCP7A HDMI", .patch = patch_nvhdmi }, | 163 | { .id = 0x10de0007, .name = "MCP7A HDMI", .patch = patch_nvhdmi }, |
164 | { .id = 0x10de0067, .name = "MCP67 HDMI", .patch = patch_nvhdmi }, | ||
164 | {} /* terminator */ | 165 | {} /* terminator */ |
165 | }; | 166 | }; |
167 | |||
168 | MODULE_ALIAS("snd-hda-codec-id:10de0002"); | ||
169 | MODULE_ALIAS("snd-hda-codec-id:10de0007"); | ||
170 | MODULE_ALIAS("snd-hda-codec-id:10de0067"); | ||
171 | |||
172 | MODULE_LICENSE("GPL"); | ||
173 | MODULE_DESCRIPTION("Nvidia HDMI HD-audio codec"); | ||
174 | |||
175 | static struct hda_codec_preset_list nvhdmi_list = { | ||
176 | .preset = snd_hda_preset_nvhdmi, | ||
177 | .owner = THIS_MODULE, | ||
178 | }; | ||
179 | |||
180 | static int __init patch_nvhdmi_init(void) | ||
181 | { | ||
182 | return snd_hda_add_codec_preset(&nvhdmi_list); | ||
183 | } | ||
184 | |||
185 | static void __exit patch_nvhdmi_exit(void) | ||
186 | { | ||
187 | snd_hda_delete_codec_preset(&nvhdmi_list); | ||
188 | } | ||
189 | |||
190 | module_init(patch_nvhdmi_init) | ||
191 | module_exit(patch_nvhdmi_exit) | ||