Skip to contentSkip to conversation

Clevo M540JE, M550JE laptops (Nvidia MCP51 chipset, ALC883 codec)

PATCH In review Andrew L. Neporada 2 participants 4 messages Nov 3, 2006 – Nov 7, 2006 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clevo M540JE, M550JE laptops (Nvidia MCP51 chipset, ALC883 codec)

Hi!

We need to enable External Amplifier on this laptops. This patch basicly adds laptop-eapd model to ALC883 codec.

alsa-kernel/Documentation/ALSA-Configuration.txt renamed from alsa-kernel/Documentation/ALSA-Configuration.txt.orig +1 -0
@@ -822,6 +822,7 @@ Prior to version 0.9.0rc4 options had a 
 	  3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
 	  6stack-dig-demo  6-jack digital for Intel demo board
 	  acer		Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
+	  laptop-eapd   3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
 	  auto		auto-config reading BIOS (default)
 
 	ALC861/660
alsa-kernel/pci/hda/patch_realtek.c renamed from alsa-kernel/pci/hda/patch_realtek.c.orig +16 -0
@@ -112,6 +112,7 @@ enum {
 	ALC883_6ST_DIG,
 	ALC888_DEMO_BOARD,
 	ALC883_ACER,
+	ALC883_LAPTOP_EAPD,
 	ALC883_AUTO,
 	ALC883_MODEL_LAST,
 };
@@ -5080,6 +5081,9 @@ static struct hda_board_config alc883_cf
 	  .config = ALC883_ACER },
 	{ .pci_subvendor = 0x1025, .pci_subdevice = 0x009f,
 	  .config = ALC883_ACER },
+	{ .modelname = "laptop-eapd", .config = ALC883_LAPTOP_EAPD },
+	{ .pci_subvendor = 0x1558, .pci_subdevice = 0,
+	  .config = ALC883_LAPTOP_EAPD }, /* Clevo */
 	{ .modelname = "auto", .config = ALC883_AUTO },
 	{}
 };
@@ -5167,6 +5171,18 @@ static struct alc_config_preset alc883_p
 		.channel_mode = alc883_3ST_2ch_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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

At Fri, 03 Nov 2006 16:47:56 +0300,

Quoted 5 lines · Andrew L. Neporada

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.

Takashi

Documentation/ALSA-Configuration.txt +1 -0
diff -r 8c37ecaca886 Documentation/ALSA-Configuration.txt
@@ -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 +17 -2
diff -r 8c37ecaca886 pci/hda/patch_realtek.c
@@ -125,6 +125,7 @@ enum {
 	ALC888_DEMO_BOARD,
 	ALC883_ACER,
 	ALC883_MEDION,
+	ALC883_LAPTOP_EAPD,
 	ALC883_AUTO,
 	ALC883_MODEL_LAST,
 };
@@ -5469,6 +5470,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 },
 	{}
 };
@@ -5597,8 +5601,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

#2 lore raw

В Пнд, 06/11/2006 в 12:09 +0100, Takashi Iwai пишет:

Quoted 8 lines

At Fri, 03 Nov 2006 16:47:56 +0300,

Quoted 5 lines · Andrew L. Neporada

Hi!

We need to enable External Amplifier on this laptops. This patch basicly adds laptop-eapd model to ALC883 codec.

Quoted 8 lines

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.

ALSA-Configuration.txt renamed from ALSA-Configuration.txt.orig +1 -0
@@ -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
hda/patch_realtek.c renamed from hda/patch_realtek.c.orig +26 -4
@@ -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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw

At Tue, 07 Nov 2006 11:52:33 +0300,

Quoted 19 lines · Andrew L. Neporada

В Пнд, 06/11/2006 в 12:09 +0100, Takashi Iwai пишет:

Quoted 8 lines

At Fri, 03 Nov 2006 16:47:56 +0300,

Quoted 5 lines · Andrew L. Neporada

Hi!

We need to enable External Amplifier on this laptops. This patch basicly adds laptop-eapd model to ALC883 codec.

Quoted 8 lines

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.

Quoted 8 lines

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.

A good catch. I committed your new patch to HG tree now. Thanks.

Takashi

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel