Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A58821C08 for ; Wed, 28 Dec 2022 16:55:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AB44C433D2; Wed, 28 Dec 2022 16:55:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672246535; bh=AkwOYqdg9Anqg//hDqMyofhI8bJ/K+9h204v0IkKnTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GtIj/Rqsr7AG/gBOFKyvlq6bYIirRIC4BgLu03ZuzmUgP/7qvSkjm/wqBZzm8LKF5 Za+iv9Do2V0A4JxdXEGI/uZYVEGcJwWDECrDcdxRgpQp8P2LstwaExOg4UJ2LDESEW TxFpnS9Zaqo9UtbqJfhUKSrMAs5N4Bz/o2+oq/eM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Kai Vehmanen , Pierre-Louis Bossart , Rodrigo Vivi , Takashi Iwai , Sasha Levin Subject: [PATCH 6.1 1073/1146] ALSA: hda/hdmi: set default audio parameters for KAE silent-stream Date: Wed, 28 Dec 2022 15:43:32 +0100 Message-Id: <20221228144359.384002742@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221228144330.180012208@linuxfoundation.org> References: <20221228144330.180012208@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Kai Vehmanen [ Upstream commit b17e7ea041d8b565063632501ca4597afd105102 ] If the stream-id is zero, the keep-alive (KAE) will only ensure clock is generated, but no audio samples are sent over display link. This happens before first real audio stream is played out to a newly connected receiver. Reuse the code in silent_stream_enable() to set up stream parameters to sane defaults values, also when using the newer keep-alive flow. Fixes: 15175a4f2bbb ("ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2") Signed-off-by: Kai Vehmanen Reviewed-by: Pierre-Louis Bossart Tested-by: Rodrigo Vivi Link: https://lore.kernel.org/r/20221209101822.3893675-3-kai.vehmanen@linux.intel.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 35bef8fcd240..3ebe8260485b 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1738,6 +1738,7 @@ static void silent_stream_enable(struct hda_codec *codec, switch (spec->silent_stream_type) { case SILENT_STREAM_KAE: + silent_stream_enable_i915(codec, per_pin); silent_stream_set_kae(codec, per_pin, true); break; case SILENT_STREAM_I915: -- 2.35.1