Skip to contentSkip to conversation

: ALSA: VIA HDA: Add support for codec VT180

PATCH Takashi Iwai 1 participant 1 message Dec 10, 2012 1 message not in the archive

lore
Share & tools
lore

Takashi Iwai

author Applied
#1 lore raw
In reply to a message not in the archive

At Mon, 10 Dec 2012 19:03:26 +0800,

Quoted 7 lines · Lydia

From: Lydia Wang <[email protected]>
Subject: ALSA: VIA HDA: Add support for codec VT1808.

Add support for new codec VT1808, which is similiar with VT1705CF.

Thanks, applied both patches now.

Takashi

Quoted 43 lines

Index: sound/sound/pci/hda/patch_via.c
===================================================================

sound/pci/hda/patch_via.c +8 -0
@@ -77,6 +77,7 @@
 	VT1812,
 	VT1802,
 	VT1705CF,
+	VT1808,
 	CODEC_TYPES,
 };
 
@@ -300,6 +301,8 @@
 		codec_type = VT1802;
 	else if (dev_id == 0x4760)
 		codec_type = VT1705CF;
+	else if (dev_id == 0x4761 || dev_id == 0x4762)
+		codec_type = VT1808;
 	else
 		codec_type = UNKNOWN;
 	return codec_type;
@@ -1112,6 +1115,7 @@
 		parm = enable ? 0x00 : 0xe0; /* 0x00: 4/40x, 0xe0: 1x */
 		break;
 	case VT1705CF:
+	case VT1808:
 		verb = 0xf82;
 		parm = enable ? 0x00 : 0xe0;  /* 0x00: 4/40x, 0xe0: 1x */
 		break;
@@ -4061,6 +4065,10 @@
 		.patch = patch_vt2002P},
 	{ .id = 0x11064760, .name = "VT1705CF",
 		.patch = patch_vt3476},
+	{ .id = 0x11064761, .name = "VT1708SCE",
+		.patch = patch_vt3476},
+	{ .id = 0x11064762, .name = "VT1808",
+		.patch = patch_vt3476},
 	{} /* terminator */
 };