diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2012-12-10 06:03:26 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-12-10 06:05:16 -0500 |
commit | 6121b84af33fcec843a082cb6bc8d39f187faa20 (patch) | |
tree | 59749472aae2cf164ab2af45333c75f6bb3b41c5 /sound | |
parent | 43737e0ae97ea87285686ffd07e30c82d897beb5 (diff) |
ALSA: HDA: VIA: Add support for codec VT1808.
Add support for new codec VT1808, which is similiar with VT1705CF.
Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_via.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index 08ca407fd167..09bb64996d72 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c | |||
@@ -77,6 +77,7 @@ enum VIA_HDA_CODEC { | |||
77 | VT1812, | 77 | VT1812, |
78 | VT1802, | 78 | VT1802, |
79 | VT1705CF, | 79 | VT1705CF, |
80 | VT1808, | ||
80 | CODEC_TYPES, | 81 | CODEC_TYPES, |
81 | }; | 82 | }; |
82 | 83 | ||
@@ -300,6 +301,8 @@ static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) | |||
300 | codec_type = VT1802; | 301 | codec_type = VT1802; |
301 | else if (dev_id == 0x4760) | 302 | else if (dev_id == 0x4760) |
302 | codec_type = VT1705CF; | 303 | codec_type = VT1705CF; |
304 | else if (dev_id == 0x4761 || dev_id == 0x4762) | ||
305 | codec_type = VT1808; | ||
303 | else | 306 | else |
304 | codec_type = UNKNOWN; | 307 | codec_type = UNKNOWN; |
305 | return codec_type; | 308 | return codec_type; |
@@ -1112,6 +1115,7 @@ static void __analog_low_current_mode(struct hda_codec *codec, bool force) | |||
1112 | parm = enable ? 0x00 : 0xe0; /* 0x00: 4/40x, 0xe0: 1x */ | 1115 | parm = enable ? 0x00 : 0xe0; /* 0x00: 4/40x, 0xe0: 1x */ |
1113 | break; | 1116 | break; |
1114 | case VT1705CF: | 1117 | case VT1705CF: |
1118 | case VT1808: | ||
1115 | verb = 0xf82; | 1119 | verb = 0xf82; |
1116 | parm = enable ? 0x00 : 0xe0; /* 0x00: 4/40x, 0xe0: 1x */ | 1120 | parm = enable ? 0x00 : 0xe0; /* 0x00: 4/40x, 0xe0: 1x */ |
1117 | break; | 1121 | break; |
@@ -4061,6 +4065,10 @@ static const struct hda_codec_preset snd_hda_preset_via[] = { | |||
4061 | .patch = patch_vt2002P}, | 4065 | .patch = patch_vt2002P}, |
4062 | { .id = 0x11064760, .name = "VT1705CF", | 4066 | { .id = 0x11064760, .name = "VT1705CF", |
4063 | .patch = patch_vt3476}, | 4067 | .patch = patch_vt3476}, |
4068 | { .id = 0x11064761, .name = "VT1708SCE", | ||
4069 | .patch = patch_vt3476}, | ||
4070 | { .id = 0x11064762, .name = "VT1808", | ||
4071 | .patch = patch_vt3476}, | ||
4064 | {} /* terminator */ | 4072 | {} /* terminator */ |
4065 | }; | 4073 | }; |
4066 | 4074 | ||