You can't have OSS (old sound system) (the real meaning is open source sound) with ALSA (Advanced Linux Sound Architecture). Be sure that the modules sound is not there, since it is the base OSS module.

gathering information

aplay -l   # list cards
aplay -L   # list devices

Jessie (8.0)

Change the default device

defaults.pcm.card 1
defaults.pcm.device 9
#defaults.ctl.card 1

Very old info

configuration file

If you want to set a different card to be the default device, use this in your config file (Reference: hone):

pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}

If you want to enable the software mixer, you can either use:

pcm.!default {
        type plug
        slave.pcm "dmix"
}

or, if that doesn't work (it requires some other global definitions of "dmix"), use this:

pcm.!default {
        type plug
        slave.pcm "dmixer"
}
pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
            pcm "hw:0,0"      # you might need to set this to a different hw device
            period_time 0
            period_size 1024
            buffer_size 4096
            rate 44100
        }
        bindings {
            0 0
            1 1
        }
}
ctl.dmixer {
        type hw
        card 0
}

References:

Volume control interface

The program alsamixer has a good user-interface to the volume control.

Here is a shell script to control volumes from the command line.

   1 #!/bin/bash
   2 
   3 echo $1
   4 if [[ x$1 == xwait ]] ; then
   5     amixer sset Master mute
   6     sleep 60
   7     amixer sset Master unmute
   8 fi
   9 
  10 if [[ x$1 == xup ]] ; then
  11     amixer set Master 4%+
  12     amixer set Headphone 4%+
  13 fi
  14 
  15 if [[ x$1 == xdown ]] ; then
  16     amixer set Master 4%-
  17     amixer set Headphone 4%-
  18 fi
  19 
  20 if [[ x$1 == xmute ]] ; then
  21     amixer set Master toggle
  22     amixer set Headphone toggle
  23 fi

Module names

sound is oss base module, snd is alsa

For boltzmann, i810_audio is oss, snd-intel8x0 is alsa.

DebianNotes/AlsaConfiguration (last edited 2015-05-09 07:53:14 by RichardDarst)