From: Takashi Iwai Subject: Re: ac97 oops in ali modem driver Date: Wed, 05 Oct 2005 11:57:47 +0200 Message-ID: References: <20051003010109.GA27888@redhat.com> <20051003143448.GA15786@tecr> <20051005000132.GA23616@tecr> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id CC500191 for ; Wed, 5 Oct 2005 11:57:52 +0200 (MEST) In-Reply-To: <20051005000132.GA23616@tecr> 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: Sasha Khapyorsky Cc: Dave Jones , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 5 Oct 2005 03:01:32 +0300, Sasha Khapyorsky wrote: > > On 13:05 Tue 04 Oct , Takashi Iwai wrote: > > At Mon, 3 Oct 2005 17:34:48 +0300, > > Sasha Khapyorsky wrote: > > > > > > On 21:01 Sun 02 Oct , Dave Jones wrote: > > > > I just had a user file a Fedora bug with the following oops. > > > > > > Is there other messages from ali5451 loading? The sound works I guess? > > > What do you see when 'ls /proc/asound/ali5451/codec97#0'? > > > > Maybe the probe of secondary codec failed? > > Then the patch below might fix. > > Quite possible and we expect to see something about it in dmesg. > The patch is obviously correct and will help in such cases. Frankly I > would prefer like this: > > > --- alsa-kernel/pci/ali5451/ali5451.c 4 Oct 2005 12:50:44 -0000 1.73 > +++ alsa-kernel/pci/ali5451/ali5451.c 4 Oct 2005 23:06:43 -0000 > @@ -1844,7 +1844,7 @@ static int __devinit snd_ali_build_pcms( > { > int i, err; > for(i = 0 ; i < codec->num_of_codecs && i < ARRAY_SIZE(ali_pcms) ; i++) > - if((err = snd_ali_pcm(codec, i, &ali_pcms[i])) < 0) > + if(codec->ac97[i] && (err = snd_ali_pcm(codec, i, &ali_pcms[i])) < 0) > return err; > return 0; > } > > > So it will be "more" on controller's side. But not critical. The NULL ac97[] and pcm[] are referred in suspend/resume code, too. It should be fixed in your case. Or correct codec->num_of_codecs as in my patch. Anyway, I already committed my patch to ALSA CVS tree. A clean up patch is welcome, of course :) Takashi ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl