[alsa-devel] [PATCH v2 1/3] ALSA: hdac: add link pm and ref counting

Vinod Koul vinod.koul at intel.com
Mon May 9 10:24:02 CEST 2016


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


More information about the Alsa-devel mailing list