diff options
Diffstat (limited to 'sound/pci/hda/patch_via.c')
-rw-r--r-- | sound/pci/hda/patch_via.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 05182be1c9f0..6e4d01d1d502 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #include <sound/asoundef.h> | 47 | #include <sound/asoundef.h> |
48 | #include "hda_codec.h" | 48 | #include "hda_codec.h" |
49 | #include "hda_local.h" | 49 | #include "hda_local.h" |
50 | #include "hda_patch.h" | ||
51 | 50 | ||
52 | /* amp values */ | 51 | /* amp values */ |
53 | #define AMP_VAL_IDX_SHIFT 19 | 52 | #define AMP_VAL_IDX_SHIFT 19 |
@@ -3249,7 +3248,7 @@ static int patch_vt1702(struct hda_codec *codec) | |||
3249 | /* | 3248 | /* |
3250 | * patch entries | 3249 | * patch entries |
3251 | */ | 3250 | */ |
3252 | struct hda_codec_preset snd_hda_preset_via[] = { | 3251 | static struct hda_codec_preset snd_hda_preset_via[] = { |
3253 | { .id = 0x11061708, .name = "VIA VT1708", .patch = patch_vt1708}, | 3252 | { .id = 0x11061708, .name = "VIA VT1708", .patch = patch_vt1708}, |
3254 | { .id = 0x11061709, .name = "VIA VT1708", .patch = patch_vt1708}, | 3253 | { .id = 0x11061709, .name = "VIA VT1708", .patch = patch_vt1708}, |
3255 | { .id = 0x1106170A, .name = "VIA VT1708", .patch = patch_vt1708}, | 3254 | { .id = 0x1106170A, .name = "VIA VT1708", .patch = patch_vt1708}, |
@@ -3320,3 +3319,26 @@ struct hda_codec_preset snd_hda_preset_via[] = { | |||
3320 | .patch = patch_vt1702}, | 3319 | .patch = patch_vt1702}, |
3321 | {} /* terminator */ | 3320 | {} /* terminator */ |
3322 | }; | 3321 | }; |
3322 | |||
3323 | MODULE_ALIAS("snd-hda-codec-id:1106*"); | ||
3324 | |||
3325 | static struct hda_codec_preset_list via_list = { | ||
3326 | .preset = snd_hda_preset_via, | ||
3327 | .owner = THIS_MODULE, | ||
3328 | }; | ||
3329 | |||
3330 | MODULE_LICENSE("GPL"); | ||
3331 | MODULE_DESCRIPTION("VIA HD-audio codec"); | ||
3332 | |||
3333 | static int __init patch_via_init(void) | ||
3334 | { | ||
3335 | return snd_hda_add_codec_preset(&via_list); | ||
3336 | } | ||
3337 | |||
3338 | static void __exit patch_via_exit(void) | ||
3339 | { | ||
3340 | snd_hda_delete_codec_preset(&via_list); | ||
3341 | } | ||
3342 | |||
3343 | module_init(patch_via_init) | ||
3344 | module_exit(patch_via_exit) | ||