From patchwork Fri Dec 9 10:18:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Vehmanen X-Patchwork-Id: 632910 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB3F9C4332F for ; Fri, 9 Dec 2022 10:20:42 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2273721B2; Fri, 9 Dec 2022 11:19:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2273721B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1670581241; bh=pxUMBLjt7yZoC5tJjDbXBzENM6MF7qHjgkxlHXw784A=; h=From:To:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=V1KPa/NfKYCxgUW2EzDjkH9nHfqNPfUus6+99crpNA79PQ9A+xIVHZG0YoJen2Jpj vzu/vhjlaClEM95RFXwJMAhqG68mU2BGe2GSVgjwONx+Itv7Aa4aq4FMoku4v9sB6P qKG4F23W0OFZzFvmFF9o5bf84p0Q4sqhOv9N+iK0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id ED802F804DB; Fri, 9 Dec 2022 11:18:57 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 488CFF8024D; Fri, 9 Dec 2022 11:18:56 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 58AD1F8024D for ; Fri, 9 Dec 2022 11:18:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 58AD1F8024D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hUbG4aaO DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670581135; x=1702117135; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pxUMBLjt7yZoC5tJjDbXBzENM6MF7qHjgkxlHXw784A=; b=hUbG4aaOpllV80+ijRLp3OmCBzeyg2oWZMrCMDsYAZPh4ji4gQj4p6Yo X3HvZhoeUzUSOJichRYLek6pxCT7JjKcDZuTrKfomzPev+IvEDMNeoskX GqSEuvxPQMIK/BWFZJd7g/E4eYul8TRekxg4jmTyasKbce2scek2cV4IX ww2UfxAD/ASKQ06un77YtukB+wYAxZzZMSAJ9kPte5qAZuJIc6uld1B2f 7OP9K0q0BR81rCAM5Nrcg6gwI6eemDL4vnp/AwK1ZEBCdIgNc1OgyOcR+ bbxPWHX524b6a3zXwgakqvMt4wrxMTQpAHvgBZqX4Agb5UD/KZHABnxCl g==; X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="316135200" X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="316135200" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2022 02:18:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10555"; a="649510770" X-IronPort-AV: E=Sophos;i="5.96,230,1665471600"; d="scan'208";a="649510770" Received: from eliteleevi.tm.intel.com ([10.237.54.20]) by fmsmga007.fm.intel.com with ESMTP; 09 Dec 2022 02:18:48 -0800 From: Kai Vehmanen To: alsa-devel@alsa-project.org, tiwai@suse.de Subject: [PATCH v2 2/3] ALSA: hda/hdmi: set default audio parameters for KAE silent-stream Date: Fri, 9 Dec 2022 12:18:21 +0200 Message-Id: <20221209101822.3893675-3-kai.vehmanen@linux.intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221209101822.3893675-1-kai.vehmanen@linux.intel.com> References: <20221209101822.3893675-1-kai.vehmanen@linux.intel.com> MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, Pierre-Louis Bossart , kai.vehmanen@linux.intel.com, Rodrigo Vivi Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 --- 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 48bb23745ed3..f8e6ff7f8820 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: