Re: [PATCH] cs4232: fix crash during chip PNP detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rene Herman napisał(a):
> On 23-07-08 07:48, Krzysztof Helt wrote:
> 
> 
> Looking back, it seems this was broken at least as far back as 2.6.20 
> which would nicely show how much testing that code path gets. Do I 
> understand correctly from the backtrace that you have the PNPBIOS 
> hardware? If so, good...
> 

Yes, I borrowed old laptop with PNP bios but no ISA PnP devices.
I will test my wss_lib on it.

> > --- linux-2.6.26/sound/isa/cs423x/cs4236.c~	2008-07-23
> 07:40:16.129637645 +0200
> > +++ linux-2.6.26/sound/isa/cs423x/cs4236.c	2008-07-23 07:40:32.905641806
> +0200
> > @@ -325,6 +325,7 @@ static int __devinit snd_cs423x_pnp_init
> >  static int __devinit snd_card_cs4232_pnp(int dev, struct
> snd_card_cs4236 *acard,
> >  					 struct pnp_dev *pdev)
> >  {
> > +	acard->wss = pdev;
> >  	if (snd_cs423x_pnp_init_wss(dev, acard->wss) > 0)
> >  		return -EBUSY;
> >  	cport[dev] = -1;
> > 
> 
> Acked-by: Rene Herman >rene.herman@xxxxxxxxx>
> 
> (I believe I noticed earlier that struct snd_cs4236->wss, ctrl and mpu 
> really needn't/shouldn't be kept around in the first place and you could 
> just pass pdev directly as well but that's for another cleanup; this has 
> it look most similar to the card variant)
> 

Feel free to changed it but I prefer to have the wss_lib patches merged first to avoid
conflicts and redoing the patches.


Krzysztof

----------------------------------------------------------------------
Galeria absurdow.
zobacz >>> http://link.interia.pl/f1e5e

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux