Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: lydiawang <lydiawang@viatech.com.cn>
To: alsa-devel@alsa-project.org
Cc: tiwai@suse.de, lydiawang@viatech.com.cn
Subject: [PATCH 2/2]: ALSA: VIA HDA: Add support for codec VT1808
Date: Mon, 10 Dec 2012 16:23:46 +0800	[thread overview]
Message-ID: <50C59C12.8020400@viatech.com.cn> (raw)

From: Lydia Wang <lydiawang@viatech.com.cn>
Subject: ALSA: VIA HDA: 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>
Index: sound/sound/pci/hda/patch_via.c
===================================================================
--- sound.orig/sound/pci/hda/patch_via.c	2012-12-10 15:09:52.000000000 +0800
+++ sound/sound/pci/hda/patch_via.c	2012-12-10 15:12:50.000000000 +0800
@@ -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 */
  };
  

                 reply	other threads:[~2012-12-10  8:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C59C12.8020400@viatech.com.cn \
    --to=lydiawang@viatech.com.cn \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox