diff options
author | Kailang Yang <kailang@realtek.com> | 2013-10-24 05:35:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-10-24 05:35:18 -0400 |
commit | 1d04c9de5c76df113e4af7120feb53c628b5efcc (patch) | |
tree | b03fd92b508791f25b561e84f1117a404987104c /sound | |
parent | b7baa9a0e324e32433d894374c3bddea29961aa0 (diff) |
ALSA: hda - Add support of ALC255 codecs
It's just another variant of ALC269 & co.
Signed-off-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 52c26d3a61d4..1c4f8c545fe7 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -2540,6 +2540,7 @@ enum { | |||
2540 | ALC269_TYPE_ALC283, | 2540 | ALC269_TYPE_ALC283, |
2541 | ALC269_TYPE_ALC284, | 2541 | ALC269_TYPE_ALC284, |
2542 | ALC269_TYPE_ALC286, | 2542 | ALC269_TYPE_ALC286, |
2543 | ALC269_TYPE_ALC255, | ||
2543 | }; | 2544 | }; |
2544 | 2545 | ||
2545 | /* | 2546 | /* |
@@ -2565,6 +2566,7 @@ static int alc269_parse_auto_config(struct hda_codec *codec) | |||
2565 | case ALC269_TYPE_ALC282: | 2566 | case ALC269_TYPE_ALC282: |
2566 | case ALC269_TYPE_ALC283: | 2567 | case ALC269_TYPE_ALC283: |
2567 | case ALC269_TYPE_ALC286: | 2568 | case ALC269_TYPE_ALC286: |
2569 | case ALC269_TYPE_ALC255: | ||
2568 | ssids = alc269_ssids; | 2570 | ssids = alc269_ssids; |
2569 | break; | 2571 | break; |
2570 | default: | 2572 | default: |
@@ -4102,6 +4104,9 @@ static int patch_alc269(struct hda_codec *codec) | |||
4102 | case 0x10ec0286: | 4104 | case 0x10ec0286: |
4103 | spec->codec_variant = ALC269_TYPE_ALC286; | 4105 | spec->codec_variant = ALC269_TYPE_ALC286; |
4104 | break; | 4106 | break; |
4107 | case 0x10ec0255: | ||
4108 | spec->codec_variant = ALC269_TYPE_ALC255; | ||
4109 | break; | ||
4105 | } | 4110 | } |
4106 | 4111 | ||
4107 | if (snd_hda_codec_read(codec, 0x51, 0, AC_VERB_PARAMETERS, 0) == 0x10ec5505) { | 4112 | if (snd_hda_codec_read(codec, 0x51, 0, AC_VERB_PARAMETERS, 0) == 0x10ec5505) { |
@@ -4814,6 +4819,7 @@ static int patch_alc680(struct hda_codec *codec) | |||
4814 | static const struct hda_codec_preset snd_hda_preset_realtek[] = { | 4819 | static const struct hda_codec_preset snd_hda_preset_realtek[] = { |
4815 | { .id = 0x10ec0221, .name = "ALC221", .patch = patch_alc269 }, | 4820 | { .id = 0x10ec0221, .name = "ALC221", .patch = patch_alc269 }, |
4816 | { .id = 0x10ec0233, .name = "ALC233", .patch = patch_alc269 }, | 4821 | { .id = 0x10ec0233, .name = "ALC233", .patch = patch_alc269 }, |
4822 | { .id = 0x10ec0255, .name = "ALC255", .patch = patch_alc269 }, | ||
4817 | { .id = 0x10ec0260, .name = "ALC260", .patch = patch_alc260 }, | 4823 | { .id = 0x10ec0260, .name = "ALC260", .patch = patch_alc260 }, |
4818 | { .id = 0x10ec0262, .name = "ALC262", .patch = patch_alc262 }, | 4824 | { .id = 0x10ec0262, .name = "ALC262", .patch = patch_alc262 }, |
4819 | { .id = 0x10ec0267, .name = "ALC267", .patch = patch_alc268 }, | 4825 | { .id = 0x10ec0267, .name = "ALC267", .patch = patch_alc268 }, |