* Strange findings about the microphone in SigmaTel STAC9221 A1
@ 2007-05-11 9:48 Ivan N. Zlatev
2007-05-15 12:26 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-11 9:48 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 736 bytes --]
My hda-intel card is with the following codec:
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b1700
Revision Id: 0x103401
I am using alsa 1.0.14rc4. I have a built-in microphone, which doesn't
work, but today I found out something interesting. If I set the
capture to minimum and place Mux at specific positions (Works with
middle-ish and top, not bottom-ish) suddenly the mic started
recording, but the quality is extremly bad. I have attached amixer and
co. Does anyone have a clue what the issue is and how could possibly
this little bit of random foundings to be used to possibly fix the
mic?
Regards.
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
[-- Attachment #2: amixer --]
[-- Type: application/octet-stream, Size: 2298 bytes --]
Simple mixer control 'Master',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 127 [100%] [0.00dB] [off]
Simple mixer control 'Line In as Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Mic as Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [off] Capture [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 14
Front Left: Capture 0 [0%] [0.00dB] [on]
Front Right: Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Input Source',0
Capabilities: enum
Items: 'Mic' 'Front Mic' 'Line'
Item0: 'Mic'
Simple mixer control 'Mux',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 4
Front Left: Capture 4 [100%] [40.00dB]
Front Right: Capture 4 [100%] [40.00dB]
[-- Attachment #3: test.wav.gz --]
[-- Type: application/x-gzip, Size: 9527 bytes --]
[-- Attachment #4: codec-info --]
[-- Type: application/octet-stream, Size: 4372 bytes --]
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b1700
Revision Id: 0x103401
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=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x79 0x79]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x75 0x75]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xf2 0xf2]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xf4 0xf4]
Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Connection: 1
0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x0221401f: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x01011012: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Black
Pin-ctls: 0x20: IN
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x01813024: [Jack] Line In at Ext Rear
Conn = 1/8, Color = Blue
Pin-ctls: 0x20: IN
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x01014010: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Green
Pin-ctls: 0x00:
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0824: IN Detect
Pin Default 0x01a19021: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect
Pin Default 0x01016011: [Jack] Line Out at Ext Rear
Conn = 1/8, Color = Orange
Pin-ctls: 0x00:
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x01452130: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = Grey
Pin-ctls: 0x40: OUT
Connection: 3
0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN EAPD Detect
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x04 0x04]
Connection: 7
0x0e 0x15* 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15* 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x02a19320: [Jack] Mic at Ext Front
Conn = 1/8, Color = Pink
Pin-ctls: 0x20: IN
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x0e 0x0e]
Connection: 1
0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x40000100: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Connection: 1
0x1a
[-- Attachment #5: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-11 9:48 Strange findings about the microphone in SigmaTel STAC9221 A1 Ivan N. Zlatev
@ 2007-05-15 12:26 ` Takashi Iwai
2007-05-15 14:41 ` Ivan N. Zlatev
0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2007-05-15 12:26 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Fri, 11 May 2007 10:48:44 +0100,
Ivan N. Zlatev wrote:
>
> My hda-intel card is with the following codec:
>
> Codec: SigmaTel STAC9221 A1
> Address: 0
> Vendor Id: 0x83847680
> Subsystem Id: 0x106b1700
> Revision Id: 0x103401
>
> I am using alsa 1.0.14rc4. I have a built-in microphone, which doesn't
> work, but today I found out something interesting. If I set the
> capture to minimum and place Mux at specific positions (Works with
> middle-ish and top, not bottom-ish) suddenly the mic started
> recording, but the quality is extremly bad. I have attached amixer and
> co. Does anyone have a clue what the issue is and how could possibly
> this little bit of random foundings to be used to possibly fix the
> mic?
If this is 100% reproducible, you'll see likely a difference in
/proc/asound/card0/codec#* file between working and non-working
states. Could you attach codec files in both states?
The quality problem is perhaps because of the wrong pin setting.
It's set in Hi-Z without vref. But it's a bit strange because
stac92xx_get_vref() should return the proper vref value. Could you
check whether this really gets called and which value is returned,
e.g. by adding printk() there?
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-15 12:26 ` Takashi Iwai
@ 2007-05-15 14:41 ` Ivan N. Zlatev
2007-05-15 15:06 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-15 14:41 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
On 5/15/07, Takashi Iwai <tiwai@suse.de> wrote:
> If this is 100% reproducible, you'll see likely a difference in
> /proc/asound/card0/codec#* file between working and non-working
> states. Could you attach codec files in both states?
>
I have to do 4 things to enable the microphone (a built-in one) as
follows (with diffs of codec between steps)
1) Turn on capture and mux on and set them on max
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
- Amp-Out vals: [0x00 0x00]
+ Amp-Out vals: [0x04 0x04]
Connection: 7
0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
- Amp-In vals: [0x80 0x80]
+ Amp-In vals: [0x0e 0x0e]
Connection: 1
0x12
2) Switch from Mic to Front Mic - no changes
3) Switch from Front Mic back to Mic
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x04 0x04]
Connection: 7
- 0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
+ 0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
4) Put Capture on minimum and the mic will start recording with dodgy quality.
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
- Amp-In vals: [0x0e 0x0e]
+ Amp-In vals: [0x00 0x00]
On 5/15/07, Takashi Iwai <tiwai@suse.de> wrote:
> The quality problem is perhaps because of the wrong pin setting.
> It's set in Hi-Z without vref. But it's a bit strange because
> stac92xx_get_vref() should return the proper vref value. Could you
> check whether this really gets called and which value is returned,
> e.g. by adding printk() there?
It doesn't get called according to my tests.
I've also tested with Alsa HG, but I can no longer make the mic work
with the steps descrived, not to mention that with imac-intel model I
get no sound.
Regards.
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-15 14:41 ` Ivan N. Zlatev
@ 2007-05-15 15:06 ` Takashi Iwai
2007-05-15 17:11 ` Ivan N. Zlatev
0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2007-05-15 15:06 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Tue, 15 May 2007 15:41:40 +0100,
Ivan N. Zlatev wrote:
>
> On 5/15/07, Takashi Iwai <tiwai@suse.de> wrote:
> > If this is 100% reproducible, you'll see likely a difference in
> > /proc/asound/card0/codec#* file between working and non-working
> > states. Could you attach codec files in both states?
> >
>
> I have to do 4 things to enable the microphone (a built-in one) as
> follows (with diffs of codec between steps)
>
> 1) Turn on capture and mux on and set them on max
>
> Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
> Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
> - Amp-Out vals: [0x00 0x00]
> + Amp-Out vals: [0x04 0x04]
> Connection: 7
> 0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
>
> Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
> Amp-In caps: N/A
> - Amp-In vals: [0x80 0x80]
> + Amp-In vals: [0x0e 0x0e]
> Connection: 1
> 0x12
>
> 2) Switch from Mic to Front Mic - no changes
> 3) Switch from Front Mic back to Mic
>
> Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
> Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
> Amp-Out vals: [0x04 0x04]
> Connection: 7
> - 0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
> + 0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
>
> 4) Put Capture on minimum and the mic will start recording with dodgy quality.
>
> Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
> Amp-In caps: N/A
> - Amp-In vals: [0x0e 0x0e]
> + Amp-In vals: [0x00 0x00]
Perhaps the crutial point is "Input Source". The value currently
shown there and the value the hardware is set are different.
Could you check the connection of node 0x12 at the very beginning?
I guess it's not 0x0b.
The other actions seem just for volume / mute controls.
What happens if you use different values for "Capture Volume" and
"Capture Mux Volume"?
> On 5/15/07, Takashi Iwai <tiwai@suse.de> wrote:
> > The quality problem is perhaps because of the wrong pin setting.
> > It's set in Hi-Z without vref. But it's a bit strange because
> > stac92xx_get_vref() should return the proper vref value. Could you
> > check whether this really gets called and which value is returned,
> > e.g. by adding printk() there?
>
> It doesn't get called according to my tests.
Hmm strange. This should be called from stac92xx_init(), line 1695.
> I've also tested with Alsa HG, but I can no longer make the mic work
> with the steps descrived, not to mention that with imac-intel model I
> get no sound.
Then try to add model=macbook or model=macbook-pro-v2. Now iMac has
its own pin setting (corresponding to model=imac-intel).
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-15 15:06 ` Takashi Iwai
@ 2007-05-15 17:11 ` Ivan N. Zlatev
2007-05-15 17:23 ` Ivan N. Zlatev
2007-05-18 17:12 ` Takashi Iwai
0 siblings, 2 replies; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-15 17:11 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 4018 bytes --]
I was wrong about _vref. Output %X of pincap and returned vref as
follows on modprobe:
hda_codec: STAC922x, Apple subsys_id=106b1700
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2270:
autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2274:
speaker_outs=1 (0xc/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2278:
hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2286:
inputs: mic=0xb, fmic=0xe, line=0xf, fline=0x0, cd=0x0, aux=0x0
17 - AC_PINCTL_VREF_80
0 - AC_PINCTL_VREF_0
17 - AC_PINCTL_VREF_80
> Could you check the connection of node 0x12 at the very beginning?
> I guess it's not 0x0b.
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
> Then try to add model=macbook or model=macbook-pro-v2. Now iMac has
> its own pin setting (corresponding to model=imac-intel).
I am on an intel imac. Also I wanted to mention that I have manged to
get hold of the pin configs supplied by apple for windows for all
apple systems. I mailed them last month to the list. I don't honestly
know if they could be of any use to you. For example according to them
for my codec subsystem's the pin config is:
[HKR\Settings\Pin\0A]
CfgDflt = dword: 0x0121E21F
Action = hex: 01,0A,81,0C,81,10,85,51,05,21
[HKR\Settings\Pin\0B]
CfgDflt = dword: 0x90A7012E
[HKR\Settings\Pin\0C]
CfgDflt = dword: 0x9017E110
[HKR\Settings\Pin\0D]
CfgDflt = dword: 0x400000FD
[HKR\Settings\Pin\0E]
CfgDflt = dword: 0x400000FE
Action = hex: 01,10,81,0A,81,0C
[HKR\Settings\Pin\0F]
CfgDflt = dword: 0x0181E020
Action = hex: 09,0F
[HKR\Settings\Pin\10]
CfgDflt = dword: 0x1145E230
[HKR\Settings\Pin\11]
CfgDflt = dword: 0x11C5E240
[HKR\Settings\Pin\15]
CfgDflt = dword: 0x400000FC
[HKR\Settings\Pin\1B]
CfgDflt = dword: 0x400000FB
[HKR\Settings\GPIO]
00 = hex: 85
01 = hex: 82
This in comparison to the current imac-intel pinconfig
static unsigned int imac_intel_pin_configs[10] = {
0x0121e230, 0x90a70120, 0x9017e110, 0x400000fe,
0x400000fd, 0x0181e021, 0x1145e040, 0x400000fa,
0x400000fc, 0x400000fb,
};
My mail on the archive with the pinconfigs is
http://mailman.alsa-project.org/pipermail/alsa-devel/2007-April/000731.html
I have tried using this pinconfig with rc4 and the input is set okay,
but I still need to set capture to 0. A major issue is that there is
no sound with this pinconfig. This is the output of modprobe:
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:1795:
hda_codec: model 'imac-intel' is selected
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2270:
autoconfig: line_outs=0 (0x0/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2274:
speaker_outs=1 (0xc/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2278:
hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2286:
inputs: mic=0xb, fmic=0x0, line=0xf, fline=0x0, cd=0x0, aux=0x0
17 - AC_PINCTL_VREF_80
17 - AC_PINCTL_VREF_80
I have attached the initial codec info after modprobing with the
pinconfig from apple.
> What happens if you use different values for "Capture Volume" and
> "Capture Mux Volume"?
There seems to be a proportional dependancy. If I increase caption vol
by 1 and lower capture mux vol by 1 it will record (not 100% sure on
the 1 to 1 factor here).
Else, recording doesn't work if I change capture volume to something >
0. This is the change in the codec:
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
- Amp-In vals: [0x00 0x00]
+ Amp-In vals: [0x0e 0x0e]
Connection: 1
0x12
I can provide you a root ssh account on the machine if you want?
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
[-- Attachment #2: codec-apple-pinconfig --]
[-- Type: application/octet-stream, Size: 4401 bytes --]
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b1700
Revision Id: 0x103401
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=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Connection: 1
0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x0121e21f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x90a7012e: [Fixed] Mic at Int N/A
Conn = Analog, Color = Unknown
Pin-ctls: 0x24: IN
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White
Pin-ctls: 0x00:
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0824: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect
Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0x20: IN
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x1145e230: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 3
0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN EAPD Detect
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15* 0x0f 0x0b 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Connection: 1
0x1a
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-15 17:11 ` Ivan N. Zlatev
@ 2007-05-15 17:23 ` Ivan N. Zlatev
2007-05-18 17:12 ` Takashi Iwai
1 sibling, 0 replies; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-15 17:23 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
On 5/15/07, Ivan N. Zlatev <contact@i-nz.net> wrote:
>
> I have tried using this pinconfig with rc4 and the input is set okay,
> but I still need to set capture to 0.
Actually wrong. I still have to change from mic to line and back.
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-15 17:11 ` Ivan N. Zlatev
2007-05-15 17:23 ` Ivan N. Zlatev
@ 2007-05-18 17:12 ` Takashi Iwai
2007-05-19 20:28 ` Ivan N. Zlatev
1 sibling, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2007-05-18 17:12 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Tue, 15 May 2007 18:11:58 +0100,
Ivan N. Zlatev wrote:
>
> I was wrong about _vref. Output %X of pincap and returned vref as
> follows on modprobe:
>
> hda_codec: STAC922x, Apple subsys_id=106b1700
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2270:
> autoconfig: line_outs=1 (0xd/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2274:
> speaker_outs=1 (0xc/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2278:
> hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2286:
> inputs: mic=0xb, fmic=0xe, line=0xf, fline=0x0, cd=0x0, aux=0x0
> 17 - AC_PINCTL_VREF_80
> 0 - AC_PINCTL_VREF_0
> 17 - AC_PINCTL_VREF_80
Hmm, what is the second call with the number 0?
> > Could you check the connection of node 0x12 at the very beginning?
> > I guess it's not 0x0b.
>
> Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
> Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
> Amp-Out vals: [0x00 0x00]
> Connection: 7
> 0x0e* 0x15 0x0f 0x0b 0x0c 0x0d 0x0a
>
> > Then try to add model=macbook or model=macbook-pro-v2. Now iMac has
> > its own pin setting (corresponding to model=imac-intel).
>
> I am on an intel imac. Also I wanted to mention that I have manged to
> get hold of the pin configs supplied by apple for windows for all
> apple systems. I mailed them last month to the list. I don't honestly
> know if they could be of any use to you. For example according to them
> for my codec subsystem's the pin config is:
>
> [HKR\Settings\Pin\0A]
> CfgDflt = dword: 0x0121E21F
> Action = hex: 01,0A,81,0C,81,10,85,51,05,21
> [HKR\Settings\Pin\0B]
> CfgDflt = dword: 0x90A7012E
> [HKR\Settings\Pin\0C]
> CfgDflt = dword: 0x9017E110
> [HKR\Settings\Pin\0D]
> CfgDflt = dword: 0x400000FD
> [HKR\Settings\Pin\0E]
> CfgDflt = dword: 0x400000FE
> Action = hex: 01,10,81,0A,81,0C
> [HKR\Settings\Pin\0F]
> CfgDflt = dword: 0x0181E020
> Action = hex: 09,0F
> [HKR\Settings\Pin\10]
> CfgDflt = dword: 0x1145E230
> [HKR\Settings\Pin\11]
> CfgDflt = dword: 0x11C5E240
> [HKR\Settings\Pin\15]
> CfgDflt = dword: 0x400000FC
> [HKR\Settings\Pin\1B]
> CfgDflt = dword: 0x400000FB
> [HKR\Settings\GPIO]
> 00 = hex: 85
> 01 = hex: 82
>
> This in comparison to the current imac-intel pinconfig
>
> static unsigned int imac_intel_pin_configs[10] = {
> 0x0121e230, 0x90a70120, 0x9017e110, 0x400000fe,
> 0x400000fd, 0x0181e021, 0x1145e040, 0x400000fa,
> 0x400000fc, 0x400000fb,
> };
>
> My mail on the archive with the pinconfigs is
> http://mailman.alsa-project.org/pipermail/alsa-devel/2007-April/000731.html
Oh, then please give a similar array expression instead of files.
It's so sucking to retrieve files from this ML archive and then doing
something what you already did...
> I have tried using this pinconfig with rc4 and the input is set okay,
> but I still need to set capture to 0. A major issue is that there is
> no sound with this pinconfig. This is the output of modprobe:
>
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:1795:
> hda_codec: model 'imac-intel' is selected
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2270:
> autoconfig: line_outs=0 (0x0/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2274:
> speaker_outs=1 (0xc/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2278:
> hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
> ALSA /root/tmp/alsa-driver-1.0.14rc4/pci/hda/hda_codec.c:2286:
> inputs: mic=0xb, fmic=0x0, line=0xf, fline=0x0, cd=0x0, aux=0x0
> 17 - AC_PINCTL_VREF_80
> 17 - AC_PINCTL_VREF_80
>
> I have attached the initial codec info after modprobing with the
> pinconfig from apple.
Which one? There are so many posts...
> > What happens if you use different values for "Capture Volume" and
> > "Capture Mux Volume"?
>
> There seems to be a proportional dependancy. If I increase caption vol
> by 1 and lower capture mux vol by 1 it will record (not 100% sure on
> the 1 to 1 factor here).
Wait - I thought that "Capture Mux Volume" is zero at initialization?
> Else, recording doesn't work if I change capture volume to something >
> 0. This is the change in the codec:
So, you mean that "Capture volume" must be zero?
> Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
> Amp-In caps: N/A
> - Amp-In vals: [0x00 0x00]
> + Amp-In vals: [0x0e 0x0e]
> Connection: 1
> 0x12
Is this the non-working state?
I'm puzzled now...
OK, let's make things straight. To make the things clear, please
attach the codec info file at each state. The step is like below:
- Build the latest driver with your pingconfig patch.
- Unload the driver module.
- Remove /etc/asound.state (or whatever alsactl stores -- the path is
depending on distro)
- Load the module again; at this state, mixers are muted
- Get the first codec dump here once
- Unmute the playbacks as usual. Check playback.
- Turn on only "Capture Switch". Don't adjust "Capture Volume" and
"Mux Capture Volume" if they are zero.
Test recording once here. Get codec dump again.
- If not working, try resetting the input source.
Test recording. Get codec dump.
- Raise "Capture Volume". Test recording, get codec dump.
- Raise "Mux Capture Volume". Test recording, get codec dump.
- If still not working, tune as you like. Then get codec dump.
Either attach each codec dump as it is, or make diff incrementally so
that we can follow the codec register changes, too.
thanks,
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-18 17:12 ` Takashi Iwai
@ 2007-05-19 20:28 ` Ivan N. Zlatev
2007-05-19 21:23 ` Ivan N. Zlatev
0 siblings, 1 reply; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-19 20:28 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2242 bytes --]
> - Build the latest driver with your pingconfig patch.
Patch, which adds an "intel-imac-20" pinconfig attached.
> - Unload the driver module.
> - Remove /etc/asound.state (or whatever alsactl stores -- the path is
> depending on distro)
> - Load the module again; at this state, mixers are muted
> - Get the first codec dump here once
initial-codec attached.
> - Unmute the playbacks as usual. Check playback.
Playback works.
> - Turn on only "Capture Switch". Don't adjust "Capture Volume" and
> "Mux Capture Volume" if they are zero.
> Test recording once here. Get codec dump again.
Recording doesn't work. Codec diff:
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0x7f 0x7f]
+ Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0x7f 0x7f]
+ Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0x7f 0x7f]
+ Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0x7f 0x7f]
+ Amp-Out vals: [0xff 0xff]
Power: 0x0
> - If not working, try resetting the input source.
> Test recording. Get codec dump.
Reseting the input source doesn't result a difference in the codec
info and recording still doesn't work.
> - Raise "Capture Volume". Test recording, get codec dump.
After this recording works! Woho! :-)
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
- Amp-In vals: [0x0e 0x0e]
+ Amp-In vals: [0x00 0x00]
Connection: 1
0x12
> - Raise "Mux Capture Volume". Test recording, get codec dump.
For the sake of the test I have also umuted and increased Mux, which
results the following diff and a non-working recording
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
- Amp-Out vals: [0x04 0x04]
+ Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Regards.
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
[-- Attachment #2: initial-codec --]
[-- Type: application/octet-stream, Size: 4401 bytes --]
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b1700
Revision Id: 0x103401
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=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Connection: 1
0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x0121e21f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x90a7012e: [Fixed] Mic at Int N/A
Conn = Analog, Color = Unknown
Pin-ctls: 0x24: IN
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White
Pin-ctls: 0x00:
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0824: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect
Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0x20: IN
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x1145e230: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 3
0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN EAPD Detect
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Connection: 1
0x1a
[-- Attachment #3: imac20_alsa.patch --]
[-- Type: text/x-diff, Size: 1611 bytes --]
diff -r be73500bd42a pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c Sat May 19 17:21:04 2007 +0200
+++ b/pci/hda/patch_sigmatel.c Fri May 18 20:48:01 2007 +0100
@@ -64,6 +64,7 @@ enum {
STAC_MACBOOK_PRO_V1,
STAC_MACBOOK_PRO_V2,
STAC_IMAC_INTEL,
+ STAC_IMAC_INTEL_20,
STAC_922X_MODELS
};
@@ -567,6 +568,12 @@ static unsigned int imac_intel_pin_confi
0x400000fc, 0x400000fb,
};
+static unsigned int imac_intel_20_pin_configs[10] = {
+ 0x0121E21F, 0x90A7012E, 0x9017E110, 0x400000FD,
+ 0x400000FE, 0x0181E020, 0x1145E230, 0x11C5E240,
+ 0x400000FC, 0x400000FB,
+};
+
static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
[STAC_D945_REF] = ref922x_pin_configs,
[STAC_D945GTP3] = d945gtp3_pin_configs,
@@ -576,6 +583,7 @@ static unsigned int *stac922x_brd_tbl[ST
[STAC_MACBOOK_PRO_V1] = macbook_pro_v1_pin_configs,
[STAC_MACBOOK_PRO_V2] = macbook_pro_v2_pin_configs,
[STAC_IMAC_INTEL] = imac_intel_pin_configs,
+ [STAC_IMAC_INTEL_20] = imac_intel_20_pin_configs,
};
static const char *stac922x_models[STAC_922X_MODELS] = {
@@ -587,6 +595,7 @@ static const char *stac922x_models[STAC_
[STAC_MACBOOK_PRO_V1] = "macbook-pro-v1",
[STAC_MACBOOK_PRO_V2] = "macbook-pro",
[STAC_IMAC_INTEL] = "imac-intel",
+ [STAC_IMAC_INTEL_20] = "imac-intel-20",
};
static struct snd_pci_quirk stac922x_cfg_tbl[] = {
@@ -2022,6 +2031,9 @@ static int patch_stac922x(struct hda_cod
case 0x106b0700: /* Intel-based iMac */
spec->board_config = STAC_IMAC_INTEL;
break;
+ case 0x106b1700: /* Intel iMac 20 */
+ spec->board_config = STAC_IMAC_INTEL_20;
+ break;
}
}
[-- Attachment #4: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Strange findings about the microphone in SigmaTel STAC9221 A1
2007-05-19 20:28 ` Ivan N. Zlatev
@ 2007-05-19 21:23 ` Ivan N. Zlatev
0 siblings, 0 replies; 9+ messages in thread
From: Ivan N. Zlatev @ 2007-05-19 21:23 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2552 bytes --]
Please appologise me for making the diffs the wrong way round. Below
you will find the information corrected.
Also one addition thing I just found out is that it even with capture
volume on max the recorded volume is *very* low. This problem seems
not to be present with the auto-config from alsa rc4.
> - Build the latest driver with your pingconfig patch.
Patch, which adds an "intel-imac-20" pinconfig attached.
> - Unload the driver module.
> - Remove /etc/asound.state (or whatever alsactl stores -- the path is
> depending on distro)
> - Load the module again; at this state, mixers are muted
> - Get the first codec dump here once
initial-codec attached.
> - Unmute the playbacks as usual. Check playback.
Playback works.
> - Turn on only "Capture Switch". Don't adjust "Capture Volume" and
> "Mux Capture Volume" if they are zero.
> Test recording once here. Get codec dump again.
Recording doesn't work. Codec diff:
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0xff 0xff]
+ Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0xff 0xff]
+ Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0xff 0xff]
+ Amp-Out vals: [0x7f 0x7f]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
- Amp-Out vals: [0xff 0xff]
+ Amp-Out vals: [0x7f 0x7f]
Power: 0x0
> - If not working, try resetting the input source.
> Test recording. Get codec dump.
Reseting the input source doesn't result a difference in the codec
info and recording still doesn't work.
> - Raise "Capture Volume". Test recording, get codec dump.
After this recording works! Woho! :-)
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
- Amp-In vals: [0x00 0x00]
+ Amp-In vals: [0x0e 0x0e]
Connection: 1
0x12
> - Raise "Mux Capture Volume". Test recording, get codec dump.
For the sake of the test I have also umuted and increased Mux, which
results the following diff and a non-working recording
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
- Amp-Out vals: [0x00 0x00]
+ Amp-Out vals: [0x04 0x04]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Regards.
- Show quoted text -
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
[-- Attachment #2: imac20_alsa.patch --]
[-- Type: text/x-diff, Size: 1611 bytes --]
diff -r be73500bd42a pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c Sat May 19 17:21:04 2007 +0200
+++ b/pci/hda/patch_sigmatel.c Fri May 18 20:48:01 2007 +0100
@@ -64,6 +64,7 @@ enum {
STAC_MACBOOK_PRO_V1,
STAC_MACBOOK_PRO_V2,
STAC_IMAC_INTEL,
+ STAC_IMAC_INTEL_20,
STAC_922X_MODELS
};
@@ -567,6 +568,12 @@ static unsigned int imac_intel_pin_confi
0x400000fc, 0x400000fb,
};
+static unsigned int imac_intel_20_pin_configs[10] = {
+ 0x0121E21F, 0x90A7012E, 0x9017E110, 0x400000FD,
+ 0x400000FE, 0x0181E020, 0x1145E230, 0x11C5E240,
+ 0x400000FC, 0x400000FB,
+};
+
static unsigned int *stac922x_brd_tbl[STAC_922X_MODELS] = {
[STAC_D945_REF] = ref922x_pin_configs,
[STAC_D945GTP3] = d945gtp3_pin_configs,
@@ -576,6 +583,7 @@ static unsigned int *stac922x_brd_tbl[ST
[STAC_MACBOOK_PRO_V1] = macbook_pro_v1_pin_configs,
[STAC_MACBOOK_PRO_V2] = macbook_pro_v2_pin_configs,
[STAC_IMAC_INTEL] = imac_intel_pin_configs,
+ [STAC_IMAC_INTEL_20] = imac_intel_20_pin_configs,
};
static const char *stac922x_models[STAC_922X_MODELS] = {
@@ -587,6 +595,7 @@ static const char *stac922x_models[STAC_
[STAC_MACBOOK_PRO_V1] = "macbook-pro-v1",
[STAC_MACBOOK_PRO_V2] = "macbook-pro",
[STAC_IMAC_INTEL] = "imac-intel",
+ [STAC_IMAC_INTEL_20] = "imac-intel-20",
};
static struct snd_pci_quirk stac922x_cfg_tbl[] = {
@@ -2022,6 +2031,9 @@ static int patch_stac922x(struct hda_cod
case 0x106b0700: /* Intel-based iMac */
spec->board_config = STAC_IMAC_INTEL;
break;
+ case 0x106b1700: /* Intel iMac 20 */
+ spec->board_config = STAC_IMAC_INTEL_20;
+ break;
}
}
[-- Attachment #3: initial-codec --]
[-- Type: application/octet-stream, Size: 4401 bytes --]
Codec: SigmaTel STAC9221 A1
Address: 0
Vendor Id: 0x83847680
Subsystem Id: 0x106b1700
Revision Id: 0x103401
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=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out
Amp-Out caps: N/A
Amp-Out vals: [0xff 0xff]
Power: 0x0
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x17
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
Power: 0x0
Connection: 1
0x18
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
PCM:
rates [0x7e0]: 44100 48000 88200 96000 176400 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Connection: 1
0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x0121e21f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0xc0: OUT HP
Connection: 1
0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x90a7012e: [Fixed] Mic at Int N/A
Conn = Analog, Color = Unknown
Pin-ctls: 0x24: IN
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x081737: IN OUT Detect
Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
Conn = Analog, Color = White
Pin-ctls: 0x00:
Connection: 1
0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x08173f: IN OUT HP Detect
Pin Default 0x400000fd: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x40: OUT
Connection: 1
0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
Pincap 0x0824: IN Detect
Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x20: IN
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
Pincap 0x0837: IN OUT Detect
Pin Default 0x0181e020: [Jack] Line In at Ext Rear
Conn = 1/8, Color = White
Pin-ctls: 0x20: IN
Connection: 1
0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x1145e230: [Jack] SPDIF Out at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x40: OUT
Connection: 3
0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
Pincap 0x0810024: IN EAPD Detect
Pin Default 0x11c5e240: [Jack] SPDIF In at Int Rear
Conn = Optical, Color = White
Pin-ctls: 0x20: IN
Power: 0x0
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
Amp-Out vals: [0x00 0x00]
Connection: 7
0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
Pincap 0x0820: IN
Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In
Amp-In caps: N/A
Amp-In vals: [0x80 0x80]
Connection: 1
0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
Pincap 0x0810: OUT
Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
Pin-ctls: 0x00:
Connection: 1
0x1a
[-- Attachment #4: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-05-19 21:23 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-11 9:48 Strange findings about the microphone in SigmaTel STAC9221 A1 Ivan N. Zlatev
2007-05-15 12:26 ` Takashi Iwai
2007-05-15 14:41 ` Ivan N. Zlatev
2007-05-15 15:06 ` Takashi Iwai
2007-05-15 17:11 ` Ivan N. Zlatev
2007-05-15 17:23 ` Ivan N. Zlatev
2007-05-18 17:12 ` Takashi Iwai
2007-05-19 20:28 ` Ivan N. Zlatev
2007-05-19 21:23 ` Ivan N. Zlatev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.