From: Takashi Iwai Subject: Re: [PATCH] Huge AZT3328 driver update Date: Mon, 24 Oct 2005 14:43:58 +0200 Message-ID: References: <20051023175734.GA14252@rhlx01.fht-esslingen.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20051023175734.GA14252@rhlx01.fht-esslingen.de> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: andi@lisas.de Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sun, 23 Oct 2005 19:57:34 +0200, Andreas Mohr wrote: > -static int snd_azf3328_playback_trigger(snd_pcm_substream_t * substream, int cmd) > +static int > +snd_azf3328_playback_trigger(snd_pcm_substream_t * substream, int cmd) > { > azf3328_t *chip = snd_pcm_substream_chip(substream); > snd_pcm_runtime_t *runtime = substream->runtime; > int result = 0; > unsigned int status1; > + spinlock_t *reg_lock_ptr; > > snd_azf3328_dbgcalls("snd_azf3328_playback_trigger cmd %d\n", cmd); > + > + reg_lock_ptr = &chip->reg_lock; Better to use the conventional style, spin_lock(&foo->lock). > /* this is just analogous to playback; I'm not quite sure whether recording > * should actually be triggered like that */ > -static int snd_azf3328_capture_trigger(snd_pcm_substream_t * substream, int cmd) > +static int > +snd_azf3328_capture_trigger(snd_pcm_substream_t * substream, int cmd) > { > azf3328_t *chip = snd_pcm_substream_chip(substream); > snd_pcm_runtime_t *runtime = substream->runtime; > int result = 0; > unsigned int status1; > + spinlock_t *reg_lock_ptr; Ditto. > -static irqreturn_t snd_azf3328_interrupt(int irq, void *dev_id, struct pt_regs *regs) > +static irqreturn_t > +snd_azf3328_interrupt(int irq, void *dev_id, struct pt_regs *regs) > { > azf3328_t *chip = dev_id; > - unsigned int status, which; > - static unsigned long count; > + u8 status, which; > + static unsigned long irq_count; > + spinlock_t *reg_lock_ptr; Ditto. Otherwise looks fine to me. Could you fix the above? Thanks, Takashi ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information