You are not logged in.

#1 2023-10-14 08:50:49

Xwang
Member
Registered: 2012-05-14
Posts: 353

Headphones always reported as connected even if they are not.

Hi to all,
I'm configuring a new laptop with arch and kde and I'm not managing to have  audio automatically go to the headphones when I connect the cable (I have to manually select the Headset audio° the same when I connect an hdmi cable.)
I've seen that in pauvcontrol the headphones are always seen as connected even when they are not.
Is it a kernel bug?
I'm pretty sure the hardware is good because Windows detect correctly when headphones jack is connected/disconnected.
Can you help me, please?
Thank you,
Xwang

Last edited by Xwang (2023-12-01 19:00:49)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#2 2023-10-30 21:54:20

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

The pc is a Dell Latitude 9330 2 in 1 with alder lake.

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofsoundwire [sof-soundwire], device 0: Jack Out (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 2: Speaker (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 5: HDMI 1 (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 6: HDMI 2 (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 7: HDMI 3 (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofsoundwire [sof-soundwire], device 31: Jack Out DeepBuffer (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
amixer -c0
Simple mixer control 'Headphone',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Speaker',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
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 [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Headset Mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB] [on]
  Front Right: Capture 50 [62%] [0.00dB] [on]
Simple mixer control 'PGA3.1 3 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA30.0 30',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA31.0 31',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA5.0 5 Master',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB] [on]
  Front Right: Capture 50 [62%] [0.00dB] [on]
Simple mixer control 'PGA6.0 6 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'rt1316-1 DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-1 Isense Mixer',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-1 Left I Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 2 [29%]
Simple mixer control 'rt1316-1 Left V Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'rt1316-1 RX Channel Select',0
  Capabilities: enum
  Items: 'L,R' 'L,L' 'L,R' 'L,L+R' 'R,L' 'R,R' 'R,L+R' 'L+R,L' 'L+R,R' 'L+R,L+R'
  Item0: 'L,L'
Simple mixer control 'rt1316-1 Right I Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'rt1316-1 Right V Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 1 [14%]
Simple mixer control 'rt1316-1 Vsense Mixer',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-1 XU24 Bypass',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'rt1316-2 DAC',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-2 Isense Mixer',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-2 Left I Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 2 [29%]
Simple mixer control 'rt1316-2 Left V Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'rt1316-2 RX Channel Select',0
  Capabilities: enum
  Items: 'L,R' 'L,L' 'L,R' 'L,L+R' 'R,L' 'R,R' 'R,L+R' 'L+R,L' 'L+R,R' 'L+R,L+R'
  Item0: 'R,R'
Simple mixer control 'rt1316-2 Right I Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 3 [43%]
Simple mixer control 'rt1316-2 Right V Tag Select',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 1 [14%]
Simple mixer control 'rt1316-2 Vsense Mixer',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'rt1316-2 XU24 Bypass',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'rt711 ADC 22 Mux',0
  Capabilities: enum
  Items: 'MIC2' 'LINE1' 'LINE2' 'DMIC'
  Item0: 'MIC2'
Simple mixer control 'rt711 ADC 23 Mux',0
  Capabilities: enum
  Items: 'MIC2' 'LINE1' 'LINE2' 'DMIC'
  Item0: 'DMIC'
Simple mixer control 'rt711 FU05',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB]
  Front Right: Playback 87 [100%] [0.00dB]
Simple mixer control 'rt711 FU0F',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 'rt711 FU15 Gain',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 'rt711 FU1E',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 23 [37%] [0.00dB] [off]
  Front Right: Capture 23 [37%] [0.00dB] [off]
Simple mixer control 'rt711 FU44 Gain',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 'rt714 ADC 22 Mux',0
  Capabilities: enum
  Items: 'MIC1' 'MIC2' 'LINE1' 'LINE2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
  Item0: 'DMIC3'
Simple mixer control 'rt714 ADC 23 Mux',0
  Capabilities: enum
  Items: 'MIC1' 'MIC2' 'LINE1' 'LINE2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
  Item0: 'DMIC4'
Simple mixer control 'rt714 ADC 24 Mux',0
  Capabilities: enum
  Items: 'MIC2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
  Item0: 'MIC2'
Simple mixer control 'rt714 ADC 25 Mux',0
  Capabilities: enum
  Items: 'MIC1' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
  Item0: 'MIC1'
Simple mixer control 'rt714 FU02',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right - Rear Left - Rear Right
  Limits: Capture 0 - 127
  Front Left: Capture 119 [94%] [270.00dB] [on]
  Front Right: Capture 119 [94%] [270.00dB] [on]
  Rear Left: Capture 119 [94%] [270.00dB] [on]
  Rear Right: Capture 119 [94%] [270.00dB] [on]
Simple mixer control 'rt714 FU06',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right - Rear Left - Rear Right
  Limits: Capture 0 - 127
  Front Left: Capture 47 [37%] [0.00dB] [off]
  Front Right: Capture 47 [37%] [0.00dB] [off]
  Rear Left: Capture 47 [37%] [0.00dB] [off]
  Rear Right: Capture 47 [37%] [0.00dB] [off]
Simple mixer control 'rt714 FU0A',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 127
  Front Left: Capture 47 [37%] [0.00dB] [off]
  Front Right: Capture 47 [37%] [0.00dB] [off]
Simple mixer control 'rt714 FU0C Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
  Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
  Rear Left: 0 [0%]
  Rear Right: 0 [0%]
  Front Center: 0 [0%]
  Woofer: 0 [0%]
  Side Left: 0 [0%]
  Side Right: 0 [0%]
Simple mixer control 'rt714 FU0E Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
  Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
  Limits: 0 - 3
  Front Left: 0 [0%]
  Front Right: 0 [0%]
  Rear Left: 0 [0%]
  Rear Right: 0 [0%]
  Front Center: 0 [0%]
  Woofer: 0 [0%]
  Side Left: 0 [0%]
  Side Right: 0 [0%]
pactl list cards
Card #39
        Name: alsa_card.pci-0000_00_1f.3-platform-sof_sdw
        Driver: alsa
        Owner Module: n/a
        Properties:
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.path = "hw:0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.api = "alsa"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                media.class = "Audio/Device"
                factory.id = "14"
                client.id = "33"
                object.id = "39"
                object.serial = "39"
                object.path = "alsa:pcm:0"
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.driver_name = "snd_soc_sof_sdw"
                device.string = "0"
        Profiles:
                off: Spento (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 5, sources: 2, priority: 8000, available: yes)
                pro-audio: Audio Professionale (sinks: 6, sources: 2, priority: 1, available: yes)
        Active Profile: HiFi
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, availability group: HDMI/DP,pcm=7, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=7"
                                device.icon_name = "video-display"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, availability group: HDMI/DP,pcm=6, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=6"
                                device.icon_name = "video-display"
                                card.profile.port = "1"
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, availability group: HDMI/DP,pcm=5, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=5"
                                device.icon_name = "video-display"
                                card.profile.port = "2"
                        Part of profile(s): HiFi
                [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone, available)
                        Properties:
                                port.type = "headphones"
                                port.availability-group = "Headphone"
                                device.icon_name = "audio-headphones"
                                card.profile.port = "3"
                        Part of profile(s): HiFi
                [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "speaker"
                                device.icon_name = "audio-speakers"
                                card.profile.port = "4"
                        Part of profile(s): HiFi
                [In] Headset: Headset Microphone (type: Headset, priority: 200, latency offset: 0 usec, availability group: Headset Mic, available)
                        Properties:
                                port.type = "headset"
                                port.availability-group = "Headset Mic"
                                device.icon_name = "audio-headset"
                                card.profile.port = "5"
                        Part of profile(s): HiFi
                [In] Mic: SoundWire microphones (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
                        Properties:
                                port.type = "mic"
                                device.icon_name = "audio-input-microphone"
                                card.profile.port = "6"
                        Part of profile(s): HiFi
pactl list sinks
Sink #215
        State: IDLE
        Name: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_7__sink
        Description: Alder Lake Smart Sound Technology Audio Controller HDMI / DisplayPort 3 Output
        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 Source: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_7__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.class = "generic"
                alsa.device = "7"
                alsa.driver_name = "snd_soc_sof_sdw"
                alsa.id = "HDMI 3 (*)"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.mixer_device = "_ucm0001.hw:sofsoundwire"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofsoundwire,7"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "0"
                device.api = "alsa"
                device.class = "sound"
                device.id = "39"
                device.profile.description = "HDMI / DisplayPort 3 Output"
                device.profile.name = "HiFi: hw:sofsoundwire,7: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_7__sink"
                node.nick = "HDMI / DisplayPort 3 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofsoundwire,7:playback"
                priority.driver = "632"
                priority.session = "632"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "120"
                object.serial = "215"
                node.max-latency = "4096/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "8"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, availability group: HDMI/DP,pcm=7, not available)
        Active Port: [Out] HDMI3
        Formats:
                pcm

Sink #216
        State: IDLE
        Name: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_6__sink
        Description: Alder Lake Smart Sound Technology Audio Controller HDMI / DisplayPort 2 Output
        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 Source: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_6__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.class = "generic"
                alsa.device = "6"
                alsa.driver_name = "snd_soc_sof_sdw"
                alsa.id = "HDMI 2 (*)"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.mixer_device = "_ucm0001.hw:sofsoundwire"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofsoundwire,6"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "1"
                device.api = "alsa"
                device.class = "sound"
                device.id = "39"
                device.profile.description = "HDMI / DisplayPort 2 Output"
                device.profile.name = "HiFi: hw:sofsoundwire,6: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_6__sink"
                node.nick = "HDMI / DisplayPort 2 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofsoundwire,6:playback"
                priority.driver = "648"
                priority.session = "648"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "74"
                object.serial = "216"
                node.max-latency = "4096/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "8"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, availability group: HDMI/DP,pcm=6, not available)
        Active Port: [Out] HDMI2
        Formats:
                pcm

Sink #217
        State: IDLE
        Name: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_5__sink
        Description: Alder Lake Smart Sound Technology Audio Controller HDMI / DisplayPort 1 Output
        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 Source: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_5__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.class = "generic"
                alsa.device = "5"
                alsa.driver_name = "snd_soc_sof_sdw"
                alsa.id = "HDMI 1 (*)"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.mixer_device = "_ucm0001.hw:sofsoundwire"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofsoundwire,5"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "2"
                device.api = "alsa"
                device.class = "sound"
                device.id = "39"
                device.profile.description = "HDMI / DisplayPort 1 Output"
                device.profile.name = "HiFi: hw:sofsoundwire,5: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_5__sink"
                node.nick = "HDMI / DisplayPort 1 Output"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofsoundwire,5:playback"
                priority.driver = "664"
                priority.session = "664"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "134"
                object.serial = "217"
                node.max-latency = "4096/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "8"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, availability group: HDMI/DP,pcm=5, not available)
        Active Port: [Out] HDMI1
        Formats:
                pcm

Sink #218
        State: IDLE
        Name: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire__sink
        Description: Alder Lake Smart Sound Technology Audio Controller Headphones
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 56361 /  86% / -3,93 dB,   front-right: 56361 /  86% / -3,93 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.class = "generic"
                alsa.device = "0"
                alsa.driver_name = "snd_soc_sof_sdw"
                alsa.id = "Jack Out (*)"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.mixer_device = "_ucm0001.hw:sofsoundwire"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofsoundwire"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "3"
                device.api = "alsa"
                device.class = "sound"
                device.id = "39"
                device.profile.description = "Headphones"
                device.profile.name = "HiFi: hw:sofsoundwire: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire__sink"
                node.nick = "Headphones"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofsoundwire:playback"
                priority.driver = "1000"
                priority.session = "1000"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "85"
                object.serial = "218"
                node.max-latency = "4096/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "8"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] Headphones: Headphones (type: Headphones, priority: 200, availability group: Headphone, available)
        Active Port: [Out] Headphones
        Formats:
                pcm

Sink #219
        State: IDLE
        Name: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink
        Description: Alder Lake Smart Sound Technology Audio Controller Speaker
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no
        Volume: front-left: 47841 /  73% / -8,20 dB,   front-right: 47841 /  73% / -8,20 dB
                balance 0,00
        Base Volume: 65536 / 100% / 0,00 dB
        Monitor Source: alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY 
        Properties:
                alsa.card = "0"
                alsa.card_name = "sof-soundwire"
                alsa.class = "generic"
                alsa.device = "2"
                alsa.driver_name = "snd_soc_sof_sdw"
                alsa.id = "Speaker (*)"
                alsa.long_card_name = "Intel Soundwire SOF"
                alsa.mixer_device = "_ucm0001.hw:sofsoundwire"
                alsa.name = ""
                alsa.resolution_bits = "16"
                alsa.subclass = "generic-mix"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                api.alsa.card.longname = "Intel Soundwire SOF"
                api.alsa.card.name = "sof-soundwire"
                api.alsa.open.ucm = "true"
                api.alsa.path = "hw:sofsoundwire,2"
                api.alsa.pcm.card = "0"
                api.alsa.pcm.stream = "playback"
                audio.channels = "2"
                audio.position = "FL,FR"
                card.profile.device = "4"
                device.api = "alsa"
                device.class = "sound"
                device.id = "39"
                device.profile.description = "Speaker"
                device.profile.name = "HiFi: hw:sofsoundwire,2: sink"
                device.routes = "1"
                factory.name = "api.alsa.pcm.sink"
                media.class = "Audio/Sink"
                device.description = "Alder Lake Smart Sound Technology Audio Controller"
                node.name = "alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink"
                node.nick = "Speaker"
                node.pause-on-idle = "false"
                object.path = "alsa:pcm:0:hw:sofsoundwire,2:playback"
                priority.driver = "712"
                priority.session = "712"
                factory.id = "18"
                clock.quantum-limit = "8192"
                client.id = "33"
                node.driver = "true"
                factory.mode = "merge"
                audio.adapt.follower = ""
                library.name = "audioconvert/libspa-audioconvert"
                object.id = "133"
                object.serial = "219"
                node.max-latency = "4096/48000"
                api.alsa.period-size = "1024"
                api.alsa.period-num = "8"
                api.alsa.headroom = "0"
                api.acp.auto-port = "false"
                api.acp.auto-profile = "false"
                api.alsa.card = "0"
                api.alsa.use-acp = "true"
                api.dbus.ReserveDevice1 = "Audio0"
                device.bus = "pci"
                device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
                device.enum.api = "udev"
                device.icon_name = "audio-card-analog-pci"
                device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
                device.nick = "sof-soundwire"
                device.plugged.usec = "5358388"
                device.product.id = "0x51cc"
                device.product.name = "Alder Lake Smart Sound Technology Audio Controller"
                device.subsystem = "sound"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
                device.vendor.id = "0x8086"
                device.vendor.name = "Intel Corporation"
                device.string = "0"
        Ports:
                [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
        Active Port: [Out] Speaker
        Formats:
                pcm

Last edited by Xwang (2023-12-01 19:01:55)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#3 2023-11-01 18:28:51

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

This is the output of dmesg filtered to show only warnings and errors ( sudo dmesg --level=err,warn ) in case any of them is useful to debug my issue with the headphone output:

[    0.099900]   #1  #3
[    0.107022] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[    0.992019] pnp 00:05: disabling [mem 0xc0000000-0xcfffffff] because it overlaps 0000:00:02.0 BAR 9 [mem 0x00000000-0xdfffffff 64bit pref]
[    1.037264] hpet_acpi_add: no address or irqs in _CRS
[    1.222704] wmi_bus wmi_bus-PNP0C14:02: WQBC data block query control method not found
[    1.235013] i8042: Warning: Keylock active
[    1.239459] usb: port power management may be unreliable
[    4.087683] int3472-discrete INT3472:01: INT3472 seems to have no dependents.
[    4.154696] resource: resource sanity check: requesting [mem 0x00000000fedc0000-0x00000000fedcffff], which spans more than pnp 00:05 [mem 0xfedc0000-0xfedc7fff]
[    4.154703] caller igen6_probe+0x1a0/0x8d0 [igen6_edac] mapping multiple BARs
[    4.194748] i2c i2c-13: Systems with more than 4 memory slots not supported yet, not instantiating SPD
[    4.209461] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.267378] iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
[    4.480163] thermal thermal_zone9: failed to read out thermal zone (-61)
[    4.489714] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[    5.158212] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
[    5.365707] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[    5.599035] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[    5.639900] hid-sensor-hub 001F:8087:0AC2.0007: hid_field_extract() called with n (192) > 32! (kworker/5:4)
[    5.912008] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[    5.992614] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[    6.969756] gnome-shell[638]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
[   13.445411] warning: `kded5' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211

I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#4 2023-11-04 09:55:06

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

I've just discovered that when I insert the headphone jack the following event is raised:

cd/play CDPLAY 00000080 00000000

The same happens often (but not all the times), when I unplug it.

It seems as if the headphone jack plugging is "mapped" to a different ACPID command.

This happens adding a file inside /etc/modprobe.d/ containig

options snd_hda_intel model=dell-headset-multi power_save=0

So it seems related themodel of the snd_hda_intel. Can you help me finding the correct one, please?

[EDIT]
Indeed the driver in use is not snd_hda_intel so changing options did not solve the problem:

inxi -Aa
Audio:
  Device-1: Intel Alder Lake Imaging Signal Processor vendor: Dell driver: N/A
    bus-ID: 00:05.0 chip-ID: 8086:465d class-ID: 0480
  Device-2: Intel Alder Lake Smart Sound Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51cc class-ID: 0401
  API: ALSA v: k6.6.1-arch1-1 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 0.3.84 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

Last edited by Xwang (2023-11-11 19:19:36)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#5 2023-12-01 19:03:10

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

Can someone help me, please?
For any moderator, should the post be moved to the kernel session? If so, can you do it, please?


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#6 2023-12-01 20:21:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,885

Re: Headphones always reported as connected even if they are not.

Does/can you switch with

pactl set-default-sink  alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire__sink

and does that stick across reboots ?

Offline

#7 2023-12-04 18:22:36

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

V1del wrote:

Does/can you switch with

pactl set-default-sink  alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire__sink

and does that stick across reboots ?

hi, thank you for your help.
I've tried the command and i can confirm you that it I can switch using it and it sticks across reboots.
However it still doesn't switch automatically to internal speakers when I unplug the headphone from the audio out port, so I have to manually select them from the kmix tray icon applet.
Headphones is always reported as connected by pauvcontrol.


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#8 2023-12-04 19:26:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,885

Re: Headphones always reported as connected even if they are not.

Likely driver issue, you could check with acpid whether unplugging the headset generates an event where you can invoke the appropriate pactl command: https://wiki.archlinux.org/title/Acpid

Offline

#9 2023-12-04 19:28:38

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

V1del wrote:

Likely driver issue, you could check with acpid whether unplugging the headset generates an event where you can invoke the appropriate pactl command: https://wiki.archlinux.org/title/Acpid

I've tried, but no "realiable" event is generated ...
... where should I open this kind of bug?


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#10 2024-03-03 15:11:21

ngochai
Member
From: Singapore
Registered: 2011-04-06
Posts: 11
Website

Re: Headphones always reported as connected even if they are not.

@Xwang, did you find any solution for this? I may have the same problem https://bbs.archlinux.org/viewtopic.php?id=293338
Please share your findings, thanks.

Offline

#11 2024-03-03 15:45:19

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Headphones always reported as connected even if they are not.

ngochai wrote:

@Xwang, did you find any solution for this? I may have the same problem https://bbs.archlinux.org/viewtopic.php?id=293338
Please share your findings, thanks.

No solution.
The issue is still present.
I've solved it using an usb sound card which drives my external soundbar and is attached to the docking station.
This way when the pc is connected to the docking station, the soid comes from the external soundbar.
When it is not connected it comes from the internal speaker. If I want to use headphones connected to the pc output I have to manually chose it and fo the opposite when I unplug them.


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#12 2024-03-03 20:53:56

ngochai
Member
From: Singapore
Registered: 2011-04-06
Posts: 11
Website

Re: Headphones always reported as connected even if they are not.

@Xwang, thanks for the info.

Offline

Board footer

Powered by FluxBB