Skip to contentSkip to conversation

Thinkpad T400 - internal mic doesn't work, can't set CAPTURE - schematics included

DISCUSSION Arkadiusz Miśkiewicz 3 participants 6 messages Feb 27, 2013 – Mar 1, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE on microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones out output and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400 schematic available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today but it dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba, ideapad, auto. None of these work fine. With model=hp-700 I can set CAPTURE but it doesn't work (silent audio is captured using arecord or in google hangout). External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca7
[3.8 kernel]

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b0
[3.7 kernel]

Thinkpad is 2764CTO model exactly.

I can test various hacks, patches etc easily. Could someone look at schematic and provide quirks to test?

Thanks!

Signature · 5 lines
Arkadiusz Miśkiewicz, arekm / maven.pl
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#1 lore raw
Quoted 26 lines · Arkadiusz Miśkiewicz

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE on microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones out output and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400 schematic available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today but it dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba, ideapad, auto. None of these work fine. With model=hp-700 I can set CAPTURE but it doesn't work (silent audio is captured using arecord or in google hangout). External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca7
[3.8 kernel]

Quoted 7 lines

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b0
[3.7 kernel]

Thinkpad is 2764CTO model exactly.

I can test various hacks, patches etc easily. Could someone look at schematic and provide quirks to test?

Hi,

What do you mean with "doesn't have ability to set CAPTURE"? What input is used is automatically selected depending on what you have plugged in, and its level is set using mixer controls (which in your alsa-info is set to minimum levels).

Signature · 6 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw
Quoted 29 lines · David Henningsson
Quoted 28 lines · Arkadiusz Miśkiewicz

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE on microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones out output and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400 schematic available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today but it dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba, ideapad, auto. None of these work fine. With model=hp-700 I can set CAPTURE but it doesn't work (silent audio is captured using arecord or in google hangout). External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca
7 [3.8 kernel]

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b
0 [3.7 kernel]

Quoted 8 lines
Quoted 4 lines

Thinkpad is 2764CTO model exactly.

I can test various hacks, patches etc easily. Could someone look at schematic and provide quirks to test?

Hi,

What do you mean with "doesn't have ability to set CAPTURE"?

On some other notebook I had mic input that I could set to CAPTURE mode using space in alsamixer F4: Capture menu. Here I can't set capture on any of inputs (pressing space causes no change).

Quoted 4 lines

What input
is used is automatically selected depending on what you have plugged in, and its level is set using mixer controls (which in your alsa-info is set to minimum levels).

There are two jack sockets in this laptop, one with headphones icon and other with mic icon (on the laptop case itself) as on this photo:
http://www.notebookreview.com/shared/picture.asp?f=42200

Ok... maxing all mixer controls and connecting external microphone I get external mic being recorded. The mixer controls that seem to be working in such mode are: "Mic", "Mic boost" and "Digital". What's weird is that when "Digitial" is set to 0 then no sound from microphone is being recorded (testing with arecord -f cd | aplay). The "Mic" and "Mic boost" seems to work as expectedf. Question: why "Digital" has any influence here?

Unfortunately I'm unable to get internal microphone working at all. Even with all outputs set to maximum like this:

http://www.alsa-project.org/db/?f=9a7e1ca68b2f2fa2f77dce6ead2b5fb158b74652

Internal mic is my primary problem.

Thanks!

Signature · 5 lines
Arkadiusz Miśkiewicz, arekm / maven.pl
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#3 lore raw
Quoted 35 lines · Arkadiusz Miśkiewicz
Quoted 34 lines · David Henningsson
Quoted 32 lines · Arkadiusz Miśkiewicz

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE on microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones out output and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400 schematic available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today but it dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba, ideapad, auto. None of these work fine. With model=hp-700 I can set CAPTURE but it doesn't work (silent audio is captured using arecord or in google hangout). External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca
7 [3.8 kernel]

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b
0 [3.7 kernel]

Thinkpad is 2764CTO model exactly.

I can test various hacks, patches etc easily. Could someone look at schematic and provide quirks to test?

Quoted 7 lines
Quoted 3 lines

Hi,

What do you mean with "doesn't have ability to set CAPTURE"?

On some other notebook I had mic input that I could set to CAPTURE mode using space in alsamixer F4: Capture menu. Here I can't set capture on any of inputs (pressing space causes no change).

We're increasingly moving away from manual input selection to automatic based on what is plugged in.

Quoted 16 lines
Quoted 4 lines

What input
is used is automatically selected depending on what you have plugged in, and its level is set using mixer controls (which in your alsa-info is set to minimum levels).

There are two jack sockets in this laptop, one with headphones icon and other with mic icon (on the laptop case itself) as on this photo:
http://www.notebookreview.com/shared/picture.asp?f=42200

Ok... maxing all mixer controls and connecting external microphone I get external mic being recorded. The mixer controls that seem to be working in such mode are: "Mic", "Mic boost" and "Digital". What's weird is that when "Digitial" is set to 0 then no sound from microphone is being recorded (testing with arecord -f cd | aplay). The "Mic" and "Mic boost" seems to work as expectedf. Question: why "Digital" has any influence here?

Quoted 6 lines

Unfortunately I'm unable to get internal microphone working at all. Even with all outputs set to maximum like this:

http://www.alsa-project.org/db/?f=9a7e1ca68b2f2fa2f77dce6ead2b5fb158b74652

Internal mic is my primary problem.

From a quick look at the alsa-info things look fine, so I don't know what has happened here. Is it a regression from an older kernel, or did it never work?

Signature · 6 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#4 lore raw
In reply to Arkadiusz Miśkiewicz

2013-3-1 上午1:23 於 "Arkadiusz Miśkiewicz" <[email protected]> 寫道:

Quoted 6 lines · David Henningsson
Quoted 4 lines · Arkadiusz Miśkiewicz
Quoted 3 lines

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE

on

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones

out

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

output and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400 schematic available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today

but

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

it dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba,

ideapad,

Quoted 1 line
Quoted 1 line
Quoted 1 line

auto. None of these work fine. With model=hp-700 I can set CAPTURE

but it

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

doesn't work (silent audio is captured using arecord or in google hangout). External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

7 [3.8 kernel]

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

0 [3.7 kernel]

Thinkpad is 2764CTO model exactly.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

I can test various hacks, patches etc easily. Could someone look at schematic and provide quirks to test?

Hi,

What do you mean with "doesn't have ability to set CAPTURE"?

On some other notebook I had mic input that I could set to CAPTURE mode

using

Quoted 1 line

space in alsamixer F4: Capture menu. Here I can't set capture on any of

inputs

Quoted 8 lines

(pressing space causes no change).

Quoted 4 lines

What input
is used is automatically selected depending on what you have plugged in, and its level is set using mixer controls (which in your alsa-info is set to minimum levels).

There are two jack sockets in this laptop, one with headphones icon and

other

Quoted 8 lines

with mic icon (on the laptop case itself) as on this photo:
http://www.notebookreview.com/shared/picture.asp?f=42200

Ok... maxing all mixer controls and connecting external microphone I get external mic being recorded. The mixer controls that seem to be working in such mode are: "Mic", "Mic boost" and "Digital". What's weird is that when "Digitial" is set to 0 then no sound from microphone is being recorded (testing with arecord -f cd | aplay). The "Mic" and "Mic boost" seems to

work

Quoted 3 lines

as expectedf. Question: why "Digital" has any influence here?

Unfortunately I'm unable to get internal microphone working at all. Even

with

Quoted 6 lines

all outputs set to maximum like this:

http://www.alsa-project.org/db/?f=9a7e1ca68b2f2fa2f77dce6ead2b5fb158b74652

Internal mic is my primary problem.

Do you mean dynamic adc switch does not work as expected or "Dock mic capture volume" and "internal Michael capture volume" controls cannot share the same amp in ?

Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Control: name="Dock Mic Capture Volume", index=0, device=0

    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Internal Mic Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="CONEXANT Analog", type="Audio", device=0
  Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=0
  Amp-In vals:  [0x50 0x50] [0x50 0x50]
  Converter: stream=4, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 2
     0x1d* 0x17
Node 0x15 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
  Control: name="Mic Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=0
  Amp-In vals:  [0x50 0x50]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3
  Power: setting=D0, actual=D0
  Connection: 1
     0x18

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

#5 lore raw
In reply to Arkadiusz Miśkiewicz

2013-2-28 上午1:58 於 "Arkadiusz Miśkiewicz" <[email protected]> 寫道:

Quoted 8 lines

Hi,

My Thinkpad T400 (2764CTO model) doesn't have ability to set CAPTURE on microphone inputs with alsa. Most likely some quirk is missing.

The laptop has internal microphone, microphone in input, headphones out

output

Quoted 3 lines

and 2 internal speakers. That's all.

Is uses Conexant CX20561_15Z internally and there is detailed T400

schematic

Quoted 6 lines

available:
http://kythuatphancung.com/download/lenovo-thinkpad-t400-schematic-
diagram.html?dl
(for audio look around page 43).

Kernels 3.7.x, fresh 3.8 - no luck. Tried even linux-next from today but

it

Quoted 5 lines

dies early on alsa unrelated issues.

I've tried model options laptop, hp, hp-dv6736, hp-700, toshiba, ideapad, auto. None of these work fine. With model=hp-700 I can set CAPTURE but it doesn't work (silent audio is captured using arecord or in google

hangout).

Quoted 11 lines

External mic connected also doesn't work with these setups.

http://www.alsa-project.org/db/?f=394ff4cdca33e75c8a47203d42b89d8de36deca7
[3.8 kernel]

http://www.alsa-project.org/db/?f=302877e50f99835075d038207f6db0dfd89873b0
[3.7 kernel]

Thinkpad is 2764CTO model exactly.

I can test various hacks, patches etc easily. Could someone look at

schematic

Quoted 2 lines

and provide quirks to test?

Seem those driver pin config lost in hda_proc.c

/sys/class/sound/hwC0D0/driver_pin_configs:
0x16 0x042140ff
0x17 0x21a11000
0x19 0x2121103f
0x1c 0x21440100

Node 0x17 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
Control: name="Dock Mic Boost Volume", index=0, device=0

    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Dock Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001224: IN Detect
    Vref caps: 50 80

Pin Default 0x61a190f0: [N/A] Mic at Sep Rear
Conn = 1/8, Color = Pink
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=04, enabled=1
Power states: D0 D1 D2 D3
Power: setting=D0, actual=D0

Node 0x19 [Pin Complex] wcaps 0x400581: Stereo
Control: name="Dock Headphone Jack", index=0, device=0 Pincap 0x00000014: OUT Detect
Pin Default 0x40f000f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=01, enabled=1
Power states: D0 D1 D2 D3
Power: setting=D0, actual=D0
Connection: 2

     0x10 0x11*

Node 0x1c [Pin Complex] wcaps 0x400701: Stereo Digital
Control: name="SPDIF Phantom Jack", index=0, device=0 Pincap 0x00000010: OUT
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Power states: D0 D1 D2 D3
Power: setting=D0, actual=D0
Connection: 1

     0x12

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