links - sound & audio [links - soft] [links] [home] [search

ALSA

build instructions for alsa-driver-1.0.16 with kernel 2.6.25:
  1. in the folowing files in the alsa-kernel/core/ directory: sound.c, timer.c, seq/seq_device.c, seq/seq_clientmgr.c, at the beginning of the block starting with #ifdef CONFIG_KMOD, add the line:
    extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2)));
    
    This is from linux/kmod.h and for some reason doesn't get into (and I am lazy to figure out why).
  2. in the same files, replace all occurencies of
    if (! current->fs->root)
    
    to
    if (! (current->fs->root).dentry)
    
    This is due to changes in the fs_struct structure in linux/fs_struct.h in (latest?) kernels.
  3. in file pci/intel8x0.c, add #include <asm/tlbflush.h>, change the line
    global_flush_tlb();
    
    to
    __flush_tlb_global();
    
    and add the following piece of code:
    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25)
    int change_page_attr(struct page *page, int numpages, pgprot_t prot)
    {
      /* use the set_pages_* API */
      if (pgprot_val(prot) & _PAGE_NX)
    	set_pages_nx(page, numpages);
      set_pages_uc(page, numpages);
      return 0;
    }
    #endif
    
  4. This is because change_page_attr has been removed from the 2.6.25 kernel, and this function is just reimplementing it (just stolen from here).
  5. ./configure --prefix=/usr/local/alsa-1.0.16
  6. make
  7. make install
  8. ./snddevices
build instructions for alsa-utils:
  1. ./configure --prefix=/usr/local/alsa-1.0.16 --disable-nls --with-alsa-prefix=/usr/local/alsa-1.0.16/lib --with-alsa-inc-prefix=/usr/local/alsa-1.0.16/include
  2. make
  3. make install

OSS

to build against libasound.so.2 (= libsalsa.so.2) from OSS, define LDFLAGS=-Wl,--allow-shlib-undefined; this is to allow undefined symbols when linking against that lib (midiparser_input_buf and likes) - those unresolved symbols apparently do not harm.


to turn beep off: console: setterm -blength 0   X: xset b 0 0 0

flac audio codec
winamp - windows audio player


created Sep 2 2007
last updated Sun May 18 11:08:01 GMT 2008