From: Takashi Iwai Subject: Re: [PATCH v2 0/9] ALSA: usb-audio: Refactor set_format() Date: Tue, 06 Aug 2013 10:56:45 +0200 Message-ID: References: <1375519823-25718-1-git-send-email-eldad@fogrefinery.com> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id A447C261692 for ; Tue, 6 Aug 2013 10:55:13 +0200 (CEST) In-Reply-To: <1375519823-25718-1-git-send-email-eldad@fogrefinery.com> 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: Eldad Zack Cc: alsa-devel@alsa-project.org, Clemens Ladisch , Daniel Mack List-Id: alsa-devel@alsa-project.org At Sat, 3 Aug 2013 10:50:14 +0200, Eldad Zack wrote: > > Hi Takashi, > > This is a low-priority series (applies against current for-next). > This series refactors set_format() and moves the sync endpoint > initilization code into separate function. The quirks for > implicit feedback are moved to a separate function as well. > > The intended result is code that is easier to read without > function changes. > > Changes from v2: > * Cleaned up the patchset, indentations and whitespace fixes. > * Patch #2: removed early returns when subs->sync_endpoint is already set. > This change now follows original semantics. > * Patch #9: I first corrected it thanks to Clemens Ladisch's feedback, but > then I wasn't sure if it improves anything, so I dropped it entirely. > * Dropped patch #10. Instead, added patch (now #9) to WARN_ON and return > NULL in snd_usb_add_endpoint. Otherwise, the check should be done at each > call site, and it "shouldn't happen" anyway. Thanks, now I applied all patches to for-next branch. Takashi > > Cheers, > Eldad > > v1: > http://mailman.alsa-project.org/pipermail/alsa-devel/2013-July/064268.html > > Eldad Zack (9): > ALSA: usb-audio: remove disabled debug code in set_format > ALSA: usb-audio: remove assignment from if condition > ALSA: usb-audio: separate sync endpoint setting from set_format > ALSA: usb-audio: move implicit fb quirks to separate function > ALSA: usb-audio: reverse condition logic in set_sync_endpoint > ALSA: usb-audio: do not initialize and check implicit_fb > ALSA: usb-audio: remove is_playback from implicit feedback quirks > ALSA: usb-audio: remove implicit_fb from quirk > ALSA: usb-audio: WARN_ON when alts is passed as NULL > > sound/usb/endpoint.c | 3 + > sound/usb/pcm.c | 243 +++++++++++++++++++++++++++++---------------------- > 2 files changed, 141 insertions(+), 105 deletions(-) > > -- > 1.8.1.5 >