You are not logged in.

#1 2020-03-20 18:16:58

cogeary
Member
Registered: 2012-09-16
Posts: 20

Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

The mic on the Lenovo Thinkpad X1 Carbon Gen 5 doesn't function out of box, and as far as I can remember, it hasn't for all of its lifetime. This is at least a similar issue as the one that has/had troubled the Gen 7 and a bunch of other devices; but in poring through the related sources, I'm not sure whether or not there is hope for getting it to work.

[1] Bugzilla report for audio device 9dc8 (as on Gen 7)
[2] Old forum thread working through the Gen 7 problem, with a couple different hacky solutions for different versions of kernel, sof-firmware, pulseaudio, etc.
[3] Wiki talk that seems to indicate the issue resolving for Gen 7.

The audio controller on this device is:

$ lspci -nn | grep Audio
00:1f.3 Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d71] (rev 21)

Given comment #123 of the bugzilla above, I had been under the impression at first that a solution for Gen 5 might be the same as for Gen 7. So with sof-firmware installed, I tried adding the following near the top of /etc/pulse/default.pa (just after .fail):

load-module module-alsa-sink device=hw:0,0
load-module module-alsa-source device=hw:0,6

Alas, no change. arecord output is the same as ever:

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

And perhaps not surprisingly, blacklisting snd_hda_intel, snd_soc_skl just resulted in no cards detected.

I'm not sure where to look now, and so would appreciate any suggestions or knowledge about this particular device. Reading through the bugzilla again I noticed comment #109, which was surprising at first (saying Kabylake isn't supported yet, so SOF won't work for 9d71). It seems this is still the case... so perhaps I was misguided in trying to get SOF to work here. Is there hope, or will I have to stick to the external mic for now?

(As you might expect, the issue is coming up again as social distancing/quarantine means a whole lot more video calls. Hope everyone is staying safe. Thanks)

Offline

#2 2020-03-21 02:10:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 9,074

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

What's the output of aplay -l? if what you posted is any indication you mixed up the source and sink. hw:0,0 should be source hw:0,6 the sink. I'm still of the opinion that you should use the workaround of renaming the ucm2 folder to ucm so that this line isn't necessary and pulse can generate profiles.

Last edited by V1del (2020-03-21 02:11:03)

Offline

#3 2020-03-21 03:02:57

cogeary
Member
Registered: 2012-09-16
Posts: 20

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

Thanks for this. I realize I didn't understand #88 well enough to see that the pulseaudio update mentioned was still an RC that hasn't made it to stable yet. I'll try the renaming suggestion soon as I can reboot. FWIW:

$ aplay -l          
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Just out of curiosity, makes you say the source/sink should be flipped? I can't say I have a great understanding of everything going on here, but am interested to know what I should be looking for. From this output is it right to say that e.g. hw:0,7 is an hdmi audio sink? But if so, what does it mean that card 0 device 0 is listed as both capture and playback?

Last edited by cogeary (2020-03-21 03:10:23)

Offline

#4 2020-03-21 03:13:57

cogeary
Member
Registered: 2012-09-16
Posts: 20

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

Update: copying ucm2 to ucm, sof-firmware installed, no other changes—doesn't seem to have changed anything.

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Not sure if any other logs would be helpful right now.

$ dmesg | grep snd
[    3.276789] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    3.379456] snd_hda_codec_conexant hdaudioC0D0: CX8200: BIOS auto-probing.
[    3.379962] snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX8200: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    3.379964] snd_hda_codec_conexant hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.379966] snd_hda_codec_conexant hdaudioC0D0:    hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
[    3.379968] snd_hda_codec_conexant hdaudioC0D0:    mono: mono_out=0x0
[    3.379969] snd_hda_codec_conexant hdaudioC0D0:    inputs:
[    3.379971] snd_hda_codec_conexant hdaudioC0D0:      Internal Mic=0x1a
[    3.379972] snd_hda_codec_conexant hdaudioC0D0:      Mic=0x19

Offline

#5 2020-03-21 10:39:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 9,074

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

you do not appear to have the same hw at all. So any suggestions from the other thread won't inherently help here. so lets roll this back up. remove those two lines in pulse.pa. remove the copied ucm folder, run and post outputs of

systemctl --user restart pulseaudio
#Start "recording" here, with whatever means you usually try to use, if commandline post the command used
sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sources
pacmd list-source-outputs
amixer -c0

Last edited by V1del (2020-03-21 10:42:39)

Offline

#6 2020-03-21 15:28:10

cogeary
Member
Registered: 2012-09-16
Posts: 20

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

V1del wrote:

you do not appear to have the same hw at all. So any suggestions from the other thread won't inherently help here. so lets roll this back up. remove those two lines in pulse.pa. remove the copied ucm folder, run and post outputs of

systemctl --user restart pulseaudio
#Start "recording" here, with whatever means you usually try to use, if commandline post the command used
sudo fuser -v /dev/snd/*
pacmd list-cards
pacmd list-sources
pacmd list-source-outputs
amixer -c0
~ ➜ systemctl --user restart pulseaudio
# recording with arecord -d 30 rec.wav
~ ➜ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  cove       3446 F.... pulseaudio
/dev/snd/pcmC0D0c:   cove       3446 F...m pulseaudio
~ ➜ pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1f.3>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xec340000 irq 137"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9d71"
		device.product.name = "Sunrise Point-LP HD Audio (ThinkPad X1 Carbon 5th Gen)"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (priority 5965, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround+input:analog-stereo: Digital Surround 5.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71+input:analog-stereo: Digital Surround 7.1 (HDMI) Output + Analog Stereo Input (priority 865, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (priority 5765, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (priority 665, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_1f.3.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_1f.3.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_1f.3.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
~ ➜ pacmd list-sources
2 source(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
	driver: <module-alsa-card.c>
	flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 1030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
	monitor_of: 0
	card: 0 <alsa_card.pci-0000_00_1f.3>
	module: 6
	properties:
		device.description = "Monitor of Built-in Audio Analog Stereo"
		device.class = "monitor"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xec340000 irq 137"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9d71"
		device.product.name = "Sunrise Point-LP HD Audio (ThinkPad X1 Carbon 5th Gen)"
		device.form_factor = "internal"
		device.string = "0"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
  * index: 1
	name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 26090 /  40% / -24.00 dB,   front-right: 26090 /  40% / -24.00 dB
	        balance 0.00
	base volume: 13076 /  20% / -42.00 dB
	volume steps: 65537
	muted: yes
	current latency: 43.25 ms
	max rewind: 0 KiB
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 125.00 ms; range is 0.50 .. 2000.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "CX8200 Analog"
		alsa.id = "CX8200 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xec340000 irq 137"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1f.3"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "9d71"
		device.product.name = "Sunrise Point-LP HD Audio (ThinkPad X1 Carbon 5th Gen)"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Conexant CX8200"
		alsa.components = "HDA:14f12008,17aa224f,00100103 HDA:8086280b,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
	active port: <analog-input-internal-mic>
~ ➜ pacmd list-source-outputs
1 source output(s) available.
    index: 0
	driver: <protocol-native.c>
	flags: 
	state: RUNNING
	source: 1 <alsa_input.pci-0000_00_1f.3.analog-stereo>
	volume: mono: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 0.00 ms
	requested latency: 125.00 ms
	sample spec: u8 1ch 8000Hz
	channel map: mono
	             Mono
	resample method: speex-float-1
	owner module: 11
	client: 5 <ALSA plug-in [aplay]>
	properties:
		media.name = "ALSA Capture"
		application.name = "ALSA plug-in [aplay]"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "33"
		application.process.id = "3495"
		application.process.user = "cove"
		application.process.host = "gnovert"
		application.process.binary = "aplay"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0"
		application.process.machine_id = "6dbb3b43aa06481dae5bbb96c52e5297"
		module-stream-restore.id = "source-output-by-application-name:ALSA plug-in [aplay]"
~ ➜ amixer -c0
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 74
  Mono: Playback 57 [77%] [-17.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 0 [0%] [-74.00dB] [off]
  Front Right: Playback 0 [0%] [-74.00dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 74
  Mono:
  Front Left: Playback 74 [100%] [0.00dB] [on]
  Front Right: Playback 74 [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 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Mic Mute-LED Mode',0
  Capabilities: enum
  Items: 'On' 'Off' 'Follow Capture' 'Follow Mute'
  Item0: 'Follow Mute'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',4
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 7
  Mono: Playback 3 [43%] [-16.00dB] [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB] [off]
  Front Right: Capture 80 [100%] [6.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 1 [33%] [12.00dB]
  Front Right: 1 [33%] [12.00dB]

Offline

#7 2020-03-21 20:06:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 9,074

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

index: 1
	name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 26090 /  40% / -24.00 dB,   front-right: 26090 /  40% / -24.00 dB
	        balance 0.00
	base volume: 13076 /  20% / -42.00 dB
	volume steps: 65537
	muted: yes
pactl set-source-mute  alsa_input.pci-0000_00_1f.3.analog-stereo no
pactl set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 80%,80% #Just in case the low volume is actually too low

Do yourself a favor and install pavucontrol or so so you have a gui you can easily look up your hardware states.

Offline

#8 2020-03-22 02:12:03

cogeary
Member
Registered: 2012-09-16
Posts: 20

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

V1del wrote:
index: 1
	name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 26090 /  40% / -24.00 dB,   front-right: 26090 /  40% / -24.00 dB
	        balance 0.00
	base volume: 13076 /  20% / -42.00 dB
	volume steps: 65537
	muted: yes
pactl set-source-mute  alsa_input.pci-0000_00_1f.3.analog-stereo no
pactl set-source-volume alsa_input.pci-0000_00_1f.3.analog-stereo 80%,80% #Just in case the low volume is actually too low

Do yourself a favor and install pavucontrol or so so you have a gui you can easily look up your hardware states.

Gosh -- sorry for that slip. I had been toying with the standard volume config in GNOME but can't believe I left it muted.

Still though, no luck after unmuting with pactl (or GNOME, or pavucontrol). Just no sound picked up at all. Soon as an external mic is inserted into the jack, it switches over and records.

Offline

#9 2020-03-23 16:05:58

pigiron
Member
From: USA
Registered: 2009-07-14
Posts: 150

Re: Troubleshooting microphone on Thinkpad X1 Carbon Gen 5

I'm not sure how much this will help, but I'll throw it in here anyway. I also have a Lenovo X1G5 with the same HDA (8086:9d71) and audio codec (CX8200) chips and as far as I know the internal microphone has always worked (and I just tested it again).

However, I use ALSA only and have removed pulseaudio. Otherwise this is a normal Arch install, with no /etc/asound.conf, nor ~/.asoundrc, nor modprobes.

But one thing that's abnormal (to me) about the internal microphone on this system is that both the "Capture" and "Digital" mixer settings need to be raised/increased in order to capture "normal" volume levels.

What seems different with your setup is that you don't show the "Digital" capture mixer control for some reason.

Here's an amixer snippet from my laptop:

amixer -c0
   ...
   <snip>
   ...
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 80 [100%] [6.00dB] [on]
  Front Right: Capture 80 [100%] [6.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 120 [100%] [30.00dB]
  Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

I agree with V1del. I think the Gen 7 has different audio chips and BIOS, so it's probably not relevant to the Gen 5.

Offline

Board footer

Powered by FluxBB