From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
alsa-devel@alsa-project.org, libin.yang@linux.intel.com,
Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Subject: Re: [PATCH 1/2] ALSA: hda/hdmi: fix failures at PCM open on Intel ICL and later
Date: Tue, 07 Jul 2020 10:13:29 +0200 [thread overview]
Message-ID: <s5h5zazg2ty.wl-tiwai@suse.de> (raw)
In-Reply-To: <20200703153818.2808592-1-kai.vehmanen@linux.intel.com>
On Fri, 03 Jul 2020 17:38:17 +0200,
Kai Vehmanen wrote:
>
> When HDMI PCM devices are opened in a specific order, with at least one
> HDMI/DP receiver connected, ALSA PCM open fails to -EBUSY on the
> connected monitor, on recent Intel platforms (ICL/JSL and newer). While
> this is not a typical sequence, at least Pulseaudio does this every time
> when it is started, to discover the available PCMs.
>
> The rootcause is an invalid assumption in hdmi_add_pin(), where the
> total number of converters is assumed to be known at the time the
> function is called. On older Intel platforms this held true, but after
> ICL/JSL, the order how pins and converters are in the subnode list as
> returned by snd_hda_get_sub_nodes(), was changed. As a result,
> information for some converters was not stored to per_pin->mux_nids.
> And this means some pins cannot be connected to all converters, and
> application instead gets -EBUSY instead at open.
>
> The assumption that converters are always before pins in the subnode
> list, is not really a valid one. Fix the problem in hdmi_parse_codec()
> by introducing separate loops for discovering converters and pins.
>
> BugLink: https://github.com/thesofproject/linux/issues/1978
> BugLink: https://github.com/thesofproject/linux/issues/2216
> BugLink: https://github.com/thesofproject/linux/issues/2217
> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Thanks, applied.
Takashi
prev parent reply other threads:[~2020-07-07 8:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 15:38 [PATCH 1/2] ALSA: hda/hdmi: fix failures at PCM open on Intel ICL and later Kai Vehmanen
2020-07-03 15:38 ` [PATCH 2/2] ALSA: hda/hdmi: improve debug traces for stream lookups Kai Vehmanen
2020-07-07 8:14 ` Takashi Iwai
2020-07-07 8:13 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5h5zazg2ty.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=libin.yang@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).