From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 2/2] sound: usb: allow clock source validity interrupts Date: Sat, 09 Apr 2016 17:25:16 +0200 Message-ID: References: <1460137922-8993-1-git-send-email-daniel@zonque.org> <1460137922-8993-2-git-send-email-daniel@zonque.org> <5708C88B.8080809@zonque.org> <570913A8.6090203@zonque.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 9AB89261685 for ; Sat, 9 Apr 2016 17:25:17 +0200 (CEST) In-Reply-To: <570913A8.6090203@zonque.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Daniel Mack Cc: orm.finnendahl@selma.hfmdk-frankfurt.de, alsa-devel@alsa-project.org, clemens@ladisch.de, jan.baumgart@selma.hfmdk-frankfurt.de List-Id: alsa-devel@alsa-project.org On Sat, 09 Apr 2016 16:37:28 +0200, Daniel Mack wrote: > > On 04/09/2016 11:51 AM, Takashi Iwai wrote: > > On Sat, 09 Apr 2016 11:16:59 +0200, Daniel Mack wrote: > >> On 04/09/2016 10:52 AM, Takashi Iwai wrote: > > >>> Just for checking count=0 and count=1, we need no loop to count > >>> beforehand. > >>> if (info->control != control && > >>> (list != mixer->id_elems[unit] || > >>> list->list_next_id_elem)) > >>> continue; > >>> > >>> But, this doesn't look better and is more harder to understand, so I'm > >>> not willing to sell it :) > >> > >> I had something like that before but opted for the more readable > >> version. But you're right. I'll add a comment and do it your way. > > > > Oh no, sorry, I wasn't clear: I meant that my version is worse in the > > end, and I prefer your first version, just for simplicity. > > Ah ok :) Well, ultimately up to you; you have both versions, and the two > patches should apply independently anyway. > > Or I can resend both if you prefer that. Don't worry, I picked the preferred patches now (v2 for patch 1 and v1 for patch 2). thanks, Takashi