From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Re: Linux 2.6.10-rc2 Date: Tue, 16 Nov 2004 10:46:11 +0100 Message-ID: References: <9dda349204111512234f30c60d@mail.gmail.com> <1100553392.4369.1.camel@krustophenia.net> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1100553392.4369.1.camel@krustophenia.net> 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: Lee Revell Cc: Paul Blazejowski , Linus Torvalds , LKML , Diffie , alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 15 Nov 2004 16:16:31 -0500, Lee Revell wrote: > > Please report ALSA issues to alsa-devel@lists.sourceforge.net. I have > added them to the cc:. The attached patch should fix this. Takashi == Summary: [ALSA] fix sleep in atomic during prepare callback Fixed the sleep in spinlock during prepare callback. This happened only on Nforce chips. Signed-off-by: Takashi Iwai --- linux/sound/pci/intel8x0.c 15 Nov 2004 14:19:52 -0000 1.173 +++ linux/sound/pci/intel8x0.c 16 Nov 2004 09:41:47 -0000 @@ -1020,7 +1020,9 @@ static void snd_intel8x0_setup_pcm_out(i */ if (cnt & ICH_PCM_246_MASK) { iputdword(chip, ICHREG(GLOB_CNT), cnt & ~ICH_PCM_246_MASK); + spin_unlock_irq(&chip->reg_lock); msleep(50); /* grrr... */ + spin_lock_irq(&chip->reg_lock); } } else if (chip->device_type == DEVICE_INTEL_ICH4) { if (runtime->sample_bits > 16) ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8