All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: liam.r.girdwood@linux.intel.com, patches.audio@intel.com,
	alsa-devel@alsa-project.org, broonie@kernel.org,
	Jeeja KP <jeeja.kp@intel.com>
Subject: Re: [PATCH v2 1/3] ALSA: hdac: add link pm and ref counting
Date: Mon, 9 May 2016 13:54:02 +0530	[thread overview]
Message-ID: <20160509082402.GC2274@localhost> (raw)
In-Reply-To: <s5hbn4fd52q.wl-tiwai@suse.de>

On Mon, May 09, 2016 at 10:10:53AM +0200, Takashi Iwai wrote:
> 
> You need to check whether there is any link, not the number of links,
> right?  Then it'd be like:

Yes thinking it from other way, I do agree with this.
Will change it

> 
> 	link_up = false;
> 	list_for_each_entry(hlink, &ebus->hlink_list, list) {
> 		if (hlink->ref_count) {
> 			link_up = true;
> 			break;
> 		}
> 	}
> 
> 	if (!link_up) {
> 		cmd_io_off();
> 	}
> 
> 

-- 
~Vinod

  reply	other threads:[~2016-05-09  8:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05  6:01 [PATCH v2 0/3] ASoC: Intel: Skylake: Add HDA link management Vinod Koul
2016-05-05  6:01 ` [PATCH v2 1/3] ALSA: hdac: add link pm and ref counting Vinod Koul
2016-05-09  4:41   ` Vinod Koul
2016-05-09  6:40     ` Takashi Iwai
2016-05-09  7:58       ` Vinod Koul
2016-05-09  8:10         ` Takashi Iwai
2016-05-09  8:24           ` Vinod Koul [this message]
2016-05-05  6:01 ` [PATCH v2 2/3] ASoC: Intel: Skylake: add link management Vinod Koul
2016-05-05  6:01 ` [PATCH v2 3/3] ASoC: hdac_hdmi: " Vinod Koul
2016-05-13 12:26   ` Applied "ASoC: hdac_hdmi: add link management" to the asoc tree Mark Brown

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=20160509082402.GC2274@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jeeja.kp@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=patches.audio@intel.com \
    --cc=tiwai@suse.de \
    /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.