From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 EC9D9C3DA7A for ; Sun, 25 Dec 2022 18:52:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0136910E081; Sun, 25 Dec 2022 18:52:41 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by gabe.freedesktop.org (Postfix) with ESMTPS id D42CF10E081 for ; Sun, 25 Dec 2022 18:52:38 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A03624D2A6; Sun, 25 Dec 2022 18:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1671994352; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T0jDXgDPKoI92VGHx1VuZzgyrw1JEXmrqtiTV2NcFXY=; b=0Ehbq02cUPksS9pjNNMQNX7S9GJP2o6KNNrYoL4ZB079be8AOhbEzKeIiXITtZvsitAT5N THyZfiuMgdmBim435BCkJgehoTKI4MhXWJZsGwOC4rEJhi8BJWWABawREYomuwPiTX1588 USsx82iB53tqvnIIns4MEO58I+3XhsQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1671994352; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T0jDXgDPKoI92VGHx1VuZzgyrw1JEXmrqtiTV2NcFXY=; b=+H4VVhFA/IFTqtP6Jjs35jxNrbM7Q7mtOEQM3Cd5eMWpaAZQ8NpDsjWK5gdDM5v45/J+0m Fjy4Ry5NJSOum3Bw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7EF9A138F2; Sun, 25 Dec 2022 18:52:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kxbRHfCbqGN/dQAAMHmgww (envelope-from ); Sun, 25 Dec 2022 18:52:32 +0000 Date: Sun, 25 Dec 2022 19:52:31 +0100 Message-ID: <87edsnxqmo.wl-tiwai@suse.de> From: Takashi Iwai To: Michael =?ISO-8859-1?Q?La=DF?= Subject: Re: [PATCH] ALSA: hda/hdmi: Use only dynamic PCM device allocation In-Reply-To: <1c9c00dec72c241a399b3b7c0a305382a5712529.camel@bi-co.net> References: <20220922084017.25925-1-perex@perex.cz> <1c9c00dec72c241a399b3b7c0a305382a5712529.camel@bi-co.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ALSA development , amd-gfx@lists.freedesktop.org, Kai Vehmanen , Jaroslav Kysela Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Sun, 25 Dec 2022 13:14:28 +0100, Michael Laß wrote: > > CC'ing amd-gfx as this might be an issue in the amd driver. > > This change causes a regression in Linux 6.1 at least on some AMD APUs. > There are reports from users with Ryzen 4750U, 5800U and 5850U chips > where the HDMI sound devices don't show up anymore. I'm affected by > this as well. > > Reverting this commit (ef6f5494) makes the HDMI audio devices show up > again. I verified that this is still an issue in current Linux git > (72a85e2b). > > Am Donnerstag, dem 22.09.2022 um 10:40 +0200 schrieb Jaroslav Kysela: > > > Per discussion on the alsa-devel mailing list [1], the legacy PIN to PCM > > > device mapping is obsolete nowadays. The maximum number of the simultaneously > > > usable PCM devices is equal to the HDMI codec converters. > > > > > > Remove the extra PCM devices (beyond the detected converters) and force > > > the use of the dynamic PCM device allocation. The legacy code is removed. > > > > > > I believe that all HDMI codecs have the jack sensing feature. Move the check > > > to the codec probe function and print a warning, if a codec without this > > > feature is detected. > > The corresponding message ("jack not detectable") is not shown on the > affected system. > > > > [1] https://lore.kernel.org/alsa-devel/2f37e0b2-1e82-8c0b-2bbd-1e5038d6ecc6@perex.cz/ > > Links to some reports of this issue: > https://bugzilla.kernel.org/show_bug.cgi?id=216836 > https://bbs.archlinux.org/viewtopic.php?pid=2075700 > https://bugs.archlinux.org/task/76917 > https://www.reddit.com/r/archlinux/comments/zsqq7i/hdmi_audio_is_broken_after_updating_kernel_to_611 Could you give alsa-info.sh outputs from both working and non-working cases? Run the script with --no-upload option during the playback of HDMI stream, and attach the outputs. thanks, Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 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 56D58C3DA7A for ; Sun, 25 Dec 2022 18:56:09 +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 7F2214B7A; Sun, 25 Dec 2022 19:55:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7F2214B7A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1671994567; bh=326izX67yjiN436eCBu0Fb/Yw6vjnp9+rsrV0fi0vF4=; h=Date:From:To:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=X2uAG+bk9f4jEOGvqPng7w1r1JNdXh4dxSLppoCWdnuGwQVDFyMbW+F0nxRhQOqZe ZrwBXwYds4xeSIJ7DkRaIltWSQI/wxZTKagl8KeCkPWulExZIPr78dTjK8gsYj6CuK /Q3d7Onh016rbi9mbXYqvDS1CvRrOhuGB5rmLI/A= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 419F1F80537; Sun, 25 Dec 2022 19:52:37 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2EE68F80535; Sun, 25 Dec 2022 19:52:36 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 17D85F8051C for ; Sun, 25 Dec 2022 19:52:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 17D85F8051C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=0Ehbq02c; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=+H4VVhFA Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A03624D2A6; Sun, 25 Dec 2022 18:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1671994352; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T0jDXgDPKoI92VGHx1VuZzgyrw1JEXmrqtiTV2NcFXY=; b=0Ehbq02cUPksS9pjNNMQNX7S9GJP2o6KNNrYoL4ZB079be8AOhbEzKeIiXITtZvsitAT5N THyZfiuMgdmBim435BCkJgehoTKI4MhXWJZsGwOC4rEJhi8BJWWABawREYomuwPiTX1588 USsx82iB53tqvnIIns4MEO58I+3XhsQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1671994352; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T0jDXgDPKoI92VGHx1VuZzgyrw1JEXmrqtiTV2NcFXY=; b=+H4VVhFA/IFTqtP6Jjs35jxNrbM7Q7mtOEQM3Cd5eMWpaAZQ8NpDsjWK5gdDM5v45/J+0m Fjy4Ry5NJSOum3Bw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7EF9A138F2; Sun, 25 Dec 2022 18:52:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id kxbRHfCbqGN/dQAAMHmgww (envelope-from ); Sun, 25 Dec 2022 18:52:32 +0000 Date: Sun, 25 Dec 2022 19:52:31 +0100 Message-ID: <87edsnxqmo.wl-tiwai@suse.de> From: Takashi Iwai To: Michael =?ISO-8859-1?Q?La=DF?= Subject: Re: [PATCH] ALSA: hda/hdmi: Use only dynamic PCM device allocation In-Reply-To: <1c9c00dec72c241a399b3b7c0a305382a5712529.camel@bi-co.net> References: <20220922084017.25925-1-perex@perex.cz> <1c9c00dec72c241a399b3b7c0a305382a5712529.camel@bi-co.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: ALSA development , amd-gfx@lists.freedesktop.org, Kai Vehmanen Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Sun, 25 Dec 2022 13:14:28 +0100, Michael Laß wrote: > > CC'ing amd-gfx as this might be an issue in the amd driver. > > This change causes a regression in Linux 6.1 at least on some AMD APUs. > There are reports from users with Ryzen 4750U, 5800U and 5850U chips > where the HDMI sound devices don't show up anymore. I'm affected by > this as well. > > Reverting this commit (ef6f5494) makes the HDMI audio devices show up > again. I verified that this is still an issue in current Linux git > (72a85e2b). > > Am Donnerstag, dem 22.09.2022 um 10:40 +0200 schrieb Jaroslav Kysela: > > > Per discussion on the alsa-devel mailing list [1], the legacy PIN to PCM > > > device mapping is obsolete nowadays. The maximum number of the simultaneously > > > usable PCM devices is equal to the HDMI codec converters. > > > > > > Remove the extra PCM devices (beyond the detected converters) and force > > > the use of the dynamic PCM device allocation. The legacy code is removed. > > > > > > I believe that all HDMI codecs have the jack sensing feature. Move the check > > > to the codec probe function and print a warning, if a codec without this > > > feature is detected. > > The corresponding message ("jack not detectable") is not shown on the > affected system. > > > > [1] https://lore.kernel.org/alsa-devel/2f37e0b2-1e82-8c0b-2bbd-1e5038d6ecc6@perex.cz/ > > Links to some reports of this issue: > https://bugzilla.kernel.org/show_bug.cgi?id=216836 > https://bbs.archlinux.org/viewtopic.php?pid=2075700 > https://bugs.archlinux.org/task/76917 > https://www.reddit.com/r/archlinux/comments/zsqq7i/hdmi_audio_is_broken_after_updating_kernel_to_611 Could you give alsa-info.sh outputs from both working and non-working cases? Run the script with --no-upload option during the playback of HDMI stream, and attach the outputs. thanks, Takashi