Bug 629118 - No audio through speakers on Dell M1330 Laptop
Summary: No audio through speakers on Dell M1330 Laptop
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 14
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-01 01:53 UTC by Javier Jardón
Modified: 2011-04-29 18:15 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-04-29 18:15:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
alsa info (31.72 KB, text/plain)
2010-09-01 01:53 UTC, Javier Jardón
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 675506 0 unspecified CLOSED Microphone doesnt work on Dell XPS m1330 2021-02-22 00:41:40 UTC

Internal Links: 675506

Description Javier Jardón 2010-09-01 01:53:19 UTC
Created attachment 442309 [details]
alsa info

Description of problem:
I have no sound in my laptop. It only works if I choose Analog Surround 4.0 in sound preferences.

Version-Release number of selected component (if applicable):

kernel: 2.6.35.4
alsa-utils: 1.0.23

alsa-info attached

Comment 1 Raymond 2010-10-02 03:33:34 UTC
your notebook have two headphone jacks and internal speaker


ALSA sound/pci/hda/hda_codec.c:4435: autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:4439:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:4443:    hp_outs=2 (0xa/0xf/0x0/0x0/0x0)
ALSA sound/pci/hda/hda_codec.c:4444:    mono: mono_out=0x0
ALSA sound/pci/hda/hda_codec.c:4447:    dig-out=0x21/0x0
ALSA sound/pci/hda/hda_codec.c:4455:    inputs: mic=0xe, fmic=0xc, line=0x0, fline=0x0, cd=0x0, aux=0x0
ALSA sound/pci/hda/patch_sigmatel.c:3014: stac92xx: dac_nids=2 (0x2/0x5/0x0/0x0/0x0)


you have to ask alsa developer why internal speaker become line out 



Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x02



Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x0221101f: [Jack] HP Out at Ext Front
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x02* 0x03

  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x0227011f: [Jack] HP Out at Ext Front
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x05





Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=63
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="STAC92xx Analog", type="Audio", device=0
  Amp-Out caps: N/A
  Amp-Out vals:  [0x73 0x73]
  Converter: stream=5, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples

Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Control: name="Headphone Playback Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=63
  Control: name="Headphone Playback Switch", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: N/A
  Amp-Out vals:  [0x73 0x73]
  Converter: stream=5, channel=2
  Power: setting=D0, actual=D0
  Delay: 13 samples

Comment 2 Javier Jardón 2010-10-02 15:58:54 UTC
Thanks Raymond,

hould we move this bug to alsa component, then?

Comment 3 Raymond 2010-10-06 09:37:03 UTC
Does the user manual mention that you can get the same audio from both of the dual headphone jacks ?

Since the two headphones jacks seem connected to different DAC  Nodes 0x02 and 0x05 , when you play stereo stream which only need one DAC 0x02 

when you select surround 4.0 in sound preference, pulseaudio upmix any mono.stereo stream to 4 channels which use both DAC node 0x02 and 0x05



The point is whether the internal speaker is auto muted when you plug in the headphone which is the standard feature of the notebook

Comment 4 Javier Jardón 2010-10-06 16:01:54 UTC
Yeah, I have sound if I plug a headphone. It works in both headphone jacks

Comment 5 Javier Jardón 2010-10-06 16:07:27 UTC
Also, maybe not related but I built-in microphone doesnt work either

Comment 6 Raymond 2010-10-06 22:56:23 UTC
   inputs: Internal Mic=0xc Mic=0xe Internal Mic=0x13

Which internal mic ? 0x0c or 0x13 

you can use hda-analyzer to find out which one is 'Mic' or 'Digital Mic' ?

Front Mic seem to be 0x0e Mic at Ext Front


Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'
Simple mixer control 'Input Source',2
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'



Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x90a79130: [Fixed] Mic at Int N/A
    Conn = Analog, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x03

Node 0x0e [Pin Complex] wcaps 0x400181: Stereo
  Control: name="Mic Jack Mode", index=0, device=0
    ControlAmp: chs=0, dir=In, idx=0, ofs=0
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x02a79130: [Jack] Mic at Ext Front
    Conn = Analog, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x04

Node 0x13 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x90a60040: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x20: IN

Comment 7 Raymond 2010-10-06 23:03:19 UTC

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 3/3
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2


Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 14 [100%] [21.00dB] [on]
  Front Right: Capture 14 [100%] [21.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 0 [0%] [0.00dB] [off]
  Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Capture',2
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 0 [0%] [0.00dB] [off]
  Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'
Simple mixer control 'Input Source',2
  Capabilities: cenum
  Items: 'Mic' 'Front Mic' 'Digital Mic'
  Item0: 'Mic'
Simple mixer control 'Mux',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 4
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',1
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 4
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',2
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 4
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]

Comment 8 Javier Jardón 2010-10-07 00:45:34 UTC
Hello,

I found a solution:

- run alsamixer -c0
- F4 to select input devices
- In "Input Source" I selec "Digital Mic" (options are "Mic", "Digital Mic" and "Front Mic")

Done, internal microphone works!


Note that if I change the preferences in the desktop GUI, I have to run alsamixer -c0 again.

Comment 9 Raymond 2010-10-07 03:07:51 UTC
in theory alsactl store / restore can keep your "Input Source" selection,

you have to ask PA developer how to select "Digital Mic" instead of "Mic" as your default input source since you have 3 capture subdevices which can connected to these two internal mic

Comment 10 Raymond 2010-10-07 03:11:46 UTC
https://qa.mandriva.com/show_bug.cgi?id=52175

it seem that PA/Gnome sound preference still has problem when your sound card has more than one capture subdevice

Comment 11 Raymond 2010-10-13 04:56:35 UTC
There are patches realated to multiple headphone 


http://git.alsa-project.org/?p=alsa-kernel.git&a=search&h=HEAD&st=commit&s=multiple+hp

Does your user manual mention that the one of the headphone can be retasked to support multi-channel output ?

Comment 12 Javier Jardón 2010-10-13 05:24:25 UTC
Hello Raymond,

I didnt find anythinf specific, only this:
http://support.euro.dell.com/support/edocs/systems/xpsM1330/en/om/html/about.htm#wp1213977

Comment 13 Raymond 2010-10-13 11:54:38 UTC
your m1330 is quite similar to m1530 which also has dual headphone with stac9228

you can compare the codec-info of your m1330 and m1530 


http://thread.gmane.org/gmane.linux.alsa.devel/51670/focus=51696

M1530 is using STAC_DELL_BIOS 

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

Comment 14 Raymond 2010-10-13 12:04:40 UTC
SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x0209, "Dell XPS 1330", STAC_DELL_BIOS),

There is already an entry in patch_sigmatel.c 1330 with 0x0209 instead of your 0x020a

http://git.alsa-project.org/?p=alsa-kernel.git;a=blob;f=sound/pci/hda/patch_sigmatel.c


Codec: SigmaTel STAC9228
Address: 0
Function Id: 0x1
Vendor Id: 0x83847616
Subsystem Id: 0x1028020a
Revision Id: 0x100201

Comment 15 Javier Jardón 2010-10-14 01:52:54 UTC
Ok, I think that would be better open a new bug for the microphone issue. Or are both problems (internal microphone and sound only if select 4.0 surround) related?

Comment 16 Raymond 2010-10-14 07:27:44 UTC
do you mean that you can hear audio from speaker after select model=dell-bios ?

>> Done, internal microphone works!

can you explain more about the mic problem ?


if all the problem solved with model=dell-bios , you should send email and attached output of alsa-info.sh to alsa developer mailing list so that they can added 

SND_PCI_QUIRK(PCI_VENDOR_ID_DELL,  0x020a, "Dell XPS m1330", STAC_DELL_BIOS),

Comment 17 Javier Jardón 2010-10-14 15:24:55 UTC
- I can hear audio after select "Analog Surround 4.0 Output" in desktop sound preferences.

- Microphone works after doing this:
 - run alsamixer -c0
 - F4 to select input devices
 - In "Input Source" I selec "Digital Mic" (options are "Mic", "Digital Mic" and
"Front Mic", the default is "Mic")
 - Microphone works

Also, I realized that if I change the microphone (I have 4 different options) in the desktop sound preferences (PA), I have to run alsamixer -c0 again because it switch to the default "Mic".

Comment 18 Raymond 2010-10-15 08:34:46 UTC
do you mean that the internal speaker still does not work after you select model=dell-bios since one of the headphone and speaker should work in analog stereo mode ? 

require surround40 mode only when you want two headphones have the same output

according hda-emu -m dell-bios

the default input source is "Front Mic" when the driver is loaded 

so you need either
1) alsactl store/restore to save and restore the setting 
2) modify "alsactl init" to use the digital mic (internal mic)
3) since digital mic is internal mic , check whether pulseaudio can select digital mic in preference of those external mic 


Attach PCM dev 0, name STAC92xx Analog, type audio, play #1, capture #3
send: NID=0x1e, VERB=0xf00(get_parameters), PARM=0xa(PCM)
receive: 0xe07e0
send: NID=0x1e, VERB=0xf00(get_parameters), PARM=0xb(stream)
receive: 0x5
Attach PCM dev 1, name STAC92xx Digital, type SPDIF, play #1, capture #0
> list
1: Headphone Playback Volume:0 (1)
2: Headphone Playback Switch:0 (1)
3: Headphone Playback Volume:1 (1)
4: Headphone Playback Switch:1 (1)
5: Front Mic Jack Mode:0 (1)
6: Beep Playback Volume:0 (1)
7: Beep Playback Switch:0 (1)
8: Capture Volume:0 (1)
9: Capture Switch:0 (1)
10: Capture Volume:1 (1)
11: Capture Switch:1 (1)
12: Capture Volume:2 (1)
13: Capture Switch:2 (1)
14: Mux Capture Volume:0 (1)
15: Mux Capture Volume:1 (1)
16: Mux Capture Volume:2 (1)
17: Input Source:0 (3)
20: IEC958 Playback Source:0 (1)
21: IEC958 Playback Con Mask:0 (1)
22: IEC958 Playback Pro Mask:0 (1)
23: IEC958 Playback Default:0 (1)
24: IEC958 Playback Switch:0 (1)
25: IEC958 Default PCM Playback Switch:0 (1)
26: Master Playback Volume:0 (1)
27: Master Playback Switch:0 (1)
> help
Available commands: list get set dump jack unsol option help verb PCM pm fs quit
Run "help CMD" for details
> get 17
17 Input Source:0
ITEM: 0:Front Mic, 1:Front Mic 2, 2:Digital Mic, VAL: [Front Mic]

Comment 19 Javier Jardón 2011-04-29 18:15:57 UTC
The sound works without problems in F15.
Thanks for all your help


Note You need to log in before you can comment on or make changes to this bug.