FS#10330 - mic not working (Intel Corp. 82801G (ICH7 Family) (rev 02), SigmaTel STAC9228)

Attached to Project: Arch Linux
Opened by Shane Helms (punter) - Thursday, 01 May 2008, 15:01 GMT
Last edited by Greg (dolby) - Wednesday, 16 July 2008, 13:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

The alsa shipped with Arch linux does not support mic recording
with the Audio: Intel Corp. 82801G (ICH7 Family) (rev 02) chipset and SigmaTel STAC9228 codec.
The alsamixer shows all the relevant settings,
but no capture can be made when using arecord or any other audio recording software.
Tried the "insmod snd-hda-intel mode=ref" as well, but mic still doesn't work.
My machine is a Fujitsu lifebook Q2010 notebook, but the audio chipset is widely used among other notebooks too.

Additional info:
kernel 2.6.24-ARCH
Advanced Linux Sound Architecture Driver Version 1.0.15
alsa-lib 1.0.16-1
alsa-utils 1.0.16-1

# lspci -v
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
Subsystem: Fujitsu Limited. Unknown device 13b4
Flags: bus master, fast devsel, latency 0, IRQ 23
Memory at f0640000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>

# cat /proc/asound/*
cat: /proc/asound/Intel: Is a directory
cat: /proc/asound/card0: Is a directory
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf0640000 irq 23
0: [ 0] : control
1: : sequencer
4: [ 0- 0]: hardware dependent
16: [ 0- 0]: digital audio playback
24: [ 0- 0]: digital audio capture
33: : timer
00-00: HDA Codec 0
0 snd_hda_intel
cat: /proc/asound/oss: Is a directory
00-00: STAC92xx Analog : STAC92xx Analog : playback 1 : capture 3
cat: /proc/asound/seq: Is a directory
G0: system timer : 3333.333us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
Client application 5375 : running
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-0-3: PCM capture 0-0-3 : SLAVE
P0-0-5: PCM capture 0-0-5 : SLAVE
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 2007 UTC).

# head /proc/asound/card0/codec#0
Codec: SigmaTel STAC9228
Address: 0
Vendor Id: 0x83847616
Subsystem Id: 0x10cf0100
Revision Id: 0x100201
No Modem Function Group found


Steps to reproduce:
This task depends upon

Closed by  Greg (dolby)
Wednesday, 16 July 2008, 13:28 GMT
Reason for closing:  Fixed
Comment by Shane Helms (punter) - Thursday, 01 May 2008, 15:03 GMT
note that audio playback works fine.
Comment by Martin Schmidt (Blind) - Thursday, 01 May 2008, 15:21 GMT
I was very hopeful when reading this mailing list thread:

http://archlinux.org/pipermail/arch-dev-public/2008-April/005902.html

But nothing has happened so far. I am pretty sure that the 1.0.16 ALSA driver fixes this, but when trying to compile the alsa-project.org driver, it fails for my kernel 2.6.25. Searching the internet shows that this is a known problem, supposedly not fixed yet.

Cheers,
Martin
Comment by Xavier (shining) - Friday, 02 May 2008, 09:28 GMT
Doesn't 2.6.25 already have alsa 1.0.16rc2 ? (cat /proc/asound/version)
Though there are still several changes between rc2 and final :
http://www.alsa-project.org/main/index.php/Changes_v1.0.16rc2_v1.0.16#Changelog_between_1.0.16rc2_and_1.0.16_releases

But otherwise, I always had the same problem with my laptop, mic not working. The trick for me was to use model=hp option, but maybe other models could work too.
So my suggestion would be to experiment with several other models.
You can have a short list here : http://alsa.opensrc.org/index.php/Hda
more complete (maybe full) list for 2.6.24 :
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/sound/alsa/ALSA-Configuration.txt;h=4b48c2e82c3c1f340cf4cd7b4247d6d58941d162;hb=49914084e797530d9baaf51df9eda77babc98fa8
and for current git kernel version :
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/sound/alsa/ALSA-Configuration.txt;hb=HEAD
Comment by Shane Helms (punter) - Friday, 02 May 2008, 09:55 GMT
depends on the codec chip.
Xavier, i'm assuming you have a ALC260 codec chip because that chip supports "model=hp".

my codec chip is STAC9228.
these are the only supported model, none of which work.

STAC9227/9228/9229/927x
ref Reference board
3stack D965 3stack
5stack D965 5stack + SPDIF
dell-3stack Dell Dimension E520
Comment by Xavier (shining) - Friday, 02 May 2008, 10:12 GMT
Of course, I didn't want you to try hp, just the possible models for your chipset. (hp supports several chipsets btw, mine is AD1981)
But if you already did, fine.
I guess you should indeed try to build the alsa 1.0.16 driver then.
Or try 2.6.25 kernel which has 1.0.16rc2, as I said. 2.6.25 is in testing for a while already, but I am not sure what its status is and when it will be moved.
Comment by Martin Schmidt (Blind) - Friday, 02 May 2008, 13:00 GMT
Yeah, I am using 2.6.25 right now to no avail:
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
> cat /proc/asound/card0/codec#0
Codec: SigmaTel STAC9200
Address: 0
Vendor Id: 0x83847690
Subsystem Id: 0x102801d8
Revision Id: 0x102201
No Modem Function Group found
Default PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM

Dunno, have been giving up on this - it used to work before on 2.6.23. Ever since .24 this has been been defunct. Sad.
BTW, I have tried all kinds of drivers for this chipset. All not working.
Cheers,
Martin

Comment by Kessia Pinheiro (even) - Tuesday, 27 May 2008, 18:21 GMT
Here in my Vostro 1400 i have the same problem. Mic never works, with any version of alsa of kernel. What i have now:
$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).

$ uname -a
Linux rainbows 2.6.25-ARCH #1 SMP PREEMPT Fri May 16 14:52:43 CEST 2008 i686 Intel(R) Celeron(R) CPU 540 @ 1.86GHz GenuineIntel GNU/Linux

$ cat /proc/asound/card0/codec#0
Codec: SigmaTel STAC9228
Address: 0
Vendor Id: 0x83847616
Subsystem Id: 0x10280227
Revision Id: 0x100201
No Modem Function Group found
Default PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=0
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=3, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1
IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0
IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x66 0x66]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Converter: stream=0, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Converter: stream=5, channel=0
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x06 [Vendor Defined Widget] wcaps 0xfd0c05: Stereo Amp-Out R/L
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1
0x1b
Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1
0x1c
Processing caps: benign=0, ncoeff=0
Node 0x09 [Audio Input] wcaps 0x1d0541: Stereo
Converter: stream=0, channel=0
SDI-Select: 0
Power: setting=D0, actual=D0
Delay: 13 samples
Connection: 1
0x1d
Processing caps: benign=0, ncoeff=0
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x0221401f: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=30, enabled=1
Connection: 2
0x02* 0x03
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x02a19120: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Connection: 2
0x02 0x03*
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00: VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x01014011: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
DefAssociation = 0x1, Sequence = 0x1
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x01a19021: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
DefAssociation = 0x2, Sequence = 0x1
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1
0x04
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect Trigger ImpSense
Vref caps: HIZ 50 GRD 80
Pin Default 0x01813024: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
DefAssociation = 0x2, Sequence = 0x4
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect Trigger ImpSense
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 1
0x04
Node 0x11 [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect Trigger ImpSense
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Connection: 1
0x03
Node 0x12 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x13 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x14 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Node 0x15 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 9
0x0e* 0x12 0x0f 0x0b 0x0c 0x0d 0x0a 0x10 0x11
Node 0x16 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 9
0x0e* 0x12 0x0f 0x0b 0x0c 0x0d 0x0a 0x10 0x11
Node 0x17 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 9
0x0e* 0x12 0x0f 0x0b 0x0c 0x0d 0x0a 0x10 0x11
Node 0x18 [Audio Selector] wcaps 0x300103: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x0e 0x0e]
Connection: 1
0x15
Node 0x19 [Audio Selector] wcaps 0x300103: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x0c 0x0c]
Connection: 1
0x16
Node 0x1a [Audio Selector] wcaps 0x300103: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x0e 0x0e]
Connection: 1
0x17
Node 0x1b [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Connection: 3
0x18* 0x13 0x14
Node 0x1c [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Connection: 3
0x19* 0x13 0x14
Node 0x1d [Audio Selector] wcaps 0x30090d: Stereo Amp-Out R/L
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Connection: 3
0x1a* 0x13 0x14
Node 0x1e [Audio Output] wcaps 0x40211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Delay: 4 samples
Node 0x1f [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Delay: 3 samples
Node 0x20 [Audio Input] wcaps 0x140311: Stereo Digital
Converter: stream=0, channel=0
SDI-Select: 0
Digital:
Digital category: 0x0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Delay: 4 samples
Connection: 1
0x22
Node 0x21 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Connection: 5
0x1e* 0x1f 0x1b 0x1c 0x1d
Node 0x22 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN EAPD Detect
EAPD 0x0:
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x0, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power: setting=D0, actual=D0
Delay: 3 samples
Node 0x23 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x24 [Volume Knob Widget] wcaps 0x600000: Mono
Volume-Knob: delta=1, steps=127, direct=1, val=0
Connection: 4
0x02* 0x03 0x04 0x05
Comment by Martin Schmidt (Blind) - Tuesday, 27 May 2008, 18:36 GMT
Ok,
I have found out that this might be a xfce-mixer bug for me.
If any of you is using XFCE, you might want to try a different mixer. For me, everything works fine now with gnome.
If it doesn't work for others, I am sorry for my added noise.
Cheers,
Martin
Comment by Martin Schmidt (Blind) - Tuesday, 27 May 2008, 18:42 GMT
Oh, if anyone is interested, I have a PKGBUILD for alsa-drivers 1.0.16 mercurial that uses /lib/modules/$(uname -r)/updates.
Send me an email...
Comment by Kessia Pinheiro (even) - Tuesday, 27 May 2008, 19:19 GMT
I alsa tryed with alsa-driver .16. Not work too.
Comment by Pierre Bourdon (delroth) - Tuesday, 15 July 2008, 23:44 GMT
I found a "fix" for this bug :
- install gnome-alsamixer
- set the internal volume at 0
- check the Rec checkbox
- modify mic-boost, digital and capture volume

It seems to work with an Intel IHC7 rev 01, haven't tested with a rev 02, but may work too.
Comment by Kessia Pinheiro (even) - Wednesday, 16 July 2008, 00:02 GMT
For any reason of unknown, mic works now. I dont now what happens, but works after 2.6.25 kernel.
Comment by Greg (dolby) - Wednesday, 16 July 2008, 04:00 GMT
Should this be closed then?
Comment by Kessia Pinheiro (even) - Wednesday, 16 July 2008, 13:21 GMT
Yes, sure.

Loading...