Skip to contentSkip to conversation

hda: STAC927x invalid association value

PATCH Applied Matthew Ranostay 4 participants 9 messages Feb 20, 2008 – Feb 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hda: STAC927x invalid association value

STAC_DELL_BIOS quirks were setting the association value wrong for port 0x0f, which prevented it from being included in hp_outs[].

---

pci/hda/patch_sigmatel.c +1 -1
diff -r 30701aaf404c pci/hda/patch_sigmatel.c
@@ -3630,7 +3630,7 @@ static int patch_stac927x(struct hda_cod
 		break;
 	case STAC_DELL_BIOS:
 		/* correct the front output jack as a hp out */
-		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
+		stac92xx_set_config_reg(codec, 0x0f, 0x0227011f);
 		/* correct the front input jack as a mic */
 		stac92xx_set_config_reg(codec, 0x0e, 0x02a79130);
 		/* fallthru */
Applied
#1 lore raw

At Wed, 20 Feb 2008 17:07:17 -0500,

Quoted 5 lines · Matthew Ranostay

STAC_DELL_BIOS quirks were setting the association value wrong for port 0x0f, which prevented it from being included in hp_outs[].

Applied to HG tree.
Hopefully this fixes the problem with Dell XP M1530...

Thanks,

Takashi

Quoted 14 lines

---
diff -r 30701aaf404c pci/hda/patch_sigmatel.c

pci/hda/patch_sigmatel.c +1 -1
@@ -3630,7 +3630,7 @@ static int patch_stac927x(struct hda_cod
 		break;
 	case STAC_DELL_BIOS:
 		/* correct the front output jack as a hp out */
-		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
+		stac92xx_set_config_reg(codec, 0x0f, 0x0227011f);
 		/* correct the front input jack as a mic */
 		stac92xx_set_config_reg(codec, 0x0e, 0x02a79130);
 		/* fallthru */
#2 lore raw

I tried with "alsa-driver-hg20080221", and now left HP and internal speakers are gone again.

dmesg:

[   15.444000] ALSA 
/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/hda_codec.c:2994: 
autoconfig: line_outs=1 (0xf/0x0/0x0/0x0/0x0)
[   15.444000] ALSA 
/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/hda_codec.c:2998:    
speaker_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   15.444000] ALSA 
/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/hda_codec.c:3002:    
hp_outs=1 (0xa/0xf/0x0/0x0/0x0)
[   15.444000] ALSA 
/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/hda_codec.c:3003:    
mono: mono_out=0x0
[   15.444000] ALSA 
/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/hda_codec.c:3011:    
inputs: mic=0xe, fmic=0x0, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   15.448000] ALSA 

/mnt/storage/source/alsa/alsa-driver-hg20080221/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2222:
dac_nids=2 (0x5/0x4/0x0/0x0/0x0)

alsa-info.sh
http://pastebin.ca/912640

Was this sw with the fix?

- Anders

Quoted 32 lines · Takashi Iwai

At Wed, 20 Feb 2008 17:07:17 -0500,

Quoted 5 lines · Matthew Ranostay

STAC_DELL_BIOS quirks were setting the association value wrong for port 0x0f, which prevented it from being included in hp_outs[].

Applied to HG tree.
Hopefully this fixes the problem with Dell XP M1530...

Thanks,

Takashi

Quoted 15 lines

---
diff -r 30701aaf404c pci/hda/patch_sigmatel.c

pci/hda/patch_sigmatel.c +1 -1
@@ -3630,7 +3630,7 @@ static int patch_stac927x(struct hda_cod
 		break;
 	case STAC_DELL_BIOS:
 		/* correct the front output jack as a hp out */
-		stac92xx_set_config_reg(codec, 0x0f, 0x02270110);
+		stac92xx_set_config_reg(codec, 0x0f, 0x0227011f);
 		/* correct the front input jack as a mic */
 		stac92xx_set_config_reg(codec, 0x0e, 0x02a79130);
 		/* fallthru */
#3 lore raw

At Thu, 21 Feb 2008 16:17:53 +0100,

Quoted 3 lines · Anders Rønningen

I tried with "alsa-driver-hg20080221", and now left HP and internal speakers are gone again.

Of course it doesn't work. The daily snapshot was created before today's fix patches. Use mercurial to get the latest sources.

Takashi

#4 lore raw

I finally got around to compiling the latest source.

[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2994: 
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2998:    
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3002:    
hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3003:    
mono: mono_out=0x0
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3011:    
inputs: mic=0xc, fmic=0xe, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   14.160000] ALSA 

/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2287:
dac_nids=3 (0x2/0x5/0x3/0x0/0x0)

Now I have sound on both HP and Internal speakers, but levelcontrol is not ok.

Internal Speakers: PCM and Front adjust the level, Master does nothing Left HP Jack: PCM and Front adjust the level, Master does nothing Right HP Jack: PCM adjusts level, Master and Front does nothing.

- Anders

Quoted 13 lines · Takashi Iwai

At Thu, 21 Feb 2008 16:17:53 +0100,

Quoted 3 lines · Anders Rønningen

I tried with "alsa-driver-hg20080221", and now left HP and internal speakers are gone again.

Of course it doesn't work. The daily snapshot was created before today's fix patches. Use mercurial to get the latest sources.

Takashi

#5 lore raw

At Sat, 23 Feb 2008 23:29:56 +0100,

Quoted 22 lines · Anders Rønningen

I finally got around to compiling the latest source.

[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2994: 
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2998:    
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3002:    
hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3003:    
mono: mono_out=0x0
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3011:    
inputs: mic=0xc, fmic=0xe, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   14.160000] ALSA 

/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2287:
dac_nids=3 (0x2/0x5/0x3/0x0/0x0)

Quoted 6 lines

Now I have sound on both HP and Internal speakers, but levelcontrol is not ok.

Internal Speakers: PCM and Front adjust the level, Master does nothing Left HP Jack: PCM and Front adjust the level, Master does nothing Right HP Jack: PCM adjusts level, Master and Front does nothing.

I guess this is also same on 1.0.16? Or is it a regression after 1.0.16?

Could you take alsa-info.sh snapshot for each mixer state? Then we can check the inconsistent mapping between mixer elements and the actual I/Os.

thanks,

Takashi

#6 lore raw

HG:
http://pastebin.ca/916114

1.0.16:
http://pastebin.ca/916117

This is a regression from 1.0.16. In 1.0.16 everything works nice, except that the volume changes almost seem exponential. With PCM and Front set to max, I can increase the Master slider from 0% up to about 50% almost without hearing any change (or sound). From ~70% and up, the volume increases _very_ much with each step. Don't know if it's supposed to work that way.

--
Anders

Quoted 44 lines · Takashi Iwai

At Sat, 23 Feb 2008 23:29:56 +0100,

Quoted 21 lines · Anders Rønningen

I finally got around to compiling the latest source.

[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2994: 
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2998:    
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3002:    
hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3003:    
mono: mono_out=0x0
[   14.160000] ALSA 
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3011:    
inputs: mic=0xc, fmic=0xe, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   14.160000] ALSA 

/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2287:
dac_nids=3 (0x2/0x5/0x3/0x0/0x0)

Quoted 7 lines

Now I have sound on both HP and Internal speakers, but levelcontrol is not ok.

Internal Speakers: PCM and Front adjust the level, Master does nothing Left HP Jack: PCM and Front adjust the level, Master does nothing Right HP Jack: PCM adjusts level, Master and Front does nothing.

I guess this is also same on 1.0.16? Or is it a regression after 1.0.16?

Could you take alsa-info.sh snapshot for each mixer state? Then we can check the inconsistent mapping between mixer elements and the actual I/Os.

thanks,

Takashi

#7 lore raw
In reply to Anders Rønningen
Quoted 21 lines · Anders Rønningen

I finally got around to compiling the latest source.

[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2994:
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2998:   
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3002:   
hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3003:   
mono: mono_out=0x0
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3011:   
inputs: mic=0xc, fmic=0xe, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   14.160000] ALSA

/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2287:
dac_nids=3 (0x2/0x5/0x3/0x0/0x0)

Quoted 7 lines

Now I have sound on both HP and Internal speakers, but levelcontrol is not ok.

Internal Speakers: PCM and Front adjust the level, Master does nothing Left HP Jack: PCM and Front adjust the level, Master does nothing Right HP Jack: PCM adjusts level, Master and Front does nothing.

The Right HP Jack should be adjusted by "Surround". Because there are three jacks on the front panel, they can work on 6-channel model.

Were you able to adjust "Right HP Jack" through "Front" in alsa-1.0.16?

Thanks!

Quoted 1 line

- Anders

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

#8 lore raw

Yes. In 1.0.16, Master and PCM adjust Left HP, while Master, Front and PCM adjust Right HP. This means that with Front at 100%, I can adjust Master and PCM and have equal level in Left/Right HP

--
Anders

Quoted 43 lines · Jiang zhe
Quoted 19 lines · Anders Rønningen

I finally got around to compiling the latest source.

[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2994:
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:2998:
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3002:
hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3003:
mono: mono_out=0x0
[   14.160000] ALSA
/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/hda_codec.c:3011:
inputs: mic=0xc, fmic=0xe, line=0x0, fline=0x0, cd=0x0, aux=0x0
[   14.160000] ALSA

/mnt/storage/source/alsa/mercurial/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2287:

Quoted 9 lines

dac_nids=3 (0x2/0x5/0x3/0x0/0x0)

Now I have sound on both HP and Internal speakers, but levelcontrol is not ok.

Internal Speakers: PCM and Front adjust the level, Master does nothing Left HP Jack: PCM and Front adjust the level, Master does nothing Right HP Jack: PCM adjusts level, Master and Front does nothing.

The Right HP Jack should be adjusted by "Surround". Because there are three jacks on the front panel, they can work on 6-channel model.

Were you able to adjust "Right HP Jack" through "Front" in alsa-1.0.16?

Thanks!

Quoted 1 line

- Anders

Signature · 2 lines
Mvh,
Anders