Since we're heading towards a 2.6 kernel where native OSS either is totally skipped, 
or practically unmaintained, it would be a shame not to get a squeak out of my (quite 
common) Maestro 2 chip with the ALSA driver.

So I'm looking for directions on how to debug the following situation. I hardly know 
any C, and definitely not the pointer to a pointer to a... that seems to inundate the 
linux kernel. But a debugger where I see the assembler code is right up my alley :-)

Now, I tried alsa 0.9.0rc7 under a 2.4.19 kernel but it had 'unresolved symbols' even 
in the main snd module (think it was 'err' or something) so it never got to the point 
of es1968 loading.

Therefore I turned to kernel 2.5.59 with the general module loading fix applied. A 
_long_ list of unresolved symbols spat out from anything alsa-related... Next test was 
to compile the sound into the kernel. Here I encounter the AC97 problem, and nothing 
changes after applying the alsa-bk-2003-01-28.patch.gz.

Most frustrating is that I reported this exact problem with the 2.5.47-ac5 kernel back 
in November 2002 directly to the maintainers (the developer mailing list never 
approved the original message). The sound was then compiled through modules.

Here's the error as showed by /var/log/kernel (bk patch applied):

Jan 30 20:16:42 loke kernel: Inspecting /boot/System.map
Jan 30 20:16:42 loke kernel: Loaded 21112 symbols from /boot/System.map.
Jan 30 20:16:42 loke kernel: Symbols match kernel version 2.5.59.
Jan 30 20:16:42 loke kernel: No module symbols loaded - kernel modules not enabl
ed. 
Jan 30 20:16:42 loke kernel: s1968.c:667: es1968: ac97 timeout
Jan 30 20:16:42 loke kernel: ALSA sound/pci/es1968.c:667: es1968: ac97 timeout
Jan 30 20:16:42 loke last message repeated 298 times
Jan 30 20:16:42 loke kernel: ALSA sound/pci/ac97/ac97_codec.c:1829: AC'97 0:0 do
es not respond - RESET [REC_GAIN = 0x0]
Jan 30 20:16:42 loke kernel: ALSA device list:
Jan 30 20:16:42 loke kernel:   No soundcards found.


The correct loading of a native OSS module looks like this (in 2.4.19):


Jan 30 21:48:50 loke kernel: PCI: Found IRQ 5 for device 00:06.0
Jan 30 21:48:50 loke kernel: PCI: Sharing IRQ 5 with 01:00.0
Jan 30 21:48:50 loke kernel: maestro: Configuring ESS Maestro 2 found at IO 0x20
00 IRQ 5
Jan 30 21:48:50 loke kernel: maestro:  subvendor id: 0xb0b80e11
Jan 30 21:48:50 loke kernel: maestro: not attempting power management.
Jan 30 21:48:50 loke kernel: maestro: AC97 Codec detected: v: 0x414b4d00 caps: 0
x0 pwr: 0xf
Jan 30 21:48:50 loke kernel: maestro: 4 channels configured.
Jan 30 21:48:50 loke kernel: maestro: version 0.15 time 04:05:39 Jan 25 2003


As you see it shares IRQ with the agp video card (sound chip is on the motherboard). 
Here's a cat of /proc/pci:


PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 2).
      Master Capable.  Latency=64.  
      Prefetchable 32 bit memory at 0x44000000 [0x47ffffff].
  Bus  0, device   1, function  0:
    PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 2).
      Master Capable.  Latency=64.  Min Gnt=140.
  Bus  0, device   5, function  0:
    Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 65)
.
      IRQ 11.
      Master Capable.  Latency=96.  Min Gnt=20.Max Lat=40.
      I/O at 0x2400 [0x247f].
      Non-prefetchable 32 bit memory at 0x41100000 [0x411003ff].
  Bus  0, device   6, function  0:
    Multimedia audio controller: ESS Technology ES1968 Maestro 2 (rev 0).
      IRQ 5.
      Master Capable.  Latency=64.  Min Gnt=2.Max Lat=24.
      I/O at 0x2000 [0x20ff].
  Bus  0, device  20, function  0:
    ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 2).
  Bus  0, device  20, function  1:
    IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 1).
      Master Capable.  Latency=64.  
      I/O at 0x24a0 [0x24af].
  Bus  0, device  20, function  2:
    USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 1).
      IRQ 11.
      Master Capable.  Latency=64.  
      I/O at 0x2480 [0x249f].
  Bus  0, device  20, function  3:
    Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 2).
      IRQ 9.
  Bus  1, device   0, function  0:
    VGA compatible controller: ATI Technologies Inc 3D Rage LT Pro AGP-133 (rev 
220).
      IRQ 5.
      Master Capable.  Latency=66.  Min Gnt=8.
      Non-prefetchable 32 bit memory at 0x40000000 [0x40ffffff].
      I/O at 0x1000 [0x10ff].
      Non-prefetchable 32 bit memory at 0x41000000 [0x41000fff].


The machine is a Compaq Presario 5640 (PII400) with 128 meg ram. Further info, just 
ask. Oh, and here's what was turned on in the sound section of the 2.5.59 kernel:


#
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_MEMORY=y
CONFIG_SND_DEBUG_DETECT=y

[...]
#
# PCI devices
#
[...]
CONFIG_SND_ES1968=y

Native OSS not enabled.

Regards,
Mats Johannesson


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to