Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4161065pxk; Tue, 8 Sep 2020 12:14:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZTedzYh5nl+v4Ak6HqN5PZ7NMsdNcCfOhlK6671kCdzQlzVnpb0zfJ/Y/raRY4mIPcY70 X-Received: by 2002:a17:906:9443:: with SMTP id z3mr28747581ejx.156.1599592460114; Tue, 08 Sep 2020 12:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599592460; cv=none; d=google.com; s=arc-20160816; b=lKATBg2EUIyuZvnvdhWWcX4bjj8eWYbhOWufap//LhzPUXIHZi7aDvgsoSHmp2bUXS 1S2c2Izg59aLoLZeW/BAeJyC4fY3mh+HrzfqrKcC/H13sWEg24jDuoVlHtW5VWsFolMu FQc0HM6J6SBEF8D6/LU9+92hBu2dWaQhZgsA3hB2CN9zH4rk4t8X8+Am3RPuGbVNwBa2 VCeDRc2yrKf3uJCkWCOBetHzGIlCjw9R40tEnBSjMi2I+OKpbZLDOu0El68OK25RUbdV NaaxhtunCaMlixhGyxSoPoobGHyvzmf9UiCqLdIGopdt9v8J3vPq9e0AqDlG6WriKxFy QKSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9tseOz6eLoG+S2jSoZ/zmb+wE9ZQ2gbMgO8ErOCWv2Y=; b=0zMG5/Es5aNrRCYB2KuupKnv+xEEvl5VEQ25NP970L3mcta6+EJiGf4nFIlglxohZs 5foghu3+BsTz3t4D0++kmVt90HnkWHSAdjQrMXbtY9cBegDLR91Euwk8Bfw6fTHoZ1Em j+LHDfE+qQfPoQwBCTZgOGdTuATslP2WirLECnw4Cn88363FHqKw/ZiextK9gmuVYs3q Xxxne4KDzPewi2TDxp3cV3+aTCgpOs/5yLzGYJcJCfmc2efE71FihRUmP+Hm20TW89wG 73DmjesEuQr8B4sMo+xJTcujaEc50fV/g1ZYU8jxbnWGO67HsL3/UhtvFmks/z4TbIXx ZOoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DTs0tpfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qp7si4127755ejb.550.2020.09.08.12.13.56; Tue, 08 Sep 2020 12:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DTs0tpfM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731639AbgIHTML (ORCPT + 99 others); Tue, 8 Sep 2020 15:12:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:51858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730927AbgIHQFW (ORCPT ); Tue, 8 Sep 2020 12:05:22 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1627F2192A; Tue, 8 Sep 2020 15:45:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599579934; bh=jgMn294zgifUDPim3+TDSPhGDGrgYEBA0kW53bEw85A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DTs0tpfMGOYkswp5jHLKs1V/YJExHPBzVoG7TYTHnOoHemKFJnFKOZBiG+f8/Ed9w BS+eC3CALezC5wSiKmmqGghzpc7Ispo/pboFBGeOusMJRK49WS7vBXnzsj+PMRorNt CGEyzqgrGfjbgmCR8Te9l6Ds0lMH9P0qzEkbMtzI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai Vehmanen , Takashi Iwai Subject: [PATCH 5.4 093/129] ALSA: hda/hdmi: always check pin power status in i915 pin fixup Date: Tue, 8 Sep 2020 17:25:34 +0200 Message-Id: <20200908152234.388623847@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200908152229.689878733@linuxfoundation.org> References: <20200908152229.689878733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai Vehmanen commit 858e0ad9301d1270c02b5aca97537d2d6ee9dd68 upstream. When system is suspended with active audio playback to HDMI/DP, two alternative sequences can happen at resume: a) monitor is detected first and ALSA prepare follows normal stream setup sequence, or b) ALSA prepare is called first, but monitor is not yet detected, so PCM is restarted without a pin, In case of (b), on i915 systems, haswell_verify_D0() is not called at resume and the pin power state may be incorrect. Result is lack of audio after resume with no error reported back to user-space. Fix the problem by always verifying converter and pin state in the i915_pin_cvt_fixup(). BugLink: https://github.com/thesofproject/linux/issues/2388 Signed-off-by: Kai Vehmanen Cc: Link: https://lore.kernel.org/r/20200826170306.701566-1-kai.vehmanen@linux.intel.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -2798,6 +2798,7 @@ static void i915_pin_cvt_fixup(struct hd hda_nid_t cvt_nid) { if (per_pin) { + haswell_verify_D0(codec, per_pin->cvt_nid, per_pin->pin_nid); snd_hda_set_dev_select(codec, per_pin->pin_nid, per_pin->dev_id); intel_verify_pin_cvt_connect(codec, per_pin);