Skip to contentSkip to conversation

Fix for recording issue of ASUS N82JV

PATCH Applied Chih-Wei Huang 2 participants 5 messages Mar 1, 2011 – Mar 11, 2011 1 message not in the archive Sound

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,
This small patch fixes the unable to record issue
on ASUS N82JV. Thanks.

Tested OK on android-x86 2.2 & 2.3 with kernel 2.6.38-rc4.

Regards,

From 1a61b830b898b4bd281f92eab25d6fc869be701d Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Fri, 25 Feb 2011 11:14:31 +0800
Subject: [PATCH] ALSA: hda - Fix unable to record issue on ASUS N82JV

The codec of N82JV is ALC269VB.

---
 sound/pci/hda/patch_realtek.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/hda/patch_realtek.c +1 -1
index 3328a25..0b0800f 100644
@@ -15015,7 +15015,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x11e3, "ASUS U33Jc", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1273, "ASUS UL80Jt", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1283, "ASUS U53Jc", ALC269_AMIC),
-	SND_PCI_QUIRK(0x1043, 0x12b3, "ASUS N82Jv", ALC269_AMIC),
+	SND_PCI_QUIRK(0x1043, 0x12b3, "ASUS N82JV", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x12d3, "ASUS N61Jv", ALC269_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x13a3, "ASUS UL30Vt", ALC269_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1373, "ASUS G73JX", ALC269_AMIC),
Signature · 1 line
1.7.3.2

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Applied
#2 lore raw

At Tue, 01 Mar 2011 15:35:07 +0800,

Quoted 6 lines · Chih-Wei Huang

Hi,
This small patch fixes the unable to record issue
on ASUS N82JV. Thanks.

Tested OK on android-x86 2.2 & 2.3 with kernel 2.6.38-rc4.

Thanks, applied now.

Takashi

Quoted 32 lines

Regards,

[2 0001-ALSA-hda-Fix-unable-to-record-issue-on-ASUS-N82JV.patch <text/plain (base64)>] From 1a61b830b898b4bd281f92eab25d6fc869be701d Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Fri, 25 Feb 2011 11:14:31 +0800
Subject: [PATCH] ALSA: hda - Fix unable to record issue on ASUS N82JV

The codec of N82JV is ALC269VB.

---
 sound/pci/hda/patch_realtek.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/hda/patch_realtek.c +1 -1
index 3328a25..0b0800f 100644
@@ -15015,7 +15015,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x11e3, "ASUS U33Jc", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1273, "ASUS UL80Jt", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1283, "ASUS U53Jc", ALC269_AMIC),
-	SND_PCI_QUIRK(0x1043, 0x12b3, "ASUS N82Jv", ALC269_AMIC),
+	SND_PCI_QUIRK(0x1043, 0x12b3, "ASUS N82JV", ALC269VB_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x12d3, "ASUS N61Jv", ALC269_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x13a3, "ASUS UL30Vt", ALC269_AMIC),
 	SND_PCI_QUIRK(0x1043, 0x1373, "ASUS G73JX", ALC269_AMIC),
Signature · 1 line
1.7.3.2
#3 lore raw

Hi Takashi,
Thank you for the help.

Here are more patches for realtek codec
to support old Eee PC models 900 and 1004.

Regards,
--
Chih-Wei
Android-x86 project
http://www.android-x86.org

於 西元2011年03月01日 16:02, Takashi Iwai 提到:

Quoted 9 lines

At Tue, 01 Mar 2011 15:35:07 +0800,

Quoted 5 lines · Chih-Wei Huang

Hi,
This small patch fixes the unable to record issue
on ASUS N82JV. Thanks.

Tested OK on android-x86 2.2 & 2.3 with kernel 2.6.38-rc4.

Thanks, applied now.

From 623317a411116fbe24845f809a14fbab46c4b367 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Thu, 16 Jul 2009 10:05:22 +0800
Subject: [PATCH 1/2] ALSA: HDA: audio support for Eee PC 900

---
 sound/pci/hda/patch_realtek.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
sound/pci/hda/patch_realtek.c +17 -0
index 3328a25..2dd52c6 100644
@@ -180,6 +180,7 @@ enum {
 	ALC662_5ST_DIG,
 	ALC662_LENOVO_101E,
 	ALC662_ASUS_EEEPC_P701,
+	ALC662_ASUS_EEEPC_P900,
 	ALC662_ASUS_EEEPC_EP20,
 	ALC663_ASUS_M51VA,
 	ALC663_ASUS_G71V,
@@ -18727,6 +18728,7 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = {
 	[ALC662_5ST_DIG]	= "6stack-dig",
 	[ALC662_LENOVO_101E]	= "lenovo-101e",
 	[ALC662_ASUS_EEEPC_P701] = "eeepc-p701",
+	[ALC662_ASUS_EEEPC_P900] = "eeepc-p900",
 	[ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20",
 	[ALC662_ECS] = "ecs",
 	[ALC663_ASUS_M51VA] = "m51va",
@@ -18809,6 +18811,7 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4),
 	SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG),
 	SND_PCI_QUIRK(0x1043, 0x82a1, "ASUS Eeepc", ALC662_ASUS_EEEPC_P701),
+	SND_PCI_QUIRK(0x1043, 0x8337, "ASUS Eeepc P900", ALC662_ASUS_EEEPC_P900),
 	SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20),
 	SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_ECS),
 	SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K",
@@ -18897,6 +18900,20 @@ static struct alc_config_preset alc662_presets[] = {
 		.setup = alc662_eeepc_setup,
 		.init_hook = alc662_eeepc_inithook,
 	},
+	[ALC662_ASUS_EEEPC_P900] = {
+		.mixers = { alc662_eeepc_p701_mixer },
+		.init_verbs = { alc662_init_verbs,
+				alc662_eeepc_sue_init_verbs },
+		.num_dacs = ARRAY_SIZE(alc662_dac_nids),
+		.dac_nids = alc662_dac_nids,
+		.num_adc_nids = ARRAY_SIZE(alc861vd_adc_nids),
+		.adc_nids = alc662_adc_nids,
+		.num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes),
+		.channel_mode = alc662_3ST_2ch_modes,
+		.unsol_event = alc662_eeepc_unsol_event,
+		.setup = alc662_eeepc_setup,
+		.init_hook = alc662_eeepc_inithook,
+	},
 	[ALC662_ASUS_EEEPC_EP20] = {
 		.mixers = { alc662_eeepc_ep20_mixer,
 			    alc662_chmode_mixer },
Signature · 1 line
1.7.4

From a1c7cb77e8edb0f6c879544fdf45458416781f81 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Thu, 16 Jul 2009 14:43:09 +0800
Subject: [PATCH 2/2] ALSA: HDA: audio support for Eee PC 1004

---
 sound/pci/hda/patch_realtek.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/hda/patch_realtek.c +1 -0
index 2dd52c6..e1fe0d1 100644
@@ -15047,6 +15047,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 		      ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x834a, "ASUS Eeepc S101",
 		      ALC269_DMIC),
+	SND_PCI_QUIRK(0x1043, 0x83a5, "ASUS Eeepc P1004", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_AUTO),
Signature · 1 line
1.7.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

At Fri, 11 Mar 2011 09:34:22 +0800,

Quoted 6 lines · Chih-Wei Huang

Hi Takashi,
Thank you for the help.

Here are more patches for realtek codec
to support old Eee PC models 900 and 1004.

Doesn't eee900 work with auto-parser with some pin fix-ups? Basically I don't want to add a new model quirks unless really needed. Nowadays the auto-parser works in most cases with fixes of pin-widgets.

Do you have alsa-info.sh outputs available on these machines?

The addition for eee1004 looks OK. I'll apply it.

thanks,

Takashi

Quoted 104 lines

Regards,
--
Chih-Wei
Android-x86 project
http://www.android-x86.org

於 西元2011年03月01日 16:02, Takashi Iwai 提到:

Quoted 9 lines

At Tue, 01 Mar 2011 15:35:07 +0800,

Quoted 5 lines · Chih-Wei Huang

Hi,
This small patch fixes the unable to record issue
on ASUS N82JV. Thanks.

Tested OK on android-x86 2.2 & 2.3 with kernel 2.6.38-rc4.

Thanks, applied now.

[2 0001-ALSA-add-audio-support-for-Eee-PC-900.patch <text/plain (base64)>] From 623317a411116fbe24845f809a14fbab46c4b367 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Thu, 16 Jul 2009 10:05:22 +0800
Subject: [PATCH 1/2] ALSA: HDA: audio support for Eee PC 900

---
 sound/pci/hda/patch_realtek.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
sound/pci/hda/patch_realtek.c +17 -0
index 3328a25..2dd52c6 100644
@@ -180,6 +180,7 @@ enum {
 	ALC662_5ST_DIG,
 	ALC662_LENOVO_101E,
 	ALC662_ASUS_EEEPC_P701,
+	ALC662_ASUS_EEEPC_P900,
 	ALC662_ASUS_EEEPC_EP20,
 	ALC663_ASUS_M51VA,
 	ALC663_ASUS_G71V,
@@ -18727,6 +18728,7 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = {
 	[ALC662_5ST_DIG]	= "6stack-dig",
 	[ALC662_LENOVO_101E]	= "lenovo-101e",
 	[ALC662_ASUS_EEEPC_P701] = "eeepc-p701",
+	[ALC662_ASUS_EEEPC_P900] = "eeepc-p900",
 	[ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20",
 	[ALC662_ECS] = "ecs",
 	[ALC663_ASUS_M51VA] = "m51va",
@@ -18809,6 +18811,7 @@ static struct snd_pci_quirk alc662_cfg_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4),
 	SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG),
 	SND_PCI_QUIRK(0x1043, 0x82a1, "ASUS Eeepc", ALC662_ASUS_EEEPC_P701),
+	SND_PCI_QUIRK(0x1043, 0x8337, "ASUS Eeepc P900", ALC662_ASUS_EEEPC_P900),
 	SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20),
 	SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_ECS),
 	SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K",
@@ -18897,6 +18900,20 @@ static struct alc_config_preset alc662_presets[] = {
 		.setup = alc662_eeepc_setup,
 		.init_hook = alc662_eeepc_inithook,
 	},
+	[ALC662_ASUS_EEEPC_P900] = {
+		.mixers = { alc662_eeepc_p701_mixer },
+		.init_verbs = { alc662_init_verbs,
+				alc662_eeepc_sue_init_verbs },
+		.num_dacs = ARRAY_SIZE(alc662_dac_nids),
+		.dac_nids = alc662_dac_nids,
+		.num_adc_nids = ARRAY_SIZE(alc861vd_adc_nids),
+		.adc_nids = alc662_adc_nids,
+		.num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes),
+		.channel_mode = alc662_3ST_2ch_modes,
+		.unsol_event = alc662_eeepc_unsol_event,
+		.setup = alc662_eeepc_setup,
+		.init_hook = alc662_eeepc_inithook,
+	},
 	[ALC662_ASUS_EEEPC_EP20] = {
 		.mixers = { alc662_eeepc_ep20_mixer,
 			    alc662_chmode_mixer },
Signature · 11 lines
1.7.4

[3 0002-ALSA-add-audio-support-for-Eee-PC-1004.patch <text/plain (base64)>]
From a1c7cb77e8edb0f6c879544fdf45458416781f81 Mon Sep 17 00:00:00 2001
From: Chih-Wei Huang <[email protected]>
Date: Thu, 16 Jul 2009 14:43:09 +0800
Subject: [PATCH 2/2] ALSA: HDA: audio support for Eee PC 1004

---
 sound/pci/hda/patch_realtek.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/pci/hda/patch_realtek.c +1 -0
index 2dd52c6..e1fe0d1 100644
@@ -15047,6 +15047,7 @@ static struct snd_pci_quirk alc269_cfg_tbl[] = {
 		      ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x834a, "ASUS Eeepc S101",
 		      ALC269_DMIC),
+	SND_PCI_QUIRK(0x1043, 0x83a5, "ASUS Eeepc P1004", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x8398, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x1043, 0x83ce, "ASUS P1005HA", ALC269_DMIC),
 	SND_PCI_QUIRK(0x104d, 0x9071, "Sony VAIO", ALC269_AUTO),
Signature · 1 line
1.7.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#5 lore raw

Well, the patch for 900 is an old one.
I thought without it the audio won't work on 900.
Anyway, I'll verify your suggestion without it.
Thanks!

Regards,

於 西元2011年03月11日 14:55, Takashi Iwai 提到:

Quoted 8 lines

Doesn't eee900 work with auto-parser with some pin fix-ups? Basically I don't want to add a new model quirks unless really needed. Nowadays the auto-parser works in most cases with fixes of pin-widgets.

Do you have alsa-info.sh outputs available on these machines?

The addition for eee1004 looks OK. I'll apply it.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel