Activity log for bug #1824259

Date Who What changed Old value New value Message
2019-04-11 02:38:55 Adam Novak bug added bug
2019-04-11 02:39:46 Adam Novak summary Headphone jack switch sense is inverted: pliugging in headphones disables headphone output Headphone jack switch sense is inverted: plugging in headphones disables headphone output
2019-04-11 05:25:37 Adam Novak affects alsa-lib (Ubuntu) linux (Ubuntu)
2019-04-11 05:30:06 Ubuntu Kernel Bot linux (Ubuntu): status New Incomplete
2019-04-12 22:20:22 Terry Rudd bug added subscriber Terry Rudd
2019-04-13 19:18:05 Adam Novak tags amd64 apport-bug disco amd64 apport-bug apport-collected disco
2019-04-13 19:18:07 Adam Novak description My machine is a LattePanda board, which uses a "chtrt5645" device as a sound card. It has a single headphone output jack, which I think is a TRRS jack, with a mic input, such as is normally used on phones. When I don't have headphones plugged in, the system thinks headphones *are* plugged in. Gnome Control Center shows my audio device as being headphones. If I insert a headphone connector partway into the jack, I can even get sound in the headphones. But if I plug the headphones all the way in, the system decided that I have *un*plugged the headphones, and switches output over to "Speaker". The system doesn't actually have a speaker, only a headphone jack. And when the system switches over to "Speaker", I get no sound out of the headphones, even if I open "pavucontrol" and swap over to "Headphones (unplugged)" on the "Output Devices" tab. This is what "pacmd"'s "list-cards" command says with my headphones *unplugged*: 2 card(s) available. index: 0 name: <alsa_card.pci-0000_00_02.0-platform-hdmi-lpe-audio> driver: <module-alsa-card.c> owner module: 7 properties: alsa.card = "1" alsa.card_name = "Intel HDMI/DP LPE Audio" alsa.long_card_name = "Intel HDMI/DP LPE Audio" alsa.driver_name = "snd_hdmi_lpe_audio" device.bus_path = "pci-0000:00:02.0-platform-hdmi-lpe-audio" sysfs.path = "/devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card1" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "22b0" device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" device.string = "1" device.description = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" profiles: output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no) output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no) output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no) output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no) output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no) off: Off (priority 0, available: unknown) active profile: <off> ports: 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" index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: yes) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: no) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: yes) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: no) properties: When I plug in the headphones, the entry for card 1 changes to: index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: no) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: no) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: unknown) properties: Note that the "Headphones" port is now "available: no". PulseAudio is getting all these ports from Alsa's UCM (Use Case Manager) system, which has a bunch of config files that live in /usr/share/alsa/ucm. I tried editing /usr/share/alsa/ucm/chtrt5645/HiFi.conf to swap the enable and disable procedures for the headphones and the speakers, in hopes of convincing it to route audio out the headphone jack, but that didn't work. This problem has affected me since at least Ubuntu 18.04. I've upgraded through 18.10 and to 19.04 today. All three releases have the same problem. 1. How is the PulseAudio/ALSA system determining whether headphones are plugged in or not? 2. How do I invert the sense of that test? ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: libasound2 1.1.8-1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 Uname: Linux 5.0.0-8-generic x86_64 ApportVersion: 2.20.10-0ubuntu26 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 10 19:21:09 2019 InstallationDate: Installed on 2018-12-08 (123 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: alsa-lib UpgradeStatus: Upgraded to disco on 2019-04-11 (0 days ago) My machine is a LattePanda board, which uses a "chtrt5645" device as a sound card. It has a single headphone output jack, which I think is a TRRS jack, with a mic input, such as is normally used on phones. When I don't have headphones plugged in, the system thinks headphones *are* plugged in. Gnome Control Center shows my audio device as being headphones. If I insert a headphone connector partway into the jack, I can even get sound in the headphones. But if I plug the headphones all the way in, the system decided that I have *un*plugged the headphones, and switches output over to "Speaker". The system doesn't actually have a speaker, only a headphone jack. And when the system switches over to "Speaker", I get no sound out of the headphones, even if I open "pavucontrol" and swap over to "Headphones (unplugged)" on the "Output Devices" tab. This is what "pacmd"'s "list-cards" command says with my headphones *unplugged*: 2 card(s) available. index: 0 name: <alsa_card.pci-0000_00_02.0-platform-hdmi-lpe-audio> driver: <module-alsa-card.c> owner module: 7 properties: alsa.card = "1" alsa.card_name = "Intel HDMI/DP LPE Audio" alsa.long_card_name = "Intel HDMI/DP LPE Audio" alsa.driver_name = "snd_hdmi_lpe_audio" device.bus_path = "pci-0000:00:02.0-platform-hdmi-lpe-audio" sysfs.path = "/devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card1" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "22b0" device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" device.string = "1" device.description = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" profiles: output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no) output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no) output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no) output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no) output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no) off: Off (priority 0, available: unknown) active profile: <off> ports: 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" index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: yes) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: no) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: yes) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: no) properties: When I plug in the headphones, the entry for card 1 changes to: index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: no) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: no) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: unknown) properties: Note that the "Headphones" port is now "available: no". PulseAudio is getting all these ports from Alsa's UCM (Use Case Manager) system, which has a bunch of config files that live in /usr/share/alsa/ucm. I tried editing /usr/share/alsa/ucm/chtrt5645/HiFi.conf to swap the enable and disable procedures for the headphones and the speakers, in hopes of convincing it to route audio out the headphone jack, but that didn't work. This problem has affected me since at least Ubuntu 18.04. I've upgraded through 18.10 and to 19.04 today. All three releases have the same problem. 1. How is the PulseAudio/ALSA system determining whether headphones are plugged in or not? 2. How do I invert the sense of that test? ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: libasound2 1.1.8-1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 Uname: Linux 5.0.0-8-generic x86_64 ApportVersion: 2.20.10-0ubuntu26 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 10 19:21:09 2019 InstallationDate: Installed on 2018-12-08 (123 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: alsa-lib UpgradeStatus: Upgraded to disco on 2019-04-11 (0 days ago) --- ProblemType: Bug ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: anovak 3022 F.... pulseaudio DistroRelease: Ubuntu 19.04 InstallationDate: Installed on 2018-12-08 (125 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Default string Default string Package: linux (not installed) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-8-generic root=UUID=a40848aa-7225-4844-805d-e726c496e2a2 ro quiet splash vt.handoff=1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 RelatedPackageVersions: linux-restricted-modules-5.0.0-8-generic N/A linux-backports-modules-5.0.0-8-generic N/A linux-firmware 1.178 RfKill: 0: hci0: Bluetooth Soft blocked: no Hard blocked: no Tags: disco Uname: Linux 5.0.0-8-generic x86_64 UnreportableReason: This report is about a package that is not installed. UpgradeStatus: Upgraded to disco on 2019-04-11 (2 days ago) UserGroups: adm cdrom dip docker libvirt lpadmin plugdev pulse-access sambashare sudo _MarkForUpload: False dmi.bios.date: 05/15/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: DF-BI-7-S70CR200-CC55F-022-B dmi.board.asset.tag: Default string dmi.board.name: Cherry Trail CR dmi.board.vendor: AMI Corporation dmi.board.version: Default string dmi.chassis.asset.tag: Default string dmi.chassis.type: 9 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrDF-BI-7-S70CR200-CC55F-022-B:bd05/15/2018:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct9:cvrDefaultstring: dmi.product.family: Tablet dmi.product.name: Default string dmi.product.sku: Default string dmi.product.version: Default string dmi.sys.vendor: Default string
2019-04-13 19:18:09 Adam Novak attachment added AlsaInfo.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255457/+files/AlsaInfo.txt
2019-04-13 19:18:11 Adam Novak attachment added CRDA.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255458/+files/CRDA.txt
2019-04-13 19:18:18 Adam Novak attachment added CurrentDmesg.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255459/+files/CurrentDmesg.txt
2019-04-13 19:18:19 Adam Novak attachment added IwConfig.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255460/+files/IwConfig.txt
2019-04-13 19:18:21 Adam Novak attachment added Lspci.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255461/+files/Lspci.txt
2019-04-13 19:18:23 Adam Novak attachment added ProcCpuinfoMinimal.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255462/+files/ProcCpuinfoMinimal.txt
2019-04-13 19:18:24 Adam Novak attachment added ProcInterrupts.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255463/+files/ProcInterrupts.txt
2019-04-13 19:18:26 Adam Novak attachment added ProcModules.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255464/+files/ProcModules.txt
2019-04-13 19:18:27 Adam Novak attachment added PulseList.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255465/+files/PulseList.txt
2019-04-13 19:18:32 Adam Novak attachment added UdevDb.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255466/+files/UdevDb.txt
2019-04-13 19:18:58 Adam Novak attachment added WifiSyslog.txt https://bugs.launchpad.net/bugs/1824259/+attachment/5255467/+files/WifiSyslog.txt
2019-04-13 19:22:06 Adam Novak linux (Ubuntu): status Incomplete Confirmed
2019-04-14 02:09:50 Hui Wang attachment added oem-audio-asoc-daily-dkms_0.1_all.deb https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824259/+attachment/5255554/+files/oem-audio-asoc-daily-dkms_0.1_all.deb
2019-04-24 03:47:01 Adam Novak attachment added Output of sudo dmidecode for the LattePanda https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824259/+attachment/5258402/+files/dmidecode.txt
2019-04-24 04:46:51 Hui Wang attachment added oem-audio-asoc-daily-dkms_0.1_all.deb https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824259/+attachment/5258416/+files/oem-audio-asoc-daily-dkms_0.1_all.deb
2019-05-07 05:47:09 Hui Wang linux (Ubuntu): assignee Hui Wang (hui.wang)
2019-05-07 05:47:26 Hui Wang description My machine is a LattePanda board, which uses a "chtrt5645" device as a sound card. It has a single headphone output jack, which I think is a TRRS jack, with a mic input, such as is normally used on phones. When I don't have headphones plugged in, the system thinks headphones *are* plugged in. Gnome Control Center shows my audio device as being headphones. If I insert a headphone connector partway into the jack, I can even get sound in the headphones. But if I plug the headphones all the way in, the system decided that I have *un*plugged the headphones, and switches output over to "Speaker". The system doesn't actually have a speaker, only a headphone jack. And when the system switches over to "Speaker", I get no sound out of the headphones, even if I open "pavucontrol" and swap over to "Headphones (unplugged)" on the "Output Devices" tab. This is what "pacmd"'s "list-cards" command says with my headphones *unplugged*: 2 card(s) available. index: 0 name: <alsa_card.pci-0000_00_02.0-platform-hdmi-lpe-audio> driver: <module-alsa-card.c> owner module: 7 properties: alsa.card = "1" alsa.card_name = "Intel HDMI/DP LPE Audio" alsa.long_card_name = "Intel HDMI/DP LPE Audio" alsa.driver_name = "snd_hdmi_lpe_audio" device.bus_path = "pci-0000:00:02.0-platform-hdmi-lpe-audio" sysfs.path = "/devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card1" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "22b0" device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" device.string = "1" device.description = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" profiles: output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no) output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no) output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no) output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no) output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no) output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no) off: Off (priority 0, available: unknown) active profile: <off> ports: 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" index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: yes) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: no) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: yes) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: no) properties: When I plug in the headphones, the entry for card 1 changes to: index: 1 name: <alsa_card.platform-cht-bsw-rt5645> driver: <module-alsa-card.c> owner module: 8 properties: alsa.card = "0" alsa.card_name = "chtrt5645" alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR" alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645" device.bus_path = "platform-cht-bsw-rt5645" sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0" device.form_factor = "internal" device.string = "0" device.description = "Built-in Audio" module-udev-detect.discovered = "1" device.icon_name = "audio-card" profiles: HiFi: Default (priority 8000, available: unknown) off: Off (priority 0, available: unknown) active profile: <HiFi> sinks: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker sources: alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone ports: [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: no) properties: [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown) properties: [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: no) properties: [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: unknown) properties: Note that the "Headphones" port is now "available: no". PulseAudio is getting all these ports from Alsa's UCM (Use Case Manager) system, which has a bunch of config files that live in /usr/share/alsa/ucm. I tried editing /usr/share/alsa/ucm/chtrt5645/HiFi.conf to swap the enable and disable procedures for the headphones and the speakers, in hopes of convincing it to route audio out the headphone jack, but that didn't work. This problem has affected me since at least Ubuntu 18.04. I've upgraded through 18.10 and to 19.04 today. All three releases have the same problem. 1. How is the PulseAudio/ALSA system determining whether headphones are plugged in or not? 2. How do I invert the sense of that test? ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: libasound2 1.1.8-1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 Uname: Linux 5.0.0-8-generic x86_64 ApportVersion: 2.20.10-0ubuntu26 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 10 19:21:09 2019 InstallationDate: Installed on 2018-12-08 (123 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: alsa-lib UpgradeStatus: Upgraded to disco on 2019-04-11 (0 days ago) --- ProblemType: Bug ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: anovak 3022 F.... pulseaudio DistroRelease: Ubuntu 19.04 InstallationDate: Installed on 2018-12-08 (125 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Default string Default string Package: linux (not installed) ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-8-generic root=UUID=a40848aa-7225-4844-805d-e726c496e2a2 ro quiet splash vt.handoff=1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 RelatedPackageVersions: linux-restricted-modules-5.0.0-8-generic N/A linux-backports-modules-5.0.0-8-generic N/A linux-firmware 1.178 RfKill: 0: hci0: Bluetooth Soft blocked: no Hard blocked: no Tags: disco Uname: Linux 5.0.0-8-generic x86_64 UnreportableReason: This report is about a package that is not installed. UpgradeStatus: Upgraded to disco on 2019-04-11 (2 days ago) UserGroups: adm cdrom dip docker libvirt lpadmin plugdev pulse-access sambashare sudo _MarkForUpload: False dmi.bios.date: 05/15/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: DF-BI-7-S70CR200-CC55F-022-B dmi.board.asset.tag: Default string dmi.board.name: Cherry Trail CR dmi.board.vendor: AMI Corporation dmi.board.version: Default string dmi.chassis.asset.tag: Default string dmi.chassis.type: 9 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrDF-BI-7-S70CR200-CC55F-022-B:bd05/15/2018:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct9:cvrDefaultstring: dmi.product.family: Tablet dmi.product.name: Default string dmi.product.sku: Default string dmi.product.version: Default string dmi.sys.vendor: Default string [Impact] On the LattePanda board, the headphone detection signal is not correct, it is inverted: plugging in headphones disables headphone output [Fix] In the codec driver, there already is a fixup, just set the inv_jd1_1 to true. [Test Case] It is tested by the bug reporter, please refer to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824259/comments/23 [Regression Risk] Low. This fix is specific to a board which is defined by DMI strings. My machine is a LattePanda board, which uses a "chtrt5645" device as a sound card. It has a single headphone output jack, which I think is a TRRS jack, with a mic input, such as is normally used on phones. When I don't have headphones plugged in, the system thinks headphones *are* plugged in. Gnome Control Center shows my audio device as being headphones. If I insert a headphone connector partway into the jack, I can even get sound in the headphones. But if I plug the headphones all the way in, the system decided that I have *un*plugged the headphones, and switches output over to "Speaker". The system doesn't actually have a speaker, only a headphone jack. And when the system switches over to "Speaker", I get no sound out of the headphones, even if I open "pavucontrol" and swap over to "Headphones (unplugged)" on the "Output Devices" tab. This is what "pacmd"'s "list-cards" command says with my headphones *unplugged*: 2 card(s) available.     index: 0  name: <alsa_card.pci-0000_00_02.0-platform-hdmi-lpe-audio>  driver: <module-alsa-card.c>  owner module: 7  properties:   alsa.card = "1"   alsa.card_name = "Intel HDMI/DP LPE Audio"   alsa.long_card_name = "Intel HDMI/DP LPE Audio"   alsa.driver_name = "snd_hdmi_lpe_audio"   device.bus_path = "pci-0000:00:02.0-platform-hdmi-lpe-audio"   sysfs.path = "/devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card1"   device.bus = "pci"   device.vendor.id = "8086"   device.vendor.name = "Intel Corporation"   device.product.id = "22b0"   device.product.name = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers"   device.string = "1"   device.description = "Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card-pci"  profiles:   output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)   output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)   output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)   output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)   output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)   output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)   output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)   output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)   output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)   off: Off (priority 0, available: unknown)  active profile: <off>  ports:   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"     index: 1  name: <alsa_card.platform-cht-bsw-rt5645>  driver: <module-alsa-card.c>  owner module: 8  properties:   alsa.card = "0"   alsa.card_name = "chtrt5645"   alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR"   alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645"   device.bus_path = "platform-cht-bsw-rt5645"   sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0"   device.form_factor = "internal"   device.string = "0"   device.description = "Built-in Audio"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card"  profiles:   HiFi: Default (priority 8000, available: unknown)   off: Off (priority 0, available: unknown)  active profile: <HiFi>  sinks:   alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker  sources:   alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker   alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone  ports:   [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: yes)    properties:   [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: no)    properties:   [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: yes)    properties:   [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: no)    properties: When I plug in the headphones, the entry for card 1 changes to:     index: 1  name: <alsa_card.platform-cht-bsw-rt5645>  driver: <module-alsa-card.c>  owner module: 8  properties:   alsa.card = "0"   alsa.card_name = "chtrt5645"   alsa.long_card_name = "AMICorporation-Defaultstring-Defaultstring-CherryTrailCR"   alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645"   device.bus_path = "platform-cht-bsw-rt5645"   sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card0"   device.form_factor = "internal"   device.string = "0"   device.description = "Built-in Audio"   module-udev-detect.discovered = "1"   device.icon_name = "audio-card"  profiles:   HiFi: Default (priority 8000, available: unknown)   off: Off (priority 0, available: unknown)  active profile: <HiFi>  sinks:   alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink/#0: Built-in Audio Headphones + Speaker  sources:   alsa_output.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__sink.monitor/#0: Monitor of Built-in Audio Headphones + Speaker   alsa_input.platform-cht-bsw-rt5645.HiFi__hw_chtrt5645__source/#1: Built-in Audio Headset Microphone + Internal Analog Microphone  ports:   [Out] Headphones: Headphones (priority 100, latency offset 0 usec, available: no)    properties:   [Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)    properties:   [In] HSMic: Headset Microphone (priority 100, latency offset 0 usec, available: no)    properties:   [In] Mic: Internal Analog Microphone (priority 150, latency offset 0 usec, available: unknown)    properties: Note that the "Headphones" port is now "available: no". PulseAudio is getting all these ports from Alsa's UCM (Use Case Manager) system, which has a bunch of config files that live in /usr/share/alsa/ucm. I tried editing /usr/share/alsa/ucm/chtrt5645/HiFi.conf to swap the enable and disable procedures for the headphones and the speakers, in hopes of convincing it to route audio out the headphone jack, but that didn't work. This problem has affected me since at least Ubuntu 18.04. I've upgraded through 18.10 and to 19.04 today. All three releases have the same problem. 1. How is the PulseAudio/ALSA system determining whether headphones are plugged in or not? 2. How do I invert the sense of that test? ProblemType: Bug DistroRelease: Ubuntu 19.04 Package: libasound2 1.1.8-1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 Uname: Linux 5.0.0-8-generic x86_64 ApportVersion: 2.20.10-0ubuntu26 Architecture: amd64 CurrentDesktop: ubuntu:GNOME Date: Wed Apr 10 19:21:09 2019 InstallationDate: Installed on 2018-12-08 (123 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) ProcEnviron:  TERM=xterm-256color  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: alsa-lib UpgradeStatus: Upgraded to disco on 2019-04-11 (0 days ago) --- ProblemType: Bug ApportVersion: 2.20.10-0ubuntu27 Architecture: amd64 AudioDevicesInUse:  USER PID ACCESS COMMAND  /dev/snd/controlC0: anovak 3022 F.... pulseaudio DistroRelease: Ubuntu 19.04 InstallationDate: Installed on 2018-12-08 (125 days ago) InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725) Lsusb:  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub  Bus 001 Device 003: ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter  Bus 001 Device 004: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID)  Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Default string Default string Package: linux (not installed) ProcEnviron:  TERM=xterm-256color  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-8-generic root=UUID=a40848aa-7225-4844-805d-e726c496e2a2 ro quiet splash vt.handoff=1 ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1 RelatedPackageVersions:  linux-restricted-modules-5.0.0-8-generic N/A  linux-backports-modules-5.0.0-8-generic N/A  linux-firmware 1.178 RfKill:  0: hci0: Bluetooth   Soft blocked: no   Hard blocked: no Tags: disco Uname: Linux 5.0.0-8-generic x86_64 UnreportableReason: This report is about a package that is not installed. UpgradeStatus: Upgraded to disco on 2019-04-11 (2 days ago) UserGroups: adm cdrom dip docker libvirt lpadmin plugdev pulse-access sambashare sudo _MarkForUpload: False dmi.bios.date: 05/15/2018 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: DF-BI-7-S70CR200-CC55F-022-B dmi.board.asset.tag: Default string dmi.board.name: Cherry Trail CR dmi.board.vendor: AMI Corporation dmi.board.version: Default string dmi.chassis.asset.tag: Default string dmi.chassis.type: 9 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrDF-BI-7-S70CR200-CC55F-022-B:bd05/15/2018:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnAMICorporation:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct9:cvrDefaultstring: dmi.product.family: Tablet dmi.product.name: Default string dmi.product.sku: Default string dmi.product.version: Default string dmi.sys.vendor: Default string
2019-05-07 12:55:37 Kleber Sacilotto de Souza nominated for series Ubuntu Disco
2019-05-07 12:55:37 Kleber Sacilotto de Souza bug task added linux (Ubuntu Disco)
2019-05-07 12:55:37 Kleber Sacilotto de Souza nominated for series Ubuntu Cosmic
2019-05-07 12:55:37 Kleber Sacilotto de Souza bug task added linux (Ubuntu Cosmic)
2019-05-07 12:55:37 Kleber Sacilotto de Souza nominated for series Ubuntu Bionic
2019-05-07 12:55:37 Kleber Sacilotto de Souza bug task added linux (Ubuntu Bionic)
2019-05-07 12:55:48 Kleber Sacilotto de Souza linux (Ubuntu Bionic): status New In Progress
2019-05-07 12:55:50 Kleber Sacilotto de Souza linux (Ubuntu Cosmic): status New In Progress
2019-05-07 12:55:52 Kleber Sacilotto de Souza linux (Ubuntu Disco): status New In Progress
2019-05-08 17:05:40 Kleber Sacilotto de Souza linux (Ubuntu Bionic): status In Progress Fix Committed
2019-05-08 17:05:43 Kleber Sacilotto de Souza linux (Ubuntu Disco): status In Progress Fix Committed
2019-05-08 17:05:46 Kleber Sacilotto de Souza linux (Ubuntu Cosmic): status In Progress Fix Committed
2019-05-08 17:05:54 Kleber Sacilotto de Souza linux (Ubuntu): status Confirmed Fix Committed
2019-05-16 15:03:50 Ubuntu Kernel Bot tags amd64 apport-bug apport-collected disco amd64 apport-bug apport-collected disco verification-needed-bionic
2019-05-17 03:43:33 Hui Wang tags amd64 apport-bug apport-collected disco verification-needed-bionic amd64 apport-bug apport-collected disco verification-done-bionic
2019-05-17 09:31:35 Ubuntu Kernel Bot tags amd64 apport-bug apport-collected disco verification-done-bionic amd64 apport-bug apport-collected disco verification-done-bionic verification-needed-disco
2019-05-17 09:49:48 Hui Wang tags amd64 apport-bug apport-collected disco verification-done-bionic verification-needed-disco amd64 apport-bug apport-collected disco verification-done-bionic verification-done-disco
2019-05-20 14:02:18 Ubuntu Kernel Bot tags amd64 apport-bug apport-collected disco verification-done-bionic verification-done-disco amd64 apport-bug apport-collected disco verification-done-bionic verification-done-disco verification-needed-cosmic
2019-06-04 09:17:48 Launchpad Janitor linux (Ubuntu Disco): status Fix Committed Fix Released
2019-06-04 09:18:16 Launchpad Janitor linux (Ubuntu Bionic): status Fix Committed Fix Released
2019-06-04 09:18:39 Launchpad Janitor linux (Ubuntu Cosmic): status Fix Committed Fix Released
2019-06-07 10:29:45 Paul Brodersen bug added subscriber Paul Brodersen
2019-06-09 16:55:00 Launchpad Janitor linux (Ubuntu): status Fix Committed Fix Released