From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yiliang Bao Subject: Why use spin_lock or spin_lock_irq in trigger callback (audio capture)? Date: Thu, 25 Feb 2010 13:32:16 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pz0-f192.google.com (mail-pz0-f192.google.com [209.85.222.192]) by alsa0.perex.cz (Postfix) with ESMTP id EE476103979 for ; Thu, 25 Feb 2010 22:32:18 +0100 (CET) Received: by pzk30 with SMTP id 30so12831pzk.23 for ; Thu, 25 Feb 2010 13:32:16 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi, I looked at some PCI audio capture driver like BT878 (sound/pci/bt87x.c) or SAA7134 (drivers/media/video/saa7134-alsa.c), I found that spin_lock instead of spin_lock_irq (or spin_lock_irqsave) is used in trigger function. Is there any reason for that? Thanks, Yiliang