Re: [PATCH] Clevo M540JE, M550JE laptops (Nvidia MCP51 chipset, ALC883 codec)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



В Пнд, 06/11/2006 в 12:09 +0100, Takashi Iwai пишет:
> At Fri, 03 Nov 2006 16:47:56 +0300,
> Andrew L. Neporada wrote:
> > 
> > Hi!
> > 
> > We need to enable External Amplifier on this laptops. This patch basicly
> > adds laptop-eapd model to ALC883 codec.
> 
> Thanks for the patch.
> Unfortunately it isn't applicable to HG repo since more other changes
> have been done to ALC883 code.  Could you try HG version with the
> patch below I fixed?
> 
> Also, please give a sign-off to commit the patch.
> 
> 

Sorry, but your patch does not work because of change in
alc882_eapd_verbs[] in changeset 20ccacc019b7
(http://hg-mirror.alsa-project.org/alsa-kernel?cs=20ccacc019b7)

I believe this change is wrong because ALC882_ARIMA also depends on
alc882_eapd_verbs[]. Please consider commiting updated patch.

Signed-off-by: Andrew L. Neporada <nepal@xxxxxxxxxxx>


--- Documentation/ALSA-Configuration.txt.orig	2006-10-23 17:00:06.000000000 +0400
+++ Documentation/ALSA-Configuration.txt	2006-11-07 11:28:36.000000000 +0300
@@ -827,6 +827,7 @@ Prior to version 0.9.0rc4 options had a 
 	  medion	Medion Laptops
 	  targa-dig	Targa/MSI
 	  targa-2ch-dig	Targs/MSI with 2-channel
+	  laptop-eapd   3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
 	  auto		auto-config reading BIOS (default)
 
 	ALC861/660
--- pci/hda/patch_realtek.c.orig	2006-11-06 17:00:04.000000000 +0300
+++ pci/hda/patch_realtek.c	2006-11-07 11:33:26.000000000 +0300
@@ -125,6 +125,7 @@ enum {
 	ALC888_DEMO_BOARD,
 	ALC883_ACER,
 	ALC883_MEDION,
+	ALC883_LAPTOP_EAPD,
 	ALC883_AUTO,
 	ALC883_MODEL_LAST,
 };
@@ -4540,7 +4541,7 @@ static struct hda_verb alc882_init_verbs
 static struct hda_verb alc882_eapd_verbs[] = {
 	/* change to EAPD mode */
 	{0x20, AC_VERB_SET_COEF_INDEX, 0x07},
-	{0x20, AC_VERB_SET_PROC_COEF, 0x3070},
+	{0x20, AC_VERB_SET_PROC_COEF, 0x3060},
 	{ } 
 };
 
@@ -4998,6 +4999,13 @@ static struct hda_channel_mode alc883_si
 	{ 8, alc883_sixstack_ch8_init },
 };
 
+static struct hda_verb alc883_medion_eapd_verbs[] = {
+        /* eanable EAPD on medion laptop */
+	{0x20, AC_VERB_SET_COEF_INDEX, 0x07},
+	{0x20, AC_VERB_SET_PROC_COEF, 0x3070},
+	{ }
+};
+
 /* Pin assignment: Front=0x14, Rear=0x15, CLFE=0x16, Side=0x17
  *                 Mic=0x18, Front Mic=0x19, Line-In=0x1a, HP=0x1b
  */
@@ -5469,6 +5477,9 @@ static struct hda_board_config alc883_cf
 	  .config = ALC883_ACER },
 	{ .pci_subvendor = 0x161f, .pci_subdevice = 0x2054,
 	  .modelname = "medion", .config = ALC883_MEDION },
+	{ .modelname = "laptop-eapd", .config = ALC883_LAPTOP_EAPD },
+	{ .pci_subvendor = 0x1558, .pci_subdevice = 0,
+	  .config = ALC883_LAPTOP_EAPD }, /* Clevo */
 	{ .modelname = "auto", .config = ALC883_AUTO },
 	{}
 };
@@ -5589,7 +5600,7 @@ static struct alc_config_preset alc883_p
 		.mixers = { alc883_fivestack_mixer,
 			    alc883_chmode_mixer },
 		.init_verbs = { alc883_init_verbs,
-				alc882_eapd_verbs },
+				alc883_medion_eapd_verbs },
 		.num_dacs = ARRAY_SIZE(alc883_dac_nids),
 		.dac_nids = alc883_dac_nids,
 		.num_adc_nids = ARRAY_SIZE(alc883_adc_nids),
@@ -5597,8 +5608,19 @@ static struct alc_config_preset alc883_p
 		.num_channel_mode = ARRAY_SIZE(alc883_sixstack_modes),
 		.channel_mode = alc883_sixstack_modes,
 		.input_mux = &alc883_capture_source,
-	}
-
+	},
+	[ALC883_LAPTOP_EAPD] = {
+		.mixers = { alc883_base_mixer,
+			    alc883_chmode_mixer },
+		.init_verbs = { alc883_init_verbs, alc882_eapd_verbs },
+		.num_dacs = ARRAY_SIZE(alc883_dac_nids),
+		.dac_nids = alc883_dac_nids,
+		.num_adc_nids = ARRAY_SIZE(alc883_adc_nids),
+		.adc_nids = alc883_adc_nids,
+		.num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes),
+		.channel_mode = alc883_3ST_2ch_modes,
+		.input_mux = &alc883_capture_source,
+	},
 };
 
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux