Wednesday, February 16, 2011

CREATIVE SoundBLASTER 5.1VX in GNU/linux

I finally got it working! I remember I tried for weeks a few years ago, and now that my USB sound card broke, tried again, and worked!!!


I'm using Debian.
Taken from here:

  1. Download OSS from here (select your architecture and package -> DEB if you're using debian or ubuntu)
  2. Install the downloaded package.
    (something like:)
    sudo dpkg -i oss-linux-4.2-2004_i386.deb


    Something like this will appear in your screen:
    Selecting previously deselected package oss-linux.
    (Reading database ... 192851 files and directories currently installed.)
    Unpacking oss-linux (from oss-linux-4.2-2004_i386.deb) ...
    Shutting down ALSA...done.
    Unloading ALSA sound driver modules: snd-ca0106 snd-ac97-codec snd-opl3sa2 snd-opl3-lib snd-hwdep snd-cs4231-lib snd-pcm-oss snd-mixer-oss snd-pcm snd-mpu401-uart snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-timer snd-seq-device snd-page-alloc.
    Setting up oss-linux (4.2-2004) ...
    Building OSS Modules for Linux-unknown 2.6.26-2-686
    
    OSS build environment set up for REGPARM kernels
    
    Building module osscore
    Building module lynxone
    Building module lynxtwo
    Building module oss_ali5455
    Building module oss_atiaudio
    Building module oss_audigyls
    Building module oss_audioloop
    Building module oss_audiopci
    Building module oss_cmi878x
    Building module oss_cmpci
    Building module oss_cs4281
    Building module oss_cs461x
    Building module oss_digi96
    Building module oss_emu10k1x
    Building module oss_envy24ht
    Building module oss_envy24
    Building module oss_fmedia
    Building module oss_geode
    Building module oss_hdaudio
    Building module oss_hdsp
    Building module oss_ich
    Building module oss_imux
    Building module oss_madi
    Building module oss_midiloop
    Building module oss_midimix
    Building module oss_sblive
    Building module oss_sbpci
    Building module oss_sbxfi
    Building module oss_solo
    Building module oss_trident
    Building module oss_usb
    Building module oss_userdev
    Building module oss_via823x
    Building module oss_via97
    Building module oss_ymf7xx
    depmod -a
    -----------------------------
    Detected Sound Blaster Audigy LS / Live7.1
    USB support available in the system, adding USB driver
    Detected Generic USB audio/MIDI device (BETA)
    -----------------------------
    
    Forcing re-detection of installed soundcards
    Starting Open Sound System
    WARNING: All config files need .conf: /etc/modprobe.d/pnp-hotplug, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/isapnp, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/display_class, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libsane, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libpisock9, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/pnp-hotplug, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/isapnp, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/display_class, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libsane, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libpisock9, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/pnp-hotplug, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/isapnp, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/display_class, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libsane, it will be ignored in a future release.
    WARNING: All config files need .conf: /etc/modprobe.d/libpisock9, it will be ignored in a future release.
    
    ************************************************************
    * NOTE! You are using trial version of Open Sound System   *
    ************************************************************
    
    Processing triggers for man-db ...
    Processing triggers for menu ...
    
    
  3. That should be it!
    If on ubuntu, apparently you have to set your sound settings to user "OSS4 - AudigyLS front".
    Let's test it on mplayer:

    mplayer -ao oss somevid.avi
  4. Now however you'll have to tell your previous applications to use OSS instead of alsa... maybe uninstalling alsa would solve this problem.
    In mplayer, add the following line in your ~/.mplayer/config file:
    ao = oss
I can't believe my speakers sound this good!! (After using a USB bad quality made in China sound board for almost two years...)

    5 comments:

    1. Hi,
      What about sound capture? Can you record audio too? At what sample rate?

      ReplyDelete
    2. Update: I managed to get the card working with the latest ALSA driver. Here's how:

      http://life-nux.blogspot.com/2011/04/how-to-make-creative-soundblaster-51vx.html

      See if it works for you.

      ReplyDelete
    3. Hey Shaji. Thanks for your comment. It works now with the latest ALSA driver?! That's great. I don't use a mic or anything so I haven't tried sound capture stuffs yet, but I'm gonna give it a shot once I get a hand on that server again!
      As your blog says, using the jackd command sounds fine^^.

      ReplyDelete
    4. hi man i am using ubuntu 10.04, if i try yr steps ,it is working after restart but only 1 time ,from 2nd restart its not working.please help.
      i tried all combination of installing and uninstalling alsa and oss from synaptic package manager, suddenly it wil work but after restart it wont & shows nothing in system > preference > sound > hardware.
      please help

      ReplyDelete
    5. and how to set sound settings to user "OSS4 - AudigyLS front" ?
      there is no such option in system > preference > sound

      ReplyDelete