#62 ALSA patch

open
nobody
None
5
2003-04-15
2003-04-15
No

Patch against ALSA 0.92 which adds support for AU8810,
AU8820 and AU8830 (Advantage, Vortex and Vortex 2).

SMP compatibility untest. Anyone with a SMP
box out there to test ?

AU8820 works 100% OK

AU8830 still some bugs.

AU8810 unstested, but mostly equal to AU8830, so it
could work (testers ?)

Still unimplemented:
-Hardware EQ
-Midi Synthesizer (MPU401 is supported).

Enjoy.

Manuel Jander

Discussion

  • Nobody/Anonymous

    Logged In: NO

    How to patch ?
    Please

     
  • Nobody/Anonymous

    Logged In: NO

    Patch instructions:

    -Get ALSA driver 0.92 tarball from www.alsa-project.org
    -Get the Aureal patch
    -Untar the ALSA tarball (maybe something like "tar jxf
    alsa-driver-0.92.tar.bz2")
    -cd to alsa driver directory (something like "cd
    alsa-driver-0.92")
    -Apply patch with "bzcat patch-au88x0-0.92c.bz2 |patch -p1".
    -Execute "aclocal" and "autoconf" to update the config scripts.

    Now follow the ALSA build instructions; basically the following:
    ./configure --with-cards=au8810,au8820,au8830 --with-oss=yes
    make
    make install

    And of course the most important part... enjoy !

    Best Regards

    Manuel Jander.

     
  • Nobody/Anonymous

    Logged In: NO

    au8810 doesn't compile. Had to change in au8810.h
    #ifndef PCI_VENDOR_ID_AUREAL_VORTEX2
    #define PCI_DEVICE_ID_AUREAL_VORTEX2 0x0002
    to
    #ifndef PCI_VENDOR_ID_AUREAL_ADVANTAGE
    #define PCI_DEVICE_ID_AUREAL_ADVANTAGE 0x0002
    After compilation I get
    Unresolved symbols in
    /lib/modules/2.4.20/kernel/sound/pci/au88x0/snd-au8810.o

     
  • Manuel Jander

    Manuel Jander - 2003-04-18

    Logged In: YES
    user_id=383243

    Great! Someone who can test a AU8810 !!!

    You have to change the following:
    #define PCI_DEVICE_ID_AUREAL_ADVANTAGE 0x0002
    to
    #define PCI_DEVICE_ID_AUREAL_ADVANTAGE 0x0003

    sorry for the typo...

    would be nice to know what unresolved symbols do you got. I
    guess it was something gameport related. This driver has
    gameport support builtin, so you need to enable gameport
    support in your kernel (should be so already).

    try "modprobe gameport" before loading the snd-au8810 module.
    If it fails, add the gameport module support to your kernel
    (kernel recompile).
    if not, email me with the complete output of "modeprobe au8810".

    Note, the AU8810/AU8830 semes still to have some troubles
    with the sample rate, so you may get ultrafast playback
    sometimes. Just retry the playback and it should get in sync
    again. We are working on that issue....

    Best Regards

    Manuel Jander.

     
  • michel odillon

    michel odillon - 2003-04-22

    Logged In: YES
    user_id=762849

    Hi Manuel,

    I confirm: the AU8830 is running on an smp kernel (ABIT BP6
    with 2 Celeron, soundcard: Turtle Beach Montego 2 Studio). I
    am listening to some MP3 with XMMS :o)
    I did not try the recording.

    You have maybe already corrected this error in au88x0_pcm.c
    (I have the patch 0.92c)
    Wrong:
    spin_lock(chip->lock);
    spin_unlock(chip->lock);
    Right:
    spin_lock(&chip->lock);
    spin_unlock(&chip->lock);
    Else I could not compile.

    I was also surprised that ALL the drivers have been
    compiled, even if I use
    ./configure --with-cards=au8830 --with-oss=yes

    At the first time I typed:
    ./configure --with-cards=au8810,au8820,au8830 --with-oss=yes
    and it took about one hour and a half to compile all the
    drivers. Curiously the file toplevel.config I had found
    these lines:
    CONFIG_SND_AU8810=m
    CONFIG_SND_AU8820=m
    CONFIG_SND_AU8830=
    The "m" was missing for the AU8830!

    For the rest I followed the instructions of the ALSA HowTo
    for the content of /etc/modules.conf. Added manually three
    snd modules (au8830, pcm and the mixer).
    I don't know exactly what brought it to work. I will see by
    the next reboot.

    Remark: I have updated Mandrake 8.2 to Mandrake 9.1 and the
    old drivers (gcc version 2) were still working well. Because
    I did a new installation of Mdk 9.1, I have lost the
    compatibility with gcc version 2, then I took a look at
    sourceforge.net...

    Many thanks for your work
    Best regards
    Michel

     
  • Dmitry Gerasimov

    Logged In: YES
    user_id=763279

    Hello Manuel!

    I've got a au8820 Genius Vortex soundcard.

    I patched ALSA 0.9.2 and installed it. Then I ran alsaconf in
    /utils. It added to my modules.conf this stuff:

    # --- BEGIN: Generated by ALSACONF, do not edit. ---
    # --- ALSACONF verion 0.9.0 ---
    alias char-major-116 snd
    alias snd-card-0 snd-au8820
    alias char-major-14 soundcore
    alias sound-slot-0 snd-card-0
    alias sound-service-0-0 snd-mixer-oss
    alias sound-service-0-1 snd-seq-oss
    alias sound-service-0-3 snd-pcm-oss
    alias sound-service-0-8 snd-seq-oss
    alias sound-service-0-12 snd-pcm-oss
    options snd major=116 cards_limit=1 device_mode=0666
    options snd-au8820 index=0
    # --- END: Generated by ALSACONF, do not edit. ---

    And then when it tried to load the driver I got these errors:

    Loading driver...
    Starting sound driver: snd-au8820
    /lib/modules/2.4.20-8/kernel/sound/acore/snd.o: unresolved
    symbol schedule_work
    /lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod
    /lib/modules/2.4.20-8/kernel/sound/acore/snd.o failed
    /lib/modules/2.4.20-8/kernel/sound/acore/snd.o: insmod
    snd-au8820 failed
    done
    Setting default volumes...
    Saving the mixer setup used for this in /etc/asound.state.
    /usr/sbin/alsactl: save_state:1050: No soundcards found...

    What's the problem there? Is there a way to get the driver to
    work?

    Thanks a lot for your work on this. I was really upset when RH
    Linux did not recognize my card. Now I have some hope.

    Dmitry

     
  • Dmitry Gerasimov

    Logged In: YES
    user_id=763279

    Hello Manuel.

    I've got au8820, ALSA 0.9.2

    I get no MIDI devices. Does this patch support MIDI? How do
    I set a MIDI device?

    Thanks,
    Dmitry

     

Log in to post a comment.