Skip to contentSkip to conversation

Problem with DELL XPS M1530

DISCUSSION Anders Rønningen 3 participants 8 messages Feb 19, 2008 – Feb 21, 2008

lore
Share & tools
lore
#0 lore raw

Hi. I am the mentioned user with this problem. Just thought I'd give you a little more info on this problem.

What wishie described was correct, except it's the internal speakers and the /left/ hp-jack that stopped working, while the right one is still ok. Like he wrote, the reason we started this debugging was to get mic sound on my system. The thing I think is worth mentioning is that with alsa 1.0.14 on an out-of-the box Ubuntu Gutsy, both hp-jacks and the internal speakers worked for me. People in #alsa told me that the module was not loaded correctly, but whatever was loaded _almost_ worked well :-)

- Anders

#1 lore raw

At Tue, 19 Feb 2008 17:24:04 +0100,

Quoted 11 lines · Anders Rønningen

Hi. I am the mentioned user with this problem. Just thought I'd give you a little more info on this problem.

What wishie described was correct, except it's the internal speakers and the /left/ hp-jack that stopped working, while the right one is still ok. Like he wrote, the reason we started this debugging was to get mic sound on my system. The thing I think is worth mentioning is that with alsa 1.0.14 on an out-of-the box Ubuntu Gutsy, both hp-jacks and the internal speakers worked for me. People in #alsa told me that the module was not loaded correctly, but whatever was loaded _almost_ worked well :-)

OK, please build the driver with --with-debug=full option and show the kernel messages such as "autoconfig: ..." and "dac_nids...", etc. This contains the information that the pin configuration parser uses.

Also, unmute and adjust "Surround" volume.

Takashi

#2 lore raw

Hi Takashi.

Some dmesg output:

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

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

Unmuted and adjusted Surround volume, but it made no difference.

- Anders

Quoted 24 lines · Takashi Iwai

At Tue, 19 Feb 2008 17:24:04 +0100,

Quoted 11 lines · Anders Rønningen

Hi. I am the mentioned user with this problem. Just thought I'd give you a little more info on this problem.

What wishie described was correct, except it's the internal speakers and the /left/ hp-jack that stopped working, while the right one is still ok. Like he wrote, the reason we started this debugging was to get mic sound on my system. The thing I think is worth mentioning is that with alsa 1.0.14 on an out-of-the box Ubuntu Gutsy, both hp-jacks and the internal speakers worked for me. People in #alsa told me that the module was not loaded correctly, but whatever was loaded _almost_ worked well :-)

OK, please build the driver with --with-debug=full option and show the kernel messages such as "autoconfig: ..." and "dac_nids...", etc. This contains the information that the pin configuration parser uses.

Also, unmute and adjust "Surround" volume.

Takashi

#3 lore raw
Quoted 20 lines · Anders Rønningen

Hi Takashi.

Some dmesg output:

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

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

Unmuted and adjusted Surround volume, but it made no difference.

- Anders

It's weird that 0xf is in both the line_outs and hp_outs. And the hp_outs=1 when there are two items.

What is the original configuration of pin 0xf? Please try to get rid of this line from the alsa-kernel/pci/hda/patch_sigmatel.c.

SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x022e, "Dell ", STAC_DELL_BIOS),

Rebuild and install the driver.
Please give the output of "cat /proc/asound/card0/codec#0".

Thanks!

Quoted 33 lines
Quoted 4 lines · Takashi Iwai

At Tue, 19 Feb 2008 17:24:04 +0100,

Quoted 1 line · Anders Rønningen

Hi. I am the mentioned user with this problem. Just thought I'd

give you

Quoted 3 lines
Quoted 3 lines

a little more info on this problem.

What wishie described was correct, except it's the internal

speakers and

Quoted 1 line
Quoted 1 line

the /left/ hp-jack that stopped working, while the right one is

still

Quoted 1 line
Quoted 1 line

ok. Like he wrote, the reason we started this debugging was to get

mic

Quoted 1 line
Quoted 1 line

sound on my system. The thing I think is worth mentioning is that

with

Quoted 1 line
Quoted 1 line

alsa 1.0.14 on an out-of-the box Ubuntu Gutsy, both hp-jacks and

the

Quoted 1 line
Quoted 1 line

internal speakers worked for me. People in #alsa told me that the

module

Quoted 1 line
Quoted 1 line

was not loaded correctly, but whatever was loaded _almost_ worked

well :-)

Quoted 3 lines
Quoted 1 line

OK, please build the driver with --with-debug=full option and show

the

Quoted 2 lines

kernel messages such as "autoconfig: ..." and "dac_nids...", etc. This contains the information that the pin configuration parser

uses.

Quoted 4 lines

Also, unmute and adjust "Surround" volume.

Quoted 8 lines
Quoted 2 lines

Takashi

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

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

#4 lore raw

At Wed, 20 Feb 2008 17:49:00 +0800,

Quoted 25 lines · Jiang zhe
Quoted 23 lines · Anders Rønningen

Hi Takashi.

Some dmesg output:

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

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

Quoted 6 lines
Quoted 4 lines

Unmuted and adjusted Surround volume, but it made no difference.

- Anders

It's weird that 0xf is in both the line_outs and hp_outs. And the hp_outs=1 when there are two items.

It's due to a fix for an ALC268 laptop that has also two HPs but one is actually a line-out. Note that hp_outs=1 in the print above. The 0x0f in hp_outs is simply a garbage. Maybe that patch broke the double HPs with STAC9228...

Takashi

#7 lore raw
In reply to Anders Rønningen

At Tue, 19 Feb 2008 19:25:24 +0100,

Quoted 21 lines · Anders Rønningen

Hi Takashi.

Some dmesg output:

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

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

Unmuted and adjusted Surround volume, but it made no difference.

Please upload the alsa-info.sh output again. No difference in the output but there must be a difference in the codec setting.

Also, just to make the situation clear:
the problem is that the speaker and the rear HP don't give sound output even if you *don't* plug in the front HP, right?

Takashi

#5 lore raw
In reply to Takashi Iwai

Hi, Takashi:

Maybe we can try handling the ALC268 laptop HP issue in the patch_realtek.c.
The patch for the hda_codec.c seems to conflict with the code of patch_sigmatel.c.

The patch_sigmatel.c depends on line_out_type == AUTO_PIN_SPEAKER_OUT and hp_outs > 1 in order to handle the 2 HP jacks issue.

/* If we have no real line-out pin and multiple hp-outs, HPs should

	 * be set up as multi-channel outputs.
	 */
	if (spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT &&
	    spec->autocfg.hp_outs > 1) {
		/* Copy hp_outs to line_outs, backup line_outs in
		 * speaker_outs so that the following routines can handle
		 * HP pins as primary outputs.
		 */
		memcpy(spec->autocfg.speaker_pins, spec->autocfg.line_out_pins,
		       sizeof(spec->autocfg.line_out_pins));
		spec->autocfg.speaker_outs = spec->autocfg.line_outs;
		memcpy(spec->autocfg.line_out_pins, spec->autocfg.hp_pins,
		       sizeof(spec->autocfg.hp_pins));
		spec->autocfg.line_outs = spec->autocfg.hp_outs;
		hp_speaker_swap = 1;
	}

Thanks!

Quoted 10 lines
Quoted 2 lines

It's weird that 0xf is in both the line_outs and hp_outs. And the hp_outs=1 when there are two items.

It's due to a fix for an ALC268 laptop that has also two HPs but one is actually a line-out. Note that hp_outs=1 in the print above. The 0x0f in hp_outs is simply a garbage. Maybe that patch broke the double HPs with STAC9228...

Takashi

#6 lore raw

At Thu, 21 Feb 2008 11:06:15 +0800,

Quoted 7 lines · Jiang zhe

Hi, Takashi:

Maybe we can try handling the ALC268 laptop HP issue in the patch_realtek.c.
The patch for the hda_codec.c seems to conflict with the code of patch_sigmatel.c.

Yes, I overlooked this at the time I fixed ALC codec issues. Moving the fix-up to alc-specific part is one solution.

But, I guess this is fixed by the recent patches by Matthew, which I committed to HG tree right now. It fixes the wrong association number of the widget 0x0f -- the headphone jacks should have the association number 0x0f.

If this still doesn't work, let's move the fix-up code from the common place.

thanks,

Takashi