From: Takashi Iwai <tiwai@suse.de>
To: Mikhail Paulyshka <me@mixaill.net>
Cc: "Takashi Iwai" <tiwai@suse.de>,
linux-sound@vger.kernel.org,
"Richard Fitzgerald" <rf@opensource.cirrus.com>,
Kailang <kailang@realtek.com>,
"Kai Vehmanen" <kai.vehmanen@linux.intel.com>,
"Cezary Rojewski" <cezary.rojewski@intel.com>,
"Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>,
patches@opensource.cirrus.com, "Baojun Xu" <baojun.xu@ti.com>,
"bo liu" <bo.liu@senarytech.com>
Subject: Re: [PATCH 23/27] ALSA: hda/hdmi: Rewrite to new probe method
Date: Mon, 18 Aug 2025 09:18:55 +0200 [thread overview]
Message-ID: <87bjodrtb4.wl-tiwai@suse.de> (raw)
In-Reply-To: <14a14afe-eea9-4888-95e1-9b82c1e855e8@mixaill.net>
On Sun, 17 Aug 2025 12:55:48 +0200,
Mikhail Paulyshka wrote:
>
> On 7/9/25 7:04 PM, Takashi Iwai wrote:
> > diff --git a/sound/hda/codecs/hdmi/intelhdmi.c b/sound/hda/codecs/hdmi/intelhdmi.c
> > index a88ac1f80db6..23237d527430 100644
> > --- a/sound/hda/codecs/hdmi/intelhdmi.c
> > +++ b/sound/hda/codecs/hdmi/intelhdmi.c
> > @@ -701,51 +698,104 @@ static int patch_i915_byt_hdmi(struct hda_codec *codec)
> > }
> > /* Intel IronLake, SandyBIridge and IvyBridge; with eld notifier
> > */
> > -static int patch_i915_cpt_hdmi(struct hda_codec *codec)
> > +static int probe_i915_cpt_hdmi(struct hda_codec *codec)
> > +{
> > + return parse_intel_hdmi(codec);
> > +}
> > +
> > +/*
> > + * common driver probe
> > + */
> > +static int intelhdmi_probe(struct hda_codec *codec, const struct hda_device_id *id)
> > {
> > int err;
> > err = alloc_intel_hdmi(codec);
> > if (err < 0)
> > return err;
> > - return parse_intel_hdmi(codec);
> > +
> > + switch (id->driver_data) {
> > + case MODEL_HSW:
> > + err = probe_i915_hsw_hdmi(codec);
> > + break;
> > + case MODEL_GLK:
> > + err = probe_i915_glk_hdmi(codec);
> > + break;
> > + case MODEL_ICL:
> > + err = probe_i915_icl_hdmi(codec);
> > + break;
> > + case MODEL_TGL:
> > + err = probe_i915_tgl_hdmi(codec);
> > + break;
> > + case MODEL_ADLP:
> > + err = probe_i915_adlp_hdmi(codec);
> > + break;
> > + case MODEL_BYT:
> > + err = probe_i915_byt_hdmi(codec);
> > + break;
> > + case MODEL_CPT:
> > + err = probe_i915_cpt_hdmi(codec);
> > + break;
> > + default:
> > + err = -EINVAL;
> > + break;
> > + }
> > +
> > + if (err < 0) {
> > + snd_hda_hdmi_generic_spec_free(codec);
>
> Is this the intended behavior? It modifies the codec state even when
> it does not match any Intel model. We have reports from users on
> 6.17-rc1 with AMD BC-250 hardware experiencing HDMI audio detection
> issues. Adding a check for |EINVAL| resolves the problem.
Have you enabled CONFIG_SND_HDA_CODEC_HDMI_ATI?
The probe of intelhdmi.c is only for Intel chips, and no other devices
will be probed, as you can find in snd_hda_id_intelhdmi[] array.
thanks,
Takashi
next prev parent reply other threads:[~2025-08-18 7:18 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 16:04 [PATCH 00/27] ALSA: Reorganize HD-audio driver code Takashi Iwai
2025-07-09 16:04 ` [PATCH 01/27] ALSA: hda: Move widget capability macros into hdaudio.h Takashi Iwai
2025-07-14 8:40 ` Cezary Rojewski
2025-07-09 16:04 ` [PATCH 02/27] ALSA: hda: Move HD-audio core stuff into sound/hda/core Takashi Iwai
2025-07-14 8:41 ` Cezary Rojewski
2025-07-09 16:04 ` [PATCH 03/27] ALSA: hda: Move common codec driver into sound/hda/common directory Takashi Iwai
2025-07-09 16:04 ` [PATCH 04/27] ALSA: hda: Move CONFIG_SND_HDA_PREALLOC_SIZE into sound/hda/common Takashi Iwai
2025-07-09 16:04 ` [PATCH 05/27] ALSA: hda: Move controller drivers into sound/hda/controllers directory Takashi Iwai
2025-10-14 3:41 ` [REGRESSION][BISECTED] My audio broke (was: [PATCH 05/27] ALSA: hda: Move controller drivers into sound/hda/controllers directory) Askar Safin
2025-10-14 6:04 ` Takashi Iwai
2025-10-15 4:37 ` Askar Safin
2025-10-15 5:51 ` Takashi Iwai
2025-10-15 6:49 ` Askar Safin
2025-10-15 7:47 ` Takashi Iwai
2025-10-15 11:44 ` Askar Safin
2025-10-15 12:05 ` Takashi Iwai
2025-10-15 14:57 ` Askar Safin
2025-10-15 15:18 ` Takashi Iwai
2025-10-15 15:45 ` Askar Safin
2025-10-15 15:54 ` Takashi Iwai
2025-10-16 2:37 ` Askar Safin
2025-10-16 4:50 ` Askar Safin
2025-10-16 6:03 ` Askar Safin
2025-10-16 9:52 ` Takashi Iwai
2025-10-28 12:05 ` Takashi Iwai
2025-10-28 13:03 ` Askar Safin
2025-10-29 12:23 ` Askar Safin
2025-12-02 19:21 ` Askar Safin
2025-12-03 9:42 ` Takashi Iwai
2025-12-06 21:39 ` Askar Safin
2025-12-09 7:57 ` Takashi Iwai
2025-12-09 9:27 ` Takashi Iwai
2025-12-10 1:45 ` Askar Safin
2025-12-10 13:00 ` Takashi Iwai
2025-12-10 13:55 ` Thorsten Leemhuis
2025-12-11 18:11 ` Askar Safin
2025-10-15 15:02 ` Askar Safin
2025-10-15 5:01 ` Askar Safin
2025-07-09 16:04 ` [PATCH 06/27] ALSA: hda: Move codec drivers into sound/hda/codecs directory Takashi Iwai
2025-07-10 10:05 ` Richard Fitzgerald
2025-07-14 8:57 ` Cezary Rojewski
2025-07-14 9:04 ` Takashi Iwai
2025-07-14 9:08 ` Cezary Rojewski
2025-07-14 9:15 ` Takashi Iwai
2025-07-14 9:35 ` Cezary Rojewski
2025-07-14 10:17 ` Takashi Iwai
2025-07-09 16:04 ` [PATCH 07/27] ALSA: hda: Split Realtek HD-audio codec driver Takashi Iwai
2025-07-14 9:02 ` Cezary Rojewski
2025-07-09 16:04 ` [PATCH 08/27] ALSA: hda/hdmi: Split vendor codec drivers Takashi Iwai
2025-07-09 16:04 ` [PATCH 09/27] ALSA: hda: Introduce hda_codec_driver ops Takashi Iwai
2025-07-09 16:04 ` [PATCH 10/27] ALSA: hda/generic: Rewrite to new probe method Takashi Iwai
2025-07-09 16:04 ` [PATCH 11/27] ALSA: hda/realtek: " Takashi Iwai
2025-07-31 3:20 ` ALC887-VD line-in not visible Arthur Marsh
2025-07-31 5:33 ` Takashi Iwai
2025-07-31 12:32 ` Arthur Marsh
2025-07-31 12:37 ` Takashi Iwai
2025-07-31 13:01 ` Arthur Marsh
2025-07-09 16:04 ` [PATCH 12/27] ALSA: hda/cmedia: Rewrite to new probe method Takashi Iwai
2025-07-09 16:04 ` [PATCH 13/27] ALSA: hda/analog: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 14/27] ALSA: hda/ca0110: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 15/27] ALSA: hda/cirrus: Split to cs420x and cs421x drivers Takashi Iwai
2025-07-09 16:04 ` [PATCH 16/27] ALSA: hda/cs8409: Rewrite to new probe method Takashi Iwai
2025-07-10 10:25 ` Richard Fitzgerald
2025-07-09 16:04 ` [PATCH 17/27] ALSA: hda/conexant: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 18/27] ALSA: hda/senary: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 19/27] ALSA: hda/si3054: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 20/27] ALSA: hda/via: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 21/27] ALSA: hda/sigmatel: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 22/27] ALSA: hda/ca0132: " Takashi Iwai
2025-07-09 16:04 ` [PATCH 23/27] ALSA: hda/hdmi: " Takashi Iwai
2025-08-17 10:55 ` Mikhail Paulyshka
2025-08-18 7:18 ` Takashi Iwai [this message]
2025-07-09 16:04 ` [PATCH 24/27] ALSA: hda: Drop old codec binding method Takashi Iwai
2025-07-09 16:04 ` [PATCH 25/27] ALSA: hda: Drop superfluous driver->ops NULL checks Takashi Iwai
2025-07-09 16:04 ` [PATCH 26/27] MAINTAINERS: Adjust to the new HD-audio driver paths Takashi Iwai
2025-07-10 10:30 ` Richard Fitzgerald
2025-07-09 16:04 ` [PATCH 27/27] ALSA: hda: Return the codec init error properly at snd_hda_codec_build_controls() Takashi Iwai
2025-07-11 12:55 ` [PATCH 00/27] ALSA: Reorganize HD-audio driver code Takashi Iwai
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=87bjodrtb4.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=amadeuszx.slawinski@linux.intel.com \
--cc=baojun.xu@ti.com \
--cc=bo.liu@senarytech.com \
--cc=cezary.rojewski@intel.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=kailang@realtek.com \
--cc=linux-sound@vger.kernel.org \
--cc=me@mixaill.net \
--cc=patches@opensource.cirrus.com \
--cc=rf@opensource.cirrus.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.