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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux