From: Takashi Iwai Subject: Re: [PATCH] rme96 synchronization support Date: Tue, 13 Aug 2013 12:37:56 +0200 Message-ID: References: <51FF9C55.80701@t-online.de> <51FFA643.7060504@ladisch.de> <52013579.7020304@t-online.de> <52037864.9000205@t-online.de> <520A0B2C.7060500@t-online.de> 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 EDFC52619DE for ; Tue, 13 Aug 2013 12:36:32 +0200 (CEST) In-Reply-To: <520A0B2C.7060500@t-online.de> 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: Knut Petersen Cc: alsa-devel@alsa-project.org, Clemens Ladisch List-Id: alsa-devel@alsa-project.org At Tue, 13 Aug 2013 12:32:12 +0200, Knut Petersen wrote: > > On 13.08.2013 09:19, Takashi Iwai wrote: > > Well, looking at rme96.c, the rme96 driver code can be cleaned up and > > lots of redundant checks can be reduced, then the sync-support patch > > will be the half size. For example, it's almost useless to check > > RME96_ISPLAYING() in trigger, or doing in close or prepare callback. > > (It's still valid to do it in snd_rme96_create(), though, since the > > register values are unknown at the first initialization state, > > though.) > > > > But it's no serious problem, and we can live with the current code. > > So the only problem is the coding-style issues in your patch. > > Ok, I admit that I never used scripts/checkpatch.pl ;-) Alsa, feeding the current > rme96.c code to scripts/checkpatch.pl gives 235 errors and 205 warnings: You just need to fix the coding issue of your patch, not the whole existing driver code. Takashi