All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
	Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Subject: Re: [alsa-devel] [PATCH] ASoC: SOF: intel: Fix probe error without i915 graphics
Date: Mon, 17 Feb 2020 14:55:13 +0100	[thread overview]
Message-ID: <s5hk14lgvy6.wl-tiwai@suse.de> (raw)
In-Reply-To: <alpine.DEB.2.21.2002171506330.2957@eliteleevi.tm.intel.com>

On Mon, 17 Feb 2020 14:17:54 +0100,
Kai Vehmanen wrote:
> 
> Hey,
> 
> On Sun, 16 Feb 2020, Takashi Iwai wrote:
> 
> > @@ -200,6 +202,9 @@ int hda_codec_i915_exit(struct snd_sof_dev *sdev)
> >  	struct hdac_bus *bus = sof_to_bus(sdev);
> >  	int ret;
> >  
> > +	if (!bus->audio_component) /* not bound with i915 */
> > +		return 0;
> > +
> >  	hda_codec_i915_display_power(sdev, false);
> >  
> >  	ret = snd_hdac_i915_exit(bus);
> 
> hmm, actually found the issue in my patch. It turned out to be a bit 
> suprising issue with acomp&devres.
> 
>  snd_hdac_i915_exit() calls
>    -> snd_hdac_acomp_exit(), which again calls
>    -> component.c:component_master_del(dev, &hdac_component_master_ops);
>    -> component.c:take_down_master()
>    -> devres.c:devres_release_group(master->dev, NULL);
> 
> ...  now that is somewhat suprising. Basicly that goes on to release all 
> devres resources for the hdac_bus device (not just those related to 
> acomp!).

Does it really?  I thought it applies only to the group, and id=NULL
indicating that it's a local group that was created with id=NULL (by
address match).


Takashi

> 
> I can fix my immediate problem by not calling snd_hdac_i915_exit() if 
> hdac_bus contineus to be used, but I'm a bit worried we could hit this in 
> other flows.
> 
> Anyways, FYI at least for the list archives.
> 
> Br, Kai
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2020-02-17 13:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-16 20:35 [alsa-devel] [PATCH] ASoC: SOF: intel: Fix probe error without i915 graphics Takashi Iwai
2020-02-17  9:11 ` Kai Vehmanen
2020-02-17  9:17   ` Takashi Iwai
2020-02-17  9:45     ` Kai Vehmanen
2020-02-17 13:17 ` Kai Vehmanen
2020-02-17 13:55   ` Takashi Iwai [this message]
2020-02-17 14:21     ` Kai Vehmanen
2020-02-17 14:25       ` Takashi Iwai
2020-02-18 11:12         ` 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=s5hk14lgvy6.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=kai.vehmanen@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 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.