* Intel HD SigmaTel STAC9221 - Wrong input after output change
@ 2007-05-27 22:33 Ivan N. Zlatev
2007-05-29 15:06 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Ivan N. Zlatev @ 2007-05-27 22:33 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 2246 bytes --]
Hello,
I am on an iMac ("*imac-20" model/pinconfig) with a Intel HD card with
the SigmaTel STAC9221 codec. I have attached the inital codec info
after modprobe. When I plug in and then unplug my speakers the
microphone stops working. Reproduction steps with codec dump diffs as
follows
1) Initial codec info - attached - Microphone working
2) Plug in speakers - Microphone working
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:
+ Pin-ctls: 0x40: OUT
Connection: 1
0x03
3) Unplug speakers - Microphone not working
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: 0x44: OUT
+ Pin-ctls: 0x04:
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: 0x40: OUT
+ Pin-ctls: 0x00:
Connection: 1
0x03
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: 0x40: OUT
+ Pin-ctls: 0x00:
Connection: 1
0x05
4) Plug in speakers again - Microphone not working
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: 0x04:
+ Pin-ctls: 0x44: OUT
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:
+ Pin-ctls: 0x40: OUT
Connection: 1
0x03
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: 0x00:
+ Pin-ctls: 0x40: OUT
Connection: 1
0x05
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
[-- Attachment #2: codec-info --]
[-- Type: application/octet-stream, Size: 4405 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: [0x5b 0x5b]
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: 0x40: OUT
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: [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 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] 5+ messages in thread
* Re: Intel HD SigmaTel STAC9221 - Wrong input after output change
2007-05-27 22:33 Intel HD SigmaTel STAC9221 - Wrong input after output change Ivan N. Zlatev
@ 2007-05-29 15:06 ` Takashi Iwai
2007-05-29 15:30 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2007-05-29 15:06 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Sun, 27 May 2007 23:33:27 +0100,
Ivan N. Zlatev wrote:
>
> Hello,
>
> I am on an iMac ("*imac-20" model/pinconfig) with a Intel HD card with
> the SigmaTel STAC9221 codec. I have attached the inital codec info
> after modprobe. When I plug in and then unplug my speakers the
> microphone stops working. Reproduction steps with codec dump diffs as
> follows
I guess you can restore the status via toggling "Line In as Output
Switch" and "Mic as Output Switch" mixer elements. The problem looks
like the unsolicited event handling. It doesn't cope with the shared
input jacks well.
Takashi
>
>
> 1) Initial codec info - attached - Microphone working
>
> 2) Plug in speakers - Microphone working
>
> 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:
> + Pin-ctls: 0x40: OUT
> Connection: 1
> 0x03
>
>
> 3) Unplug speakers - Microphone not working
>
> 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: 0x44: OUT
> + Pin-ctls: 0x04:
> 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: 0x40: OUT
> + Pin-ctls: 0x00:
> Connection: 1
> 0x03
> 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: 0x40: OUT
> + Pin-ctls: 0x00:
> Connection: 1
> 0x05
>
>
> 4) Plug in speakers again - Microphone not working
>
> 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: 0x04:
> + Pin-ctls: 0x44: OUT
> 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:
> + Pin-ctls: 0x40: OUT
> Connection: 1
> 0x03
> 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: 0x00:
> + Pin-ctls: 0x40: OUT
> Connection: 1
> 0x05
>
> --
> Ivan N. Zlatev
>
> Web: http://www.i-nZ.net
> "It's all some kind of whacked out conspiracy."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel HD SigmaTel STAC9221 - Wrong input after output change
2007-05-29 15:06 ` Takashi Iwai
@ 2007-05-29 15:30 ` Takashi Iwai
2007-05-29 15:43 ` Ivan N. Zlatev
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2007-05-29 15:30 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Tue, 29 May 2007 17:06:05 +0200,
I wrote:
>
> At Sun, 27 May 2007 23:33:27 +0100,
> Ivan N. Zlatev wrote:
> >
> > Hello,
> >
> > I am on an iMac ("*imac-20" model/pinconfig) with a Intel HD card with
> > the SigmaTel STAC9221 codec. I have attached the inital codec info
> > after modprobe. When I plug in and then unplug my speakers the
> > microphone stops working. Reproduction steps with codec dump diffs as
> > follows
>
> I guess you can restore the status via toggling "Line In as Output
> Switch" and "Mic as Output Switch" mixer elements. The problem looks
> like the unsolicited event handling. It doesn't cope with the shared
> input jacks well.
In case my guess is correct, the patch below should fix the problem.
Give it a try.
Takashi
diff -r ff3ed7049f84 pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c Tue May 29 16:03:00 2007 +0200
+++ b/pci/hda/patch_sigmatel.c Tue May 29 17:25:52 2007 +0200
@@ -1797,6 +1797,21 @@ static void stac92xx_set_pinctl(struct h
unsigned int pin_ctl = snd_hda_codec_read(codec, nid,
0, AC_VERB_GET_PIN_WIDGET_CONTROL, 0x00);
+ if (pin_ctl & AC_PINCTL_IN_EN) {
+ /*
+ * we need to check the current set-up direction of
+ * shared input pins since they can be switched via
+ * "xxx as Output" mixer switch
+ */
+ struct sigmatel_spec *spec = codec->spec;
+ struct auto_pin_cfg *cfg = &spec->autocfg;
+ if ((nid == cfg->input_pins[AUTO_PIN_LINE] &&
+ spec->line_switch) ||
+ (nid == cfg->input_pins[AUTO_PIN_MIC] &&
+ spec->mic_switch))
+ return;
+ }
+
/* if setting pin direction bits, clear the current
direction bits first */
if (flag & (AC_PINCTL_IN_EN | AC_PINCTL_OUT_EN))
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel HD SigmaTel STAC9221 - Wrong input after output change
2007-05-29 15:30 ` Takashi Iwai
@ 2007-05-29 15:43 ` Ivan N. Zlatev
2007-05-29 16:02 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Ivan N. Zlatev @ 2007-05-29 15:43 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai
On 5/29/07, Takashi Iwai <tiwai@suse.de> wrote:
> At Tue, 29 May 2007 17:06:05 +0200,
> I wrote:
> >
> > At Sun, 27 May 2007 23:33:27 +0100,
> > Ivan N. Zlatev wrote:
> > >
> > > Hello,
> > >
> > > I am on an iMac ("*imac-20" model/pinconfig) with a Intel HD card with
> > > the SigmaTel STAC9221 codec. I have attached the inital codec info
> > > after modprobe. When I plug in and then unplug my speakers the
> > > microphone stops working. Reproduction steps with codec dump diffs as
> > > follows
> >
> > I guess you can restore the status via toggling "Line In as Output
> > Switch" and "Mic as Output Switch" mixer elements. The problem looks
> > like the unsolicited event handling. It doesn't cope with the shared
> > input jacks well.
>
> In case my guess is correct, the patch below should fix the problem.
> Give it a try.
>
*Thumbs up!* Works, thanks!
--
Ivan N. Zlatev
Web: http://www.i-nZ.net
"It's all some kind of whacked out conspiracy."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel HD SigmaTel STAC9221 - Wrong input after output change
2007-05-29 15:43 ` Ivan N. Zlatev
@ 2007-05-29 16:02 ` Takashi Iwai
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2007-05-29 16:02 UTC (permalink / raw)
To: Ivan N. Zlatev; +Cc: alsa-devel
At Tue, 29 May 2007 16:43:37 +0100,
Ivan N. Zlatev wrote:
>
> On 5/29/07, Takashi Iwai <tiwai@suse.de> wrote:
> > At Tue, 29 May 2007 17:06:05 +0200,
> > I wrote:
> > >
> > > At Sun, 27 May 2007 23:33:27 +0100,
> > > Ivan N. Zlatev wrote:
> > > >
> > > > Hello,
> > > >
> > > > I am on an iMac ("*imac-20" model/pinconfig) with a Intel HD card with
> > > > the SigmaTel STAC9221 codec. I have attached the inital codec info
> > > > after modprobe. When I plug in and then unplug my speakers the
> > > > microphone stops working. Reproduction steps with codec dump diffs as
> > > > follows
> > >
> > > I guess you can restore the status via toggling "Line In as Output
> > > Switch" and "Mic as Output Switch" mixer elements. The problem looks
> > > like the unsolicited event handling. It doesn't cope with the shared
> > > input jacks well.
> >
> > In case my guess is correct, the patch below should fix the problem.
> > Give it a try.
> >
>
> *Thumbs up!* Works, thanks!
Glad to hear. I committed to ALSA tree now.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-29 16:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-27 22:33 Intel HD SigmaTel STAC9221 - Wrong input after output change Ivan N. Zlatev
2007-05-29 15:06 ` Takashi Iwai
2007-05-29 15:30 ` Takashi Iwai
2007-05-29 15:43 ` Ivan N. Zlatev
2007-05-29 16:02 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).