aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 9cd2545d988e..ba640d36d648 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -30,7 +30,6 @@
30#include <sound/core.h> 30#include <sound/core.h>
31#include "hda_codec.h" 31#include "hda_codec.h"
32#include "hda_local.h" 32#include "hda_local.h"
33#include "hda_patch.h"
34 33
35#define ALC880_FRONT_EVENT 0x01 34#define ALC880_FRONT_EVENT 0x01
36#define ALC880_DCVOL_EVENT 0x02 35#define ALC880_DCVOL_EVENT 0x02
@@ -16579,7 +16578,7 @@ static int patch_alc662(struct hda_codec *codec)
16579/* 16578/*
16580 * patch entries 16579 * patch entries
16581 */ 16580 */
16582struct hda_codec_preset snd_hda_preset_realtek[] = { 16581static struct hda_codec_preset snd_hda_preset_realtek[] = {
16583 { .id = 0x10ec0260, .name = "ALC260", .patch = patch_alc260 }, 16582 { .id = 0x10ec0260, .name = "ALC260", .patch = patch_alc260 },
16584 { .id = 0x10ec0262, .name = "ALC262", .patch = patch_alc262 }, 16583 { .id = 0x10ec0262, .name = "ALC262", .patch = patch_alc262 },
16585 { .id = 0x10ec0267, .name = "ALC267", .patch = patch_alc268 }, 16584 { .id = 0x10ec0267, .name = "ALC267", .patch = patch_alc268 },
@@ -16611,3 +16610,26 @@ struct hda_codec_preset snd_hda_preset_realtek[] = {
16611 { .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc883 }, 16610 { .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc883 },
16612 {} /* terminator */ 16611 {} /* terminator */
16613}; 16612};
16613
16614MODULE_ALIAS("snd-hda-codec-id:10ec*");
16615
16616MODULE_LICENSE("GPL");
16617MODULE_DESCRIPTION("Realtek HD-audio codec");
16618
16619static struct hda_codec_preset_list realtek_list = {
16620 .preset = snd_hda_preset_realtek,
16621 .owner = THIS_MODULE,
16622};
16623
16624static int __init patch_realtek_init(void)
16625{
16626 return snd_hda_add_codec_preset(&realtek_list);
16627}
16628
16629static void __exit patch_realtek_exit(void)
16630{
16631 snd_hda_delete_codec_preset(&realtek_list);
16632}
16633
16634module_init(patch_realtek_init)
16635module_exit(patch_realtek_exit)