Skip to contentSkip to conversation

Patches for alsactl init db

PATCH Applied Dan Chen 3 participants 6 messages Sep 30, 2009 – Oct 2, 2009 Sound

lore
Share & tools
lore

Dan Chen

author
#0 lore raw

Hi,

Attached are two patches against alsa-utils.git HEAD that create an intel8x0 init db file for ICH4. This is necessary from bug reports in Debian and Ubuntu that state that External Amplifier must be muted to have audible (analog) playback by default on the Sony VAIO VGN-T350P.

Thanks,
Dan

From af00b1af285dc6e633c843402f7d32d16ded4cea Mon Sep 17 00:00:00 2001
From: Daniel T Chen <[email protected]>
Date: Wed, 30 Sep 2009 01:27:36 -0400
Subject: [PATCH 1/2] Mute External Amplifier by default for Sony VAIO VGN-T350P

This Sony VAIO model needs External Amplifier unmuted for audible playback, so let's set it as such in the alsactl init db.

---
 alsactl/init/intel8x0 |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 alsactl/init/intel8x0
alsactl/init/intel8x0 new file +12 -0
new file mode 100644
index 0000000..d9c123b
@@ -0,0 +1,12 @@
+# Configuration for Intel8x0 driver
+
+CARDINFO{mixername}=="Analog Devices AD1981B", \
+  ATTR{subsystem_vendor}=="0x104d", ATTR{subsystem_device}=="0x81c0", \
+  GOTO="Sony VAIO VGN-T350P"
+RESULT="false", EXIT="return"
+
+LABEL="Sony VAIO VGN-T350P"
+# playback
+CTL{reset}="mixer"
+CTL{name}="External Amplifier", CTL{value}="off"
+RESULT="true", EXIT="return"
Signature · 1 line
1.6.3.3

From 0a16fa725f5fdf0ff365a32d561564eff48385cb Mon Sep 17 00:00:00 2001
From: Daniel T Chen <[email protected]>
Date: Wed, 30 Sep 2009 01:35:08 -0400
Subject: [PATCH 2/2] Add an intel8x0 ICH4 configuration file and use it

To use the workaround mixer setting for the Sony VAIO VGN-T350P referenced in the previous commit, we need to add the appropriate inclusion to 00main, which is done by this patch.

---
 alsactl/init/00main |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
alsactl/init/00main +1 -0
index 2d26bbf..054c118 100644
@@ -32,6 +32,7 @@ RESULT=="skip", GOTO="init_end"
 # real ALSA configuration database
 CARDINFO{driver}=="HDA-Intel", INCLUDE="hda", GOTO="init_end"
 CARDINFO{driver}=="CA0106", INCLUDE="ca0106", GOTO="init_end"
+CARDINFO{driver}=="ICH4", INCLUDE="intel8x0", GOTO="init_end"
 CARDINFO{driver}=="Test", INCLUDE="test", GOTO="init_end"
 
 LABEL="init_end"
Signature · 1 line
1.6.3.3

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

#1 lore raw

At Tue, 29 Sep 2009 22:45:43 -0700 (PDT),

Quoted 8 lines · Dan Chen

Hi,

Attached are two patches against alsa-utils.git HEAD that create an intel8x0 init db file for ICH4. This is necessary from bug reports in Debian and Ubuntu that state that External Amplifier must be muted to have audible (analog) playback by default on the Sony VAIO VGN-T350P.

Thanks. But, basically it means that a quirk in the driver is needed to revert the EAPD switch.
Could you check whether ac97_quirk=inv_eapd module option for snd-intel8x0 works?

Takashi

#2 lore raw
Quoted 4 lines · Takashi Iwai

Thanks.  But, basically it means that a quirk in the driver is needed to revert the EAPD switch.
Could you check whether ac97_quirk=inv_eapd module option for snd-intel8x0 works?

I've received confirmation from the bug reporter that using the quirk makes analog sound audible by default. Attached is a patch against current sound-2.6 HEAD making this change.

-Dan

From 9c64d1c19954f1ed91cb170855829903fcf3b7e3 Mon Sep 17 00:00:00 2001
From: Daniel T Chen <[email protected]>
Date: Thu, 1 Oct 2009 00:28:16 -0400
Subject: [PATCH] Mute External Amplifier by default for Sony VAIO VGN-T350P

This Sony VAIO model needs External Amplifier unmuted for audible playback, so make sure we set the inv_eapd quirk.

---
 sound/pci/intel8x0.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/pci/intel8x0.c +6 -0
index 171ada5..86e9a2d 100644
@@ -1954,6 +1954,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = {
 		.name = "Sony S1XP",
 		.type = AC97_TUNE_INV_EAPD
 	},
+	{
+		.subvendor = 0x104d,
+		.subdevice = 0x81c0,
+		.name = "Sony VAIO VGN-T350P", /*AD1981B*/
+		.type = AC97_TUNE_INV_EAPD
+	},
  	{
 		.subvendor = 0x1043,
 		.subdevice = 0x80f3,
Signature · 1 line
1.6.3.3

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

Applied
#3 lore raw

At Thu, 1 Oct 2009 00:32:31 -0400,

Quoted 10 lines · Daniel Chen
Quoted 4 lines · Takashi Iwai

Thanks.  But, basically it means that a quirk in the driver is needed to revert the EAPD switch.
Could you check whether ac97_quirk=inv_eapd module option for snd-intel8x0 works?

I've received confirmation from the bug reporter that using the quirk makes analog sound audible by default. Attached is a patch against current sound-2.6 HEAD making this change.

Thanks, applied now.

Takashi

Quoted 38 lines

-Dan
[2 0001-Mute-External-Amplifier-by-default-for-Sony-VAIO-VGN.patch <text/x-patch; US-ASCII (base64)>] From 9c64d1c19954f1ed91cb170855829903fcf3b7e3 Mon Sep 17 00:00:00 2001
From: Daniel T Chen <[email protected]>
Date: Thu, 1 Oct 2009 00:28:16 -0400
Subject: [PATCH] Mute External Amplifier by default for Sony VAIO VGN-T350P

This Sony VAIO model needs External Amplifier unmuted for audible playback, so make sure we set the inv_eapd quirk.

---
 sound/pci/intel8x0.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/pci/intel8x0.c +6 -0
index 171ada5..86e9a2d 100644
@@ -1954,6 +1954,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = {
 		.name = "Sony S1XP",
 		.type = AC97_TUNE_INV_EAPD
 	},
+	{
+		.subvendor = 0x104d,
+		.subdevice = 0x81c0,
+		.name = "Sony VAIO VGN-T350P", /*AD1981B*/
+		.type = AC97_TUNE_INV_EAPD
+	},
  	{
 		.subvendor = 0x1043,
 		.subdevice = 0x80f3,
Signature · 1 line
1.6.3.3

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

author
#4 lore raw

I'm attaching another patch (against current sound-2.6 HEAD) for another VAIO model also confirmed to need the same quirk.

From fa349946def562977521a9b7337e8319d0b827f5 Mon Sep 17 00:00:00 2001
From: Daniel T Chen <[email protected]>
Date: Thu, 1 Oct 2009 18:56:30 -0400
Subject: ALSA: intel8x0 - Mute External Amplifier by default for Sony VAIO VGN-B1VP

This Sony VAIO model also needs External Amplifier unmuted for audible playback, so make sure we set the inv_eapd quirk.

---
 sound/pci/intel8x0.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
sound/pci/intel8x0.c +6 -0
index 86e9a2d..754867e 100644
@@ -1960,6 +1960,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = {
 		.name = "Sony VAIO VGN-T350P", /*AD1981B*/
 		.type = AC97_TUNE_INV_EAPD
 	},
+	{
+		.subvendor = 0x104d,
+		.subdevice = 0x81c5,
+		.name = "Sony VAIO VGN-B1VP", /*AD1981B*/
+		.type = AC97_TUNE_INV_EAPD
+	},
  	{
 		.subvendor = 0x1043,
 		.subdevice = 0x80f3,
Signature · 1 line
1.6.3.3

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

#5 lore raw

At Thu, 1 Oct 2009 16:01:47 -0700 (PDT),

Quoted 3 lines · Dan Chen

I'm attaching another patch (against current sound-2.6 HEAD) for another VAIO model also confirmed to need the same quirk.

Applied now. Thanks.

Takashi