* Ali5451 on HP VT6200 notebook not working
@ 2002-11-21 11:29 Rafal Dejewski
2002-11-28 16:36 ` Takashi Iwai
0 siblings, 1 reply; 10+ messages in thread
From: Rafal Dejewski @ 2002-11-21 11:29 UTC (permalink / raw)
To: alsa-devel
Hi,
I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels
2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6.
The standard kernel trident module works OK on all kernels but alsa driver
does not on any.
Before rc6 the snd-ali5451 module would just hang with "(initializing)"
status. Now with rc6 or kernel 2.5.48 when I uncomment "#define ALI_DEBUG"
this what dmesg is showing:
driver pci:ALI 5451: registering
kobject ALI 5451: registering
bus pci: add driver ALI 5451
probe ...
creating ...
PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 7 for device 00:04.0
resouces allocation ...
resouces allocated.
snd_device_new is called.
chip initializing ...
ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error.
This is from /proc/pci:
Bus 0, device 4, function 0:
Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Co (rev 2).
IRQ 7.
Master Capable. Latency=64. Min Gnt=2.Max Lat=24.
I/O at 0x1000 [0x10ff].
Non-prefetchable 32 bit memory at 0xe0001000 [0xe0001fff].
Is there anything I can do to get this thing working?
Rafal
----------------------------------------------------------------------
Portal INTERIA.PL zaprasza... >>> http://link.interia.pl/f167c
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Ali5451 on HP VT6200 notebook not working 2002-11-21 11:29 Ali5451 on HP VT6200 notebook not working Rafal Dejewski @ 2002-11-28 16:36 ` Takashi Iwai 2002-11-29 9:53 ` Rafal Dejewski 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-11-28 16:36 UTC (permalink / raw) To: Rafal Dejewski; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 1184 bytes --] Hi, At Thu, 21 Nov 2002 12:29:59 +0100, Rafal Dejewski wrote: > > Hi, > I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels > 2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6. > The standard kernel trident module works OK on all kernels but alsa driver > does not on any. > Before rc6 the snd-ali5451 module would just hang with "(initializing)" > status. Now with rc6 or kernel 2.5.48 when I uncomment "#define ALI_DEBUG" > this what dmesg is showing: > driver pci:ALI 5451: registering > kobject ALI 5451: registering > bus pci: add driver ALI 5451 > probe ... > creating ... > PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try pci=usepirqmask ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ is this ok? > PCI: Found IRQ 7 for device 00:04.0 > resouces allocation ... > resouces allocated. > snd_device_new is called. > chip initializing ... > ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error. it looks like the driver failed the reset of ac97 codec. the attached patch will let the driver continue after the error. please let me know whether it works for you. ciao, Takashi [-- Attachment #2: ali-codec-fix.dif --] [-- Type: application/octet-stream, Size: 454 bytes --] Index: alsa-kernel/pci/ali5451/ali5451.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ali5451/ali5451.c,v retrieving revision 1.19 diff -u -r1.19 ali5451.c --- alsa-kernel/pci/ali5451/ali5451.c 30 Oct 2002 17:24:48 -0000 1.19 +++ alsa-kernel/pci/ali5451/ali5451.c 28 Nov 2002 16:33:44 -0000 @@ -529,7 +529,7 @@ udelay(5000); } - return -1; + return 0; } #ifdef CODEC_RESET ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-28 16:36 ` Takashi Iwai @ 2002-11-29 9:53 ` Rafal Dejewski 2002-11-29 10:12 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Rafal Dejewski @ 2002-11-29 9:53 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 2019 bytes --] On Thursday 28 November 2002 17:36, Takashi Iwai wrote: > Hi, > > At Thu, 21 Nov 2002 12:29:59 +0100, > > Rafal Dejewski wrote: > > Hi, > > I have HP vt6200 notebook. It has ALI5451 chip. I tried diffrent kernels > > 2.4.18, 2.4.19, 2.4.20rc1, 2.5.48 and alsa-driver 0.9rc4,rc5,rc6. > > The standard kernel trident module works OK on all kernels but alsa > > driver does not on any. > > Before rc6 the snd-ali5451 module would just hang with "(initializing)" > > status. Now with rc6 or kernel 2.5.48 when I uncomment "#define > > ALI_DEBUG" this what dmesg is showing: > > driver pci:ALI 5451: registering > > kobject ALI 5451: registering > > bus pci: add driver ALI 5451 > > probe ... > > creating ... > > PCI: IRQ 7 for device 00:04.0 doesn't match PIRQ mask - try > > pci=usepirqmask > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > is this ok? Apparently adding this to doesn't change much, except that ali5451 now uses irq10 along with ati graphics chip, network card, wlan and usb. > > > PCI: Found IRQ 7 for device 00:04.0 > > resouces allocation ... > > resouces allocated. > > snd_device_new is called. > > chip initializing ... > > ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error. > > it looks like the driver failed the reset of ac97 codec. > the attached patch will let the driver continue after the error. > please let me know whether it works for you. > The patch you supplied did not help me. I tried to find the place where it fails. I applied attached patch to ali5451.c from 2.5.50 kernel. This is what I get in dmesg now: probe ... creating ... PCI: Found IRQ 10 for device 00:04.0 resouces allocation ... resouces allocated. snd_device_new is called. chip initializing ... pci_dev is NULL after pci_find_device! ALSA sound/pci/ali5451/ali5451.c:2160: ali create: chip init error. Hope this helps, Rafal ---------------------------------------------------------------------- Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b [-- Attachment #2: ali_mypatch.diff --] [-- Type: text/x-diff, Size: 786 bytes --] --- ali5451.c_org 2002-11-29 10:24:28.000000000 +0100 +++ ali5451.c 2002-11-29 10:32:24.000000000 +0100 @@ -70,7 +70,7 @@ * Debug part definations */ -//#define ALI_DEBUG +#define ALI_DEBUG #ifdef ALI_DEBUG #define snd_ali_printk(format, args...) printk(format, ##args); @@ -529,7 +529,7 @@ udelay(5000); } - return -1; + return 0; } #ifdef CODEC_RESET @@ -2004,8 +2004,9 @@ pci_read_config_byte(pci_dev, 0x59, &temp); pci_dev = pci_find_device(0x10b9,0x7101, pci_dev); - if (pci_dev == NULL) - return -1; + if (pci_dev == NULL) { + snd_ali_printk("pci_dev is NULL after pci_find_device!\n"); + return -1; } pci_read_config_byte(pci_dev,0xb8,&temp); temp |= 1 << 6; pci_write_config_byte(pci_dev, 0xB8, temp); ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 9:53 ` Rafal Dejewski @ 2002-11-29 10:12 ` Takashi Iwai 2002-11-29 10:19 ` Rafal Dejewski 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-11-29 10:12 UTC (permalink / raw) To: Rafal Dejewski; +Cc: alsa-devel At Fri, 29 Nov 2002 10:53:15 +0100, Rafal Dejewski wrote: > > > > PCI: Found IRQ 7 for device 00:04.0 > > > resouces allocation ... > > > resouces allocated. > > > snd_device_new is called. > > > chip initializing ... > > > ALSA sound/pci/ali5451/ali5451.c:2159: ali create: chip init error. > > > > it looks like the driver failed the reset of ac97 codec. > > the attached patch will let the driver continue after the error. > > please let me know whether it works for you. > > > The patch you supplied did not help me. I tried to find the place where it > fails. I applied attached patch to ali5451.c from 2.5.50 kernel. This is what > I get in dmesg now: > probe ... > creating ... > PCI: Found IRQ 10 for device 00:04.0 > resouces allocation ... > resouces allocated. > snd_device_new is called. > chip initializing ... > pci_dev is NULL after pci_find_device! ah, perhaps your chip has some different pci id? please check lspci -n whether a device 10b9:7101 exists. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 10:12 ` Takashi Iwai @ 2002-11-29 10:19 ` Rafal Dejewski 2002-11-29 10:29 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Rafal Dejewski @ 2002-11-29 10:19 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel On Friday 29 November 2002 11:12, you wrote: > At Fri, 29 Nov 2002 10:53:15 +0100, > > ah, perhaps your chip has some different pci id? > please check lspci -n whether a device 10b9:7101 exists. > I think this is it! I should have noticed! Here is mine lspci -vvn for this device: 00:04.0 Class 0401: 10b9:5451 (rev 02) Subsystem: 103c:0027 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR+ <PERR+ Latency: 64 (500ns min, 6000ns max) Interrupt: pin A routed to IRQ 7 Region 0: I/O ports at 1000 [size=256] Region 1: Memory at e0001000 (32-bit, non-prefetchable) [size=4K] Capabilities: [dc] Power Management version 2 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- and just to confirm that it's really it: 00:04.0 Multimedia audio controller: Acer Laboratories Inc. [ALi] M5451 PCI AC-Link Controller Audio Device (rev 02) Subsystem: Hewlett-Packard Company: Unknown device 0027 Can't wait to try your patch :) Rafal ---------------------------------------------------------------------- Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 10:19 ` Rafal Dejewski @ 2002-11-29 10:29 ` Takashi Iwai 2002-11-29 10:47 ` Rafal Dejewski 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-11-29 10:29 UTC (permalink / raw) To: Rafal Dejewski; +Cc: alsa-devel At Fri, 29 Nov 2002 11:19:40 +0100, Rafal Dejewski wrote: > > On Friday 29 November 2002 11:12, you wrote: > > At Fri, 29 Nov 2002 10:53:15 +0100, > > > > ah, perhaps your chip has some different pci id? > > please check lspci -n whether a device 10b9:7101 exists. > > > I think this is it! I should have noticed! > Here is mine lspci -vvn for this device: > 00:04.0 Class 0401: 10b9:5451 (rev 02) it's ok. this id must be there, too. looking at the code, ali5451 driver access the following three pci devices: 10b9:5451 ali5451 main chip 10b9:1533 pci southbridge, used for ac97 codec 10b9:7107 power management controller (which you don't have..) please check the latter two devices and whether you have different ones with the same functions. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 10:29 ` Takashi Iwai @ 2002-11-29 10:47 ` Rafal Dejewski 2002-11-29 11:03 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Rafal Dejewski @ 2002-11-29 10:47 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel On Friday 29 November 2002 11:29, you wrote: > At Fri, 29 Nov 2002 11:19:40 +0100, > > looking at the code, ali5451 driver access the following three pci > devices: > > 10b9:5451 ali5451 main chip > 10b9:1533 pci southbridge, used for ac97 codec > 10b9:7107 power management controller (which you don't have..) ^^^^ Shouldn't that be 10b9:7101? > > please check the latter two devices and whether you have different > ones with the same functions. Here is mine 'lspci -n': 0:00.0 Class 0600: 10b9:1671 (rev 02) 00:01.0 Class 0604: 10b9:5247 00:02.0 Class 0c03: 10b9:5237 (rev 03) 00:04.0 Class 0401: 10b9:5451 (rev 02) 00:06.0 Class 0680: 10b9:7101 00:07.0 Class 0601: 10b9:1533 00:08.0 Class 0200: 10ec:8139 (rev 10) 00:09.0 Class 0280: 1260:3873 (rev 01) 00:0a.0 Class 0607: 104c:ac50 (rev 02) 00:0b.0 Class 0780: 125d:2838 (rev 01) 00:0f.0 Class 0101: 10b9:5229 (rev c4) 01:00.0 Class 0300: 1002:4c59 Rafal ---------------------------------------------------------------------- Niedorobki w 2. czesci Harry Pottera >>> http://link.interia.pl/f169d ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 10:47 ` Rafal Dejewski @ 2002-11-29 11:03 ` Takashi Iwai 2002-11-29 11:40 ` Rafal Dejewski 0 siblings, 1 reply; 10+ messages in thread From: Takashi Iwai @ 2002-11-29 11:03 UTC (permalink / raw) To: Rafal Dejewski; +Cc: alsa-devel [-- Attachment #1: Type: text/plain, Size: 1215 bytes --] At Fri, 29 Nov 2002 11:47:25 +0100, Rafal Dejewski wrote: > > On Friday 29 November 2002 11:29, you wrote: > > At Fri, 29 Nov 2002 11:19:40 +0100, > > > > looking at the code, ali5451 driver access the following three pci > > devices: > > > > 10b9:5451 ali5451 main chip > > 10b9:1533 pci southbridge, used for ac97 codec > > 10b9:7107 power management controller (which you don't have..) > ^^^^ > Shouldn't that be 10b9:7101? yep. > > > > please check the latter two devices and whether you have different > > ones with the same functions. > Here is mine 'lspci -n': > > 0:00.0 Class 0600: 10b9:1671 (rev 02) > 00:01.0 Class 0604: 10b9:5247 > 00:02.0 Class 0c03: 10b9:5237 (rev 03) > 00:04.0 Class 0401: 10b9:5451 (rev 02) > 00:06.0 Class 0680: 10b9:7101 > 00:07.0 Class 0601: 10b9:1533 > 00:08.0 Class 0200: 10ec:8139 (rev 10) > 00:09.0 Class 0280: 1260:3873 (rev 01) > 00:0a.0 Class 0607: 104c:ac50 (rev 02) > 00:0b.0 Class 0780: 125d:2838 (rev 01) > 00:0f.0 Class 0101: 10b9:5229 (rev c4) > 01:00.0 Class 0300: 1002:4c59 ok, the devices are there. i think it's a bug of the driver, which assumes the order of devices from 1533 -> 7101. please try the patch attached (to cvs). ciao, Takashi [-- Attachment #2: ali-fix.dif --] [-- Type: application/octet-stream, Size: 1828 bytes --] Index: alsa-kernel/pci/ali5451/ali5451.c =================================================================== RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/ali5451/ali5451.c,v retrieving revision 1.19 diff -u -r1.19 ali5451.c --- alsa-kernel/pci/ali5451/ali5451.c 30 Oct 2002 17:24:48 -0000 1.19 +++ alsa-kernel/pci/ali5451/ali5451.c 29 Nov 2002 11:00:30 -0000 @@ -529,7 +529,7 @@ udelay(5000); } - return -1; + return 0; } #ifdef CODEC_RESET @@ -1999,14 +1999,10 @@ if (codec->revision == ALI_5451_V02) { pci_dev = codec->pci_m1533; - if (pci_dev == NULL) - return -1; pci_read_config_byte(pci_dev, 0x59, &temp); - pci_dev = pci_find_device(0x10b9,0x7101, pci_dev); - if (pci_dev == NULL) - return -1; - pci_read_config_byte(pci_dev,0xb8,&temp); + pci_dev = codec->pci_m7101; + pci_read_config_byte(pci_dev, 0xb8, &temp); temp |= 1 << 6; pci_write_config_byte(pci_dev, 0xB8, temp); } @@ -2139,10 +2135,22 @@ codec->chregs.data.aint = 0x00; codec->chregs.data.ainten = 0x00; - pci_dev = pci_find_device(0x10b9,0x1533, pci_dev); + /* M1533: southbridge */ + pci_dev = pci_find_device(0x10b9, 0x1533, NULL); codec->pci_m1533 = pci_dev; - pci_dev = pci_find_device(0x10b9,0x7101, pci_dev); + if (! codec->pci_m1533) { + snd_printk(KERN_ERR "ali5451: cannot find ALi 1533 chip.\n"); + snd_ali_free(codec); + return -ENODEV; + } + /* M7101: power management */ + pci_dev = pci_find_device(0x10b9, 0x7101, NULL); codec->pci_m7101 = pci_dev; + if (! codec->pci_m7101) { + snd_printk(KERN_ERR "ali5451: cannot find ALi 7101 chip.\n"); + snd_ali_free(codec); + return -ENODEV; + } snd_ali_printk("snd_device_new is called.\n"); if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, codec, &ops)) < 0) { ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 11:03 ` Takashi Iwai @ 2002-11-29 11:40 ` Rafal Dejewski 2002-11-29 12:12 ` Takashi Iwai 0 siblings, 1 reply; 10+ messages in thread From: Rafal Dejewski @ 2002-11-29 11:40 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel On Friday 29 November 2002 12:03, you wrote: > > ok, the devices are there. i think it's a bug of the driver, which > assumes the order of devices from 1533 -> 7101. > please try the patch attached (to cvs). > That did it! Cool! The oss emulation works great. I have some problems in mplayer and xmms in alsa native mode, but that might be another thing. Rafal ---------------------------------------------------------------------- Powiedz sobie dobre "Dzien dobry"!http://link.interia.pl/f168b ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Ali5451 on HP VT6200 notebook not working 2002-11-29 11:40 ` Rafal Dejewski @ 2002-11-29 12:12 ` Takashi Iwai 0 siblings, 0 replies; 10+ messages in thread From: Takashi Iwai @ 2002-11-29 12:12 UTC (permalink / raw) To: Rafal Dejewski; +Cc: alsa-devel At Fri, 29 Nov 2002 12:40:48 +0100, Rafal Dejewski wrote: > > On Friday 29 November 2002 12:03, you wrote: > > > > ok, the devices are there. i think it's a bug of the driver, which > > assumes the order of devices from 1533 -> 7101. > > please try the patch attached (to cvs). > > > That did it! Cool! ok, now on cvs. thanks for your help. Takashi ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-11-29 12:12 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-11-21 11:29 Ali5451 on HP VT6200 notebook not working Rafal Dejewski 2002-11-28 16:36 ` Takashi Iwai 2002-11-29 9:53 ` Rafal Dejewski 2002-11-29 10:12 ` Takashi Iwai 2002-11-29 10:19 ` Rafal Dejewski 2002-11-29 10:29 ` Takashi Iwai 2002-11-29 10:47 ` Rafal Dejewski 2002-11-29 11:03 ` Takashi Iwai 2002-11-29 11:40 ` Rafal Dejewski 2002-11-29 12:12 ` Takashi Iwai
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.