Found the offending commit:
Did not verify this, but I suspect this is the case:
After this change, the driver will not report Jack_is_plugged event
through hdmi_present_sense_via_verbs() if monitor_present is 1 and
eld_valid is 0.
paul@rabachi:~/colinKernels/new4.9.180/my4.9.180$ LANG=en git bisect replay
bisect.log
Already on 'master'
Your branch is ahead of 'origin/master' by 4 commits.
(use "git push" to publish your local commits)
72cd3810e52c606595f9e1a2d442a4cc6e6a3551 is the first bad commit
commit 72cd3810e52c606595f9e1a2d442a4cc6e6a3551
Author: Hui Wang <[email protected]>
Date: Mon May 6 22:09:32 2019 +0800
ALSA: hda/hdmi - Consider eld_valid when reporting jack event
commit 7f641e26a6df9269cb25dd7a4b0a91d6586ed441 upstream.
On the machines with AMD GPU or Nvidia GPU, we often meet this issue:
after s3, there are 4 HDMI/DP audio devices in the gnome-sound-setting
even there is no any monitors plugged.
When this problem happens, we check the /proc/asound/cardX/eld#N.M, we
will find the monitor_present=1, eld_valid=0.
The root cause is BIOS or GPU driver makes the PRESENCE valid even no
monitor plugged, and of course the driver will not get the valid
eld_data subsequently.
In this situation, we should not report the jack_plugged event, to do
so, let us change the function hdmi_present_sense_via_verbs(). In this
function, it reads the pin_sense via snd_hda_pin_sense(), after
calling this function, the jack_dirty is 0, and before exiting
via_verbs(), we change the shadow pin_sense according to both
monitor_present and eld_valid, then in the snd_hda_jack_report_sync(),
since the jack_dirty is still 0, it will report jack event according
to this modified shadow pin_sense.
After this change, the driver will not report Jack_is_plugged event
through hdmi_present_sense_via_verbs() if monitor_present is 1 and
eld_valid is 0.
Signed-off-by: Hui Wang <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
:040000 040000 0280e65d8aca2561b6ed8ee27383d1cd0e3cc022
ebe57ab9f50fdb2851d074f5d2c95f5e74beb541 M sound
paul@rabachi:~/colinKernels/new4.9.180/my4.9.180$
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1993217
Title:
HDMI audio not available RS880 between 4.9.177 and 4.9.178
Status in linux package in Ubuntu:
Confirmed
Bug description:
This is on my friend laptop with his TV.
HDMI audio not available in pavucontrol (profile say unplugged, unavailable)
in kernel versions with bugs.
It is just shown as an audio output (HDMI audio) on kernels where it is
working.
When not working, I can play with aplay -D HDMI ...
When working... I select HDMI audio in output, and test sound ok, Youtube
videos ok, etc.
4.9.177 working.
4.9.178 not working.
I suspect commit 72cf0b07418a9c8349aa9137194b1ccba6e54a9d because it
is between those versions, and is related to audio (realtek in part).
More info at:
https://forums.linuxmint.com/viewtopic.php?f=49&t=383607&p=2246352#p2246352
although the laptop now runs ... 17.10 I think (a version with a not broken
kernel).
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: client 1023 F.... pulseaudio
/dev/snd/pcmC0D0p: client 1023 F...m pulseaudio
/dev/snd/controlC1: client 1023 F.... pulseaudio
CasperMD5json: {
DistroRelease: Linux Mint 21
InstallationDate: Installed on 2022-10-18 (0 days ago)
InstallationMedia: Linux Mint 21 "Vanessa" - Release amd64 20220726
MachineType: SAMSUNG ELECTRONICS CO., LTD. R425D/R525D
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
Package: linux (not installed)
ProcEnviron:
LANGUAGE=fr_CA:fr
TERM=xterm-256color
PATH=(custom, no user)
LANG=fr_CA.UTF-8
SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic
root=UUID=2db14083-ebb6-4a5a-b0b1-4a65e79069d7 ro quiet splash
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
linux-restricted-modules-5.15.0-50-generic N/A
linux-backports-modules-5.15.0-50-generic N/A
linux-firmware 20220329.git681281e4-0ubuntu3.5
Tags: vanessa apport-hook-error
Uname: Linux 5.15.0-50-generic x86_64
UnreportableReason: Ce rapport concerne un paquet qui n'est pas installé.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: False
dmi.bios.date: 10/16/2010
dmi.bios.release: 2.0
dmi.bios.vendor: Phoenix Technologies Ltd.
dmi.bios.version: 02UF
dmi.board.name: R425D/R525D
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias:
dmi:bvnPhoenixTechnologiesLtd.:bvr02UF:bd10/16/2010:br2.0:svnSAMSUNGELECTRONICSCO.,LTD.:pnR425D/R525D:pvrNotApplicable:rvnSAMSUNGELECTRONICSCO.,LTD.:rnR425D/R525D:rvrNotApplicable:cvnSAMSUNGELECTRONICSCO.,LTD.:ct10:cvrN/A:sku:
dmi.product.name: R425D/R525D
dmi.product.version: Not Applicable
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1993217/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp