Re: Boot problem, 2.4.19-rc3-ac1

From: Ian Soboroff (ian.soboroff@nist.gov)
Date: Wed Jul 24 2002 - 08:46:49 EST


Muli Ben-Yehuda <mulix@actcom.co.il> writes:

> On Wed, Jul 24, 2002 at 09:16:05AM -0400, Ian Soboroff wrote:
>
> [snipped]
>
> > [1] Actually, two one-liner patches... one to extend the ext3 journal
> > commit interval to 30 seconds, and another to fix suspend issues in
> > sound/trident.c.
>
> what's the suspend issue with trident.c?

Haven't witnessed personally. Reference web pages (from Linux on
Laptops) are
http://www.geocities.com/robm351/lifebook/ and
http://www4.ncsu.edu/~tscoffe2/Fujitsu/

Apparently there is a problem with losing sound after a suspend.
Another reported fix is to reload the trident.o module. The patch I
use (credited to Eric Lemar) is:

--- linux/drivers/sound/trident.c Thu Mar 28 16:08:51 2002
+++ linux/drivers/sound/trident_new.c Thu Mar 28 16:11:20 2002
@@ -3456,7 +3456,7 @@
 
 static int trident_suspend(struct pci_dev *dev, u32 unused)
 {
- struct trident_card *card = (struct trident_card *) dev;
+ struct trident_card *card = pci_get_drvdata(dev);
 
        if(card->pci_id == PCI_DEVICE_ID_ALI_5451) {
                ali_save_regs(card);
@@ -3466,7 +3466,7 @@
 
 static int trident_resume(struct pci_dev *dev)
 {
- struct trident_card *card = (struct trident_card *) dev;
+ struct trident_card *card = pci_get_drvdata(dev);
 
        if(card->pci_id == PCI_DEVICE_ID_ALI_5451) {
                ali_restore_regs(card);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:16 EST