From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: libin.yang@intel.com, alsa-devel@alsa-project.org,
pierre-louis.bossart@linux.intel.com
Subject: Re: [alsa-devel] [PATCH v5 2/9] ASoC: hdac_hda: add support for HDMI/DP as a HDA codec
Date: Thu, 17 Oct 2019 09:59:51 +0200 [thread overview]
Message-ID: <s5hlftjiyyw.wl-tiwai@suse.de> (raw)
In-Reply-To: <alpine.DEB.2.21.1909251424570.16459@zeliteleevi>
On Wed, 25 Sep 2019 13:38:50 +0200,
Kai Vehmanen wrote:
>
> Hello,
>
> Takashi, please check whether this is ok. I'll highlight the changed
> section below:
>
> On Wed, 25 Sep 2019, Kai Vehmanen wrote:
>
> > static int hdac_hda_codec_probe(struct snd_soc_component *component)
> > {
> > struct hdac_hda_priv *hda_pvt =
> > @@ -322,6 +392,15 @@ static int hdac_hda_codec_probe(struct snd_soc_component *component)
> >
> > snd_hdac_ext_bus_link_get(hdev->bus, hlink);
> >
> > + /*
> > + * Ensure any HDA display is powered at codec probe.
> > + * After snd_hda_codec_device_new(), display power is
> > + * managed by runtime PM.
> > + */
> > + if (hda_pvt->need_display_power)
> > + snd_hdac_display_power(hdev->bus, HDA_CODEC_IDX_CONTROLLER,
> > + true);
> > +
>
> This is the new bit (and matching logic in patch 5).The bug required a
> very specific timing sequence to trigger, but a clear bug nevertheless. I
> tried to fix it in spirit of your refactoring patch of to this area
> 029d92c289bd, "ALSA: hda: Refactor display power management". I.e. just
> like snd_hda_intel's controller code, display power is enabled before
> probe and later managed by codec using common code.
>
> Additional SOF specific twist is that I need to pass the
> "need_display_power" info from SOF code (where the initial codec probe is
> done and we detect a HDMI HDA codec)), to soc/codecs/hdac_hda.c where the
> actual driver probe is run for the codec. In snd_hda_intel this is all in
> one place, so somewhat more straighforward, but logic is the same.
This change looks OK to me. The recent display power management is no
longer refcounted, so it's fine to toggle power on at the early stage
like this patch does.
thanks,
Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2019-10-17 8:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-25 11:24 [alsa-devel] [PATCH v5 0/9] adapt SOF to use snd-hda-codec-hdmi Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 1/9] ALSA: hda/hdmi - implement mst_no_extra_pcms flag Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 2/9] ASoC: hdac_hda: add support for HDMI/DP as a HDA codec Kai Vehmanen
2019-09-25 11:38 ` Kai Vehmanen
2019-10-17 7:59 ` Takashi Iwai [this message]
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 3/9] ASoC: Intel: skl-hda-dsp-generic: use snd-hda-codec-hdmi Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 4/9] ASoC: Intel: skl-hda-dsp-generic: fix include guard name Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 5/9] ASoC: SOF: Intel: add support for snd-hda-codec-hdmi Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 6/9] ASoC: Intel: bxt-da7219-max98357a: common hdmi codec support Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 7/9] ASoC: Intel: glk_rt5682_max98357a: " Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 8/9] ASoC: intel: sof_rt5682: " Kai Vehmanen
2019-09-25 11:24 ` [alsa-devel] [PATCH v5 9/9] ASoC: Intel: bxt_rt298: " Kai Vehmanen
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=s5hlftjiyyw.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=kai.vehmanen@linux.intel.com \
--cc=libin.yang@intel.com \
--cc=pierre-louis.bossart@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