mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sound driver problem for CyberAlladin
@ 2003-05-24 22:09 吉山 晃
  0 siblings, 0 replies; only message in thread
From: 吉山 晃 @ 2003-05-24 22:09 UTC (permalink / raw)
  To: linux-kernel

Hello all,

I have a problem for using Linux 2.4.2x on my laptop, and it may happen on
some other laptops.

My laptop has PemtiumIII-M 933Hz CPU and CyberAlladin(XP?) chipset
(contains an Ali5451 sound chip). If it ran Linux with AC-powered, system
hangs up on loading trident.o. But, If without AC-powered, system doesn't
hang up. (good)

I think the different is CPU clocks. I guessed that PentiumIII-M ran low
clock rate without AC-powered, so delaying code works fine. But if with
AC-powered, that doesn't works fine and takes hanging-up.

(messages on fine cases:)
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro PCI Audio, version 0.14.10h, 16:45:46 May 13 2003
ALi Audio Accelerator found at IO 0xe000, IRQ 11
ac97_codec: AC97 Audio codec, id: ADS116(Unknown)
ac97_codec: AC97 Audio codec, id: ADS116(Unknown)

(messages on bad cases:)
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro PCI Audio, version 0.14.10h, 16:45:46 May 13 2003
ALi Audio Accelerator found at IO 0xe000, IRQ 11
(and system freezes)

I tried to find the problem point with printk(). It seems below:

---
static int ali_reset_5451(struct trident_card *card)
{
        struct pci_dev *pci_dev = NULL;
        unsigned int   dwVal;
        unsigned short wCount, wReg;

        pci_dev = pci_find_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, pci_dev);
        if (pci_dev == NULL)
                return -1;
        
        pci_read_config_dword(pci_dev, 0x7c, &dwVal);
        pci_write_config_dword(pci_dev, 0x7c, dwVal | 0x08000000);
/* the last working printk() */
        udelay(5000);
/* non-working printk() */
        pci_read_config_dword(pci_dev, 0x7c, &dwVal);
        pci_write_config_dword(pci_dev, 0x7c, dwVal & 0xf7ffffff);
        udelay(5000);

        pci_dev = card->pci_dev;
        if (pci_dev == NULL)
                return -1;
---

Any advice? Thank you.

	A.Yoshiyama <yosshy@debian.or.jp>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-24 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-24 22:09 sound driver problem for CyberAlladin 吉山 晃

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®