Re: ISA and ES18XX Patches for Alpha
-----BEGIN PGP SIGNED MESSAGE-----
On June 6, 2005 17:14, Chuck Foreman wrote:
> I picked up your thread from last year because I too am experiencing
> problems with 2.6.x and es18xx I too had this working under the 2.4 kernel
> with als 1.0.4.
> Where could I get thsi patch (using 22.214.171.124 kernel)? Do I still need it?
> Ohh Yeah and how do I patch the kernel? .. .. I think if you can share any
> additional info on this driver and alsa.. I'mm mange figuring out how to
> patch the kernel.
I did two patches for the es18xx.
The first fixes interupt recognition. Without it, the driver doesn't
recognize it's interupt on some es18xx cards, and so the card just endlessly
loops the first second or so of sound.
The second fixes an ISA bus problems on certain Alpha kernels. Basically, the
DMA mapping functions are suppose to take a understand a NULL as "bus" to be
the ISA bus. This support was removed at one time on the Alpha (I think it
was 2.6.8). As a result, ISA drivers crashed on loading (you could see a
crash message in the log by typing "dmesg").
As far as I know (2.6.10) the first is still required. The second is not (I
believe it was only required for 2.6.8). You can double check if you need
the second by looking at "include/asm-alpha/dma-mapping.h". If it includes
"include/asm-generic/dma-mapping.h", you need to patch (generic doesn't
support the ISA bus). Otherwise you're fine.
Note that not all es18xx require the first patch. Again, you will hear
endless looping of the first second or so of sound if you need it. If you
aren't hearing anything, you have other problems. In this case check if you
put "options snd-es18xx isapnp=0" into "/etc/modprobe.d/alsa" (without this
the driver won't detect the card). Also make sure you've turned up the
volume and unmuted the channels.
Currently I'm using a recompiled (with the first patch) 2.6.10 Debian kernel
on my PWS 500au. Everything works fine for me. You can get the recompiled
kernel and the patches from my box (http://whitehead.apmaths.uwo.ca/~tyson/).
Install the kernel with a "dpkg -i <kernel deb file>".
To do a patch on a manual build, just download the kernel source and do a
"patch -p0 < <patch file>" in the main directory followed by a build. If you
want to recreate all the Debian kernel image packages (like I did) with this
patch added, its a bit different.
Do an "apt-get install kernel-tree-<version> kernel-package fakeroot" and an
"apt-get source kernel-image-<version>". Add a command to apply the patch to
the patch commands (just search for patch to find it) in
"kernel-image-<version>/debian/rules". Then run "dpkg-buildpackage
- -rfakeroot" in the "kernel-image-<version>" directory. It will take about a
day and several hundred megs of disk space to complete, leaving you with some
nice debs you can just install with "dpkg -i". Zap "kernel-image-<version>"
to recover your disk space.
Later & Good Luck! -T (email me if you have any more questions)
PS: I CCed this to this list because someone on it a while ago was asking
about the second patch and the AWE card (an ISA issue -- the above ISA
Tyson Whitehead (-firstname.lastname@example.org -- WSC-)
Computer Engineer Dept. of Applied Mathematics,
Graduate Student- Applied Mathematics University of Western Ontario,
GnuPG Key ID# 0x8A2AB5D8 London, Ontario, Canada
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----