diff options
Diffstat (limited to 'sound/pci/hda/patch_atihdmi.c')
-rw-r--r-- | sound/pci/hda/patch_atihdmi.c | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_atihdmi.c b/sound/pci/hda/patch_atihdmi.c index 5603a1acddb1..5887b827bb32 100644 --- a/sound/pci/hda/patch_atihdmi.c +++ b/sound/pci/hda/patch_atihdmi.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <sound/core.h> | 27 | #include <sound/core.h> |
28 | #include "hda_codec.h" | 28 | #include "hda_codec.h" |
29 | #include "hda_local.h" | 29 | #include "hda_local.h" |
30 | #include "hda_patch.h" | ||
31 | 30 | ||
32 | struct atihdmi_spec { | 31 | struct atihdmi_spec { |
33 | struct hda_multi_out multiout; | 32 | struct hda_multi_out multiout; |
@@ -187,7 +186,7 @@ static int patch_atihdmi(struct hda_codec *codec) | |||
187 | /* | 186 | /* |
188 | * patch entries | 187 | * patch entries |
189 | */ | 188 | */ |
190 | struct hda_codec_preset snd_hda_preset_atihdmi[] = { | 189 | static struct hda_codec_preset snd_hda_preset_atihdmi[] = { |
191 | { .id = 0x1002793c, .name = "ATI RS600 HDMI", .patch = patch_atihdmi }, | 190 | { .id = 0x1002793c, .name = "ATI RS600 HDMI", .patch = patch_atihdmi }, |
192 | { .id = 0x10027919, .name = "ATI RS600 HDMI", .patch = patch_atihdmi }, | 191 | { .id = 0x10027919, .name = "ATI RS600 HDMI", .patch = patch_atihdmi }, |
193 | { .id = 0x1002791a, .name = "ATI RS690/780 HDMI", .patch = patch_atihdmi }, | 192 | { .id = 0x1002791a, .name = "ATI RS690/780 HDMI", .patch = patch_atihdmi }, |
@@ -196,3 +195,31 @@ struct hda_codec_preset snd_hda_preset_atihdmi[] = { | |||
196 | { .id = 0x17e80047, .name = "Chrontel HDMI", .patch = patch_atihdmi }, | 195 | { .id = 0x17e80047, .name = "Chrontel HDMI", .patch = patch_atihdmi }, |
197 | {} /* terminator */ | 196 | {} /* terminator */ |
198 | }; | 197 | }; |
198 | |||
199 | MODULE_ALIAS("snd-hda-codec-id:1002793c"); | ||
200 | MODULE_ALIAS("snd-hda-codec-id:10027919"); | ||
201 | MODULE_ALIAS("snd-hda-codec-id:1002791a"); | ||
202 | MODULE_ALIAS("snd-hda-codec-id:1002aa01"); | ||
203 | MODULE_ALIAS("snd-hda-codec-id:10951390"); | ||
204 | MODULE_ALIAS("snd-hda-codec-id:17e80047"); | ||
205 | |||
206 | MODULE_LICENSE("GPL"); | ||
207 | MODULE_DESCRIPTION("ATI HDMI HD-audio codec"); | ||
208 | |||
209 | static struct hda_codec_preset_list atihdmi_list = { | ||
210 | .preset = snd_hda_preset_atihdmi, | ||
211 | .owner = THIS_MODULE, | ||
212 | }; | ||
213 | |||
214 | static int __init patch_atihdmi_init(void) | ||
215 | { | ||
216 | return snd_hda_add_codec_preset(&atihdmi_list); | ||
217 | } | ||
218 | |||
219 | static void __exit patch_atihdmi_exit(void) | ||
220 | { | ||
221 | snd_hda_delete_codec_preset(&atihdmi_list); | ||
222 | } | ||
223 | |||
224 | module_init(patch_atihdmi_init) | ||
225 | module_exit(patch_atihdmi_exit) | ||