All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@caiaq.de>
To: Mark Hills <mark@pogo.org.uk>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH 1/4] snd-usb-caiaq: Do not disable local interrupts
Date: Fri, 25 Sep 2009 18:00:24 +0200	[thread overview]
Message-ID: <20090925160024.GT21654@buzzloop.caiaq.de> (raw)
In-Reply-To: <1253892138-10827-1-git-send-email-mark@pogo.org.uk>

On Fri, Sep 25, 2009 at 04:22:15PM +0100, Mark Hills wrote:
> The driver documentation states that local interrupts are already
> disabled when trigger() is called, so only a spinlock is required.

Hmm. I assume you tested them well. But I remember to have had quite
some trouble at this point on SMP machines and ended up with that
irqsave code. However, if you're sure that fixes a bug or is not
necessary, let's take the patches and I'll test them once I'm back home
around mid Oct.

Btw - your Signed-off-by: is missing on all of them :)

Thanks,
Daniel


> ---
>  sound/usb/caiaq/audio.c |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/sound/usb/caiaq/audio.c b/sound/usb/caiaq/audio.c
> index 121af06..ce193a5 100644
> --- a/sound/usb/caiaq/audio.c
> +++ b/sound/usb/caiaq/audio.c
> @@ -72,15 +72,14 @@ static void
>  deactivate_substream(struct snd_usb_caiaqdev *dev,
>  		     struct snd_pcm_substream *sub)
>  {
> -	unsigned long flags;
> -	spin_lock_irqsave(&dev->spinlock, flags);
> +	spin_lock(&dev->spinlock);
>  
>  	if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
>  		dev->sub_playback[sub->number] = NULL;
>  	else
>  		dev->sub_capture[sub->number] = NULL;
>  
> -	spin_unlock_irqrestore(&dev->spinlock, flags);
> +	spin_unlock(&dev->spinlock);
>  }
>  
>  static int
> -- 
> 1.6.4.4
> 

  parent reply	other threads:[~2009-09-25 16:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-20 12:07 Questions on locking, snd-usb-caiaq Mark Hills
2009-09-21 13:35 ` Takashi Iwai
2009-09-22  4:53   ` Daniel Mack
2009-09-22  7:14     ` Mark Hills
2009-09-25 15:22       ` [PATCH 1/4] snd-usb-caiaq: Do not disable local interrupts Mark Hills
2009-09-25 15:22         ` [PATCH 2/4] snd-usb-caiaq: Missing lock around use of buffer positions Mark Hills
2009-09-25 15:22           ` [PATCH 3/4] snd-usb-caiaq: Lock on stream start/unpause Mark Hills
2009-09-25 15:22             ` [PATCH 4/4] snd-usb-caiaq: Bump version number to 1.3.20 Mark Hills
2009-09-25 16:00         ` Daniel Mack [this message]
2009-09-26 16:06           ` [PATCH 1/4] snd-usb-caiaq: Do not disable local interrupts Mark Hills
2009-09-28  8:33             ` Takashi Iwai
2009-10-17 16:12               ` Daniel Mack
2009-10-18 17:52                 ` Mark Hills

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090925160024.GT21654@buzzloop.caiaq.de \
    --to=daniel@caiaq.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=mark@pogo.org.uk \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.