changelog shortlog tags manifest raw

changeset: hda-codec - Fix Oops with AD1984 thinkpad model

changeset 5092: 958b39f3e8dd
parent 5091:eb7241f88cdd
child 5093:140bce9f382e
author: tiwai
date: Mon Jun 04 18:32:23 2007 +0200 (4 years ago)
files: pci/hda/patch_analog.c
description: hda-codec - Fix Oops with AD1984 thinkpad model

Fixed Oops with AD1984 thinkpad model. Also fixed the wrong
init verbs for NID 0x03 and 0x04, which have apparently no mute
bit.
--- a/pci/hda/patch_analog.c	Mon Jun 04 09:21:19 2007 +0200
+++ b/pci/hda/patch_analog.c	Mon Jun 04 18:32:23 2007 +0200
@@ -2883,8 +2883,8 @@ static struct snd_kcontrol_new ad1984_dm
  */
 static struct hda_verb ad1884_init_verbs[] = {
 	/* DACs; mute as default */
-	{0x03, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},
-	{0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},
+	{0x03, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO},
+	{0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO},
 	/* Port-A (HP) mixer */
 	{0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
 	{0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
@@ -2960,7 +2960,7 @@ static int patch_ad1884(struct hda_codec
  * Lenovo Thinkpad T61/X61
  */
 static struct hda_input_mux ad1984_thinkpad_capture_source = {
-	.num_items = 4,
+	.num_items = 3,
 	.items = {
 		{ "Mic", 0x0 },
 		{ "Internal Mic", 0x1 },