Merge branch 'topic/hda-modularize' into topic/hda
This commit is contained in:
@ -30,7 +30,6 @@
|
||||
#include <sound/core.h>
|
||||
#include "hda_codec.h"
|
||||
#include "hda_local.h"
|
||||
#include "hda_patch.h"
|
||||
|
||||
#define ALC880_FRONT_EVENT 0x01
|
||||
#define ALC880_DCVOL_EVENT 0x02
|
||||
@ -16613,7 +16612,7 @@ static int patch_alc662(struct hda_codec *codec)
|
||||
/*
|
||||
* patch entries
|
||||
*/
|
||||
struct hda_codec_preset snd_hda_preset_realtek[] = {
|
||||
static struct hda_codec_preset snd_hda_preset_realtek[] = {
|
||||
{ .id = 0x10ec0260, .name = "ALC260", .patch = patch_alc260 },
|
||||
{ .id = 0x10ec0262, .name = "ALC262", .patch = patch_alc262 },
|
||||
{ .id = 0x10ec0267, .name = "ALC267", .patch = patch_alc268 },
|
||||
@ -16645,3 +16644,26 @@ struct hda_codec_preset snd_hda_preset_realtek[] = {
|
||||
{ .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc883 },
|
||||
{} /* terminator */
|
||||
};
|
||||
|
||||
MODULE_ALIAS("snd-hda-codec-id:10ec*");
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Realtek HD-audio codec");
|
||||
|
||||
static struct hda_codec_preset_list realtek_list = {
|
||||
.preset = snd_hda_preset_realtek,
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int __init patch_realtek_init(void)
|
||||
{
|
||||
return snd_hda_add_codec_preset(&realtek_list);
|
||||
}
|
||||
|
||||
static void __exit patch_realtek_exit(void)
|
||||
{
|
||||
snd_hda_delete_codec_preset(&realtek_list);
|
||||
}
|
||||
|
||||
module_init(patch_realtek_init)
|
||||
module_exit(patch_realtek_exit)
|
||||
|
Reference in New Issue
Block a user