From patchwork Tue Sep 15 03:51:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 1364104 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Br8S26WMXz9sVK; Tue, 15 Sep 2020 13:52:02 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1kI20a-00013X-Rm; Tue, 15 Sep 2020 03:51:56 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kI20Z-00013R-4X for kernel-team@lists.ubuntu.com; Tue, 15 Sep 2020 03:51:55 +0000 Received: from [120.244.196.140] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kI20Y-0006Hi-80 for kernel-team@lists.ubuntu.com; Tue, 15 Sep 2020 03:51:54 +0000 From: Hui Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][Xenial][PATCH 0/2] alsa/hdmi: the hdmi audio stops working from Ubuntu-4.4.0-155.182 Date: Tue, 15 Sep 2020 11:51:30 +0800 Message-Id: <20200915035132.7731-1-hui.wang@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1895603 [Impact] We had a Dell machine, this machine was enabled with ubuntu 4.4 kernel before, but recently the hdmi audio on this machine stopped working with the latest ubuntu 4.4. kernel. The system can't detect its plugging and can't output sound to it anymore. [Fix] This is because we backported a patch from stable updates, and that patch is for v5.2 kernel, if we backported it to 4.4 kernel, we need to do some change, and also we need to backport one more patch from stabe kernel. [Test Case] Connect a monitor to the machine and boot up, after booting up, we could see the hdmi audio is found, and play sound to the hdmi audio, we could hear the sound from monitor. [Regression Risk] It is possible to make the hdmi audio fail to work after applying this patchset, like the hdmi audio can't be detected after plugging a hdmi monitor. But this possibility is very low, we tested the patchset on many dell and lenovo machines, all worked well. Hui Wang (2): ALSA: hda/hdmi - Read the pin sense from register when repolling UBUNTU: SAUNCE: ALSA: hda/hdmi - Check pin_eld->monitor_present sound/pci/hda/patch_hdmi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) Acked-by: Kleber Sacilotto de Souza Acked-by: Stefan Bader