You are not logged in.

#1 2021-11-06 05:38:12

dhruv8sh
Member
Registered: 2021-10-15
Posts: 9

System does not detect headset mic.

My system detects my laptop's built in microphone but does not detect the headset microphone!
The built-in microphone is too noisy and I need to use the headset mic.

Other problems I have faced recently:
        -Sound randomly stops working altogether (Very rare). Even after multiple restarts. Then I have to reinstall pipewire/pulseaudio.
        -The day before yesterday my system stopped outputting any audio to HDMI.

I currently am using:
        -Pipewire v0.3.39
        -Realtek ALC255
        -3.5 mm headset port
        -Some random Sony Headset (worked perfectly fine on Windows)

P.S. : I am a newbie and I still don't understand how linux sound servers work so I have no idea if those other issues help.

Offline

#2 2021-11-06 11:19:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: System does not detect headset mic.

Post

sudo fuser -v /dev/snd/*
aplay -l
amixer -c0 #Or whatever index is the realtek card
pactl list cards
pactl list sources

Offline

#3 2021-11-06 14:02:01

dhruv8sh
Member
Registered: 2021-10-15
Posts: 9

Re: System does not detect headset mic.

sudo fuser -v /dev/snd/*:

                                 USER      PID   ACCESS COMMAND
/dev/snd/controlC0:  usrname  3297 F....          pipewire-media-
/dev/snd/controlC1:  usrname  3297 F....          pipewire-media-
/dev/snd/seq:            usrname  3296 F....          pipewire

aplay -l:

card 0:.........*Some Card*..............

card 1: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

amixer -c1

Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [off]
Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [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',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
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: 1 [33%] [10.00dB]
Front Right: 1 [33%] [10.00dB]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [on]
Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'

pactl list cards

Card #41
Name: alsa_card.pci-0000_00_03.0
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:0"
api.alsa.card = "0"
api.alsa.card.name = "HDA Intel HDMI"
api.alsa.card.longname = "HDA Intel HDMI at 0xc1210000 irq 47"
device.plugged.usec = "15052285"
device.bus_path = "pci-0000:00:03.0"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:03.0/sound/card0"
device.bus = "pci"
device.subsystem = "sound"
device.vendor.id = "32902"
device.vendor.name = "Intel Corporation"
device.product.id = "5644"
device.product.name = "Broadwell-U Audio Controller"
device.form_factor = "internal"
device.name = "alsa_card.pci-0000_00_03.0"
device.description = "Built-in Audio"
device.nick = "HDA Intel HDMI"
device.icon_name = "audio-card-pci"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio0"
factory.id = "14"
client.id = "32"
object.id = "41"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "HDA Intel HDMI"
alsa.long_card_name = "HDA Intel HDMI at 0xc1210000 irq 47"
alsa.driver_name = "snd_hda_intel"
device.string = "0"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
pro-audio: Pro Audio (sinks: 5, sources: 0, priority: 1, available: yes)
Active Profile: off
Ports:
hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 1"
device.icon_name = "video-display"
card.profile.port = "0"
Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 2"
device.icon_name = "video-display"
card.profile.port = "1"
Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 3"
device.icon_name = "video-display"
card.profile.port = "2"
Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 4"
device.icon_name = "video-display"
card.profile.port = "3"
Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, availability group: Legacy 5, not available)
Properties:
port.type = "hdmi"
port.availability-group = "Legacy 5"
device.icon_name = "video-display"
card.profile.port = "4"
Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4

Card #40
Name: alsa_card.pci-0000_00_1b.0
Driver: alsa
Owner Module: n/a
Properties:
device.enum.api = "udev"
device.api = "alsa"
media.class = "Audio/Device"
api.alsa.path = "hw:1"
api.alsa.card = "1"
api.alsa.card.name = "HDA Intel PCH"
api.alsa.card.longname = "HDA Intel PCH at 0xc1214000 irq 48"
device.plugged.usec = "17170914"
device.bus_path = "pci-0000:00:1b.0"
device.sysfs.path = "/sys/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.subsystem = "sound"
device.vendor.id = "32902"
device.vendor.name = "Intel Corporation"
device.product.id = "40096"
device.product.name = "Wildcat Point-LP High Definition Audio Controller"
device.form_factor = "internal"
device.name = "alsa_card.pci-0000_00_1b.0"
device.description = "Built-in Audio"
device.nick = "HDA Intel PCH"
device.icon_name = "audio-card-pci"
api.alsa.use-acp = "true"
api.acp.auto-profile = "false"
api.acp.auto-port = "false"
api.dbus.ReserveDevice1 = "Audio1"
factory.id = "14"
client.id = "32"
object.id = "40"
object.path = "alsa:pcm:1"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xc1214000 irq 48"
alsa.driver_name = "snd_hda_intel"
device.string = "1"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 65, available: yes)
pro-audio: Pro Audio (sinks: 1, sources: 1, priority: 1, available: yes)
Active Profile: output:analog-stereo+input:analog-stereo
Ports:
analog-input-mic: Microphone (type: Mic, priority: 8700, latency offset: 0 usec, availability group: Legacy 1, availability unknown)
Properties:
port.type = "mic"
port.availability-group = "Legacy 1"
device.icon_name = "audio-input-microphone"
card.profile.port = "0"
Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-speaker: Speakers (type: Speaker, priority: 10000, latency offset: 0 usec, availability group: Legacy 2, availability unknown)
Properties:
port.type = "speaker"
port.availability-group = "Legacy 2"
device.icon_name = "audio-speakers"
card.profile.port = "1"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 3, not available)
Properties:
port.type = "headphones"
port.availability-group = "Legacy 3"
device.icon_name = "audio-headphones"
card.profile.port = "2"
Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo

pactl list sources

Source #65581
State: SUSPENDED
Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
Description: Monitor of Built-in Audio Analog Stereo
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
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
Monitor of Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY 
Properties:
object.path = "alsa:pcm:1:front:1:playback"
api.alsa.path = "front:1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
device.routes = "2"
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC255 Analog"
alsa.id = "ALC255 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xc1214000 irq 48"
alsa.driver_name = "snd_hda_intel"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
card.profile.device = "3"
device.id = "40"
factory.name = "api.alsa.pcm.sink"
priority.driver = "945"
priority.session = "945"
media.class = "Audio/Sink"
node.nick = "HDA Intel PCH"
node.name = "alsa_output.pci-0000_00_1b.0.analog-stereo"
device.description = "Built-in Audio Analog Stereo"
device.icon_name = "audio-card-analog"
device.bus = "pci"
device.bus_path = "pci-0000:00:1b.0"
device.form_factor = "internal"
node.pause-on-idle = "false"
factory.id = "18"
client.id = "33"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "45"
node.max-latency = "8192/48000"
Formats:
pcm

Source #51
State: SUSPENDED
Name: alsa_input.pci-0000_00_1b.0.analog-stereo
Description: Built-in Audio Analog Stereo
Driver: PipeWire
Sample Specification: s32le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 39320 /  60% / -13.31 dB,   front-right: 39320 /  60% / -13.31 dB
balance 0.00
Base Volume: 6554 /  10% / -60.00 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
Properties:
object.path = "alsa:pcm:1:front:1:capture"
api.alsa.path = "front:1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "capture"
audio.channels = "2"
audio.position = "FL,FR"
device.routes = "1"
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC255 Analog"
alsa.id = "ALC255 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xc1214000 irq 48"
alsa.driver_name = "snd_hda_intel"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
card.profile.device = "0"
device.id = "40"
factory.name = "api.alsa.pcm.source"
priority.driver = "1945"
priority.session = "1945"
media.class = "Audio/Source"
node.nick = "HDA Intel PCH"
node.name = "alsa_input.pci-0000_00_1b.0.analog-stereo"
device.description = "Built-in Audio Analog Stereo"
device.icon_name = "audio-input-microphone-analog"
device.bus = "pci"
device.bus_path = "pci-0000:00:1b.0"
device.form_factor = "internal"
node.pause-on-idle = "false"
factory.id = "18"
client.id = "33"
node.driver = "true"
factory.mode = "split"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "51"
node.max-latency = "8192/48000"
Ports:
analog-input-mic: Microphone (type: Mic, priority: 8700, availability group: Legacy 1, availability unknown)
Active Port: analog-input-mic
Formats:
pcm

Offline

#4 2021-11-06 14:29:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: System does not detect headset mic.

Mhm nothing really obvious try /etc/modprobe.d/headsetMic.conf

options snd-hda-intel model=auto,headset-mic

and reboot.

Offline

#5 2021-11-06 17:22:51

dhruv8sh
Member
Registered: 2021-10-15
Posts: 9

Re: System does not detect headset mic.

The file headsetMic.conf did not exist, so I created one with the given content. But unfortunately, it did not work.

I think the problem might be that my headset is recognised as headphones i.e, it might be only recognised as an output instead on simultaneous input/output!
Although I'm not sure.

Offline

#6 2021-11-06 21:39:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: System does not detect headset mic.

Simultaneous in- out jacks are always hairy and a bit of a trial and error. Try changing the headset-mic model definition to dell-headset-multi or try some others from the list: https://www.kernel.org/doc/html/latest/ … xxx-models another thing to test is adding the add-hp-mic hint to the codec definition https://www.kernel.org/doc/html/latest/ … nt-strings see the section above that for how to apply/configure a HDA hint.

Offline

#7 2021-11-08 06:12:16

dhruv8sh
Member
Registered: 2021-10-15
Posts: 9

Re: System does not detect headset mic.

I sat whole day on my lappy try to figure out the correct combination and none of them worked. I don't think that pipewire is even reading that file.

Offline

#8 2021-11-08 08:27:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: System does not detect headset mic.

Pipewire doesn't matter, it's ALSA that's not giving you access to the jack. Fix ALSA and all layers above work.

Offline

Board footer

Powered by FluxBB