snd_hda mixer problems.

Adam K Kirchhoff adamk at
Mon Mar 1 22:32:20 UTC 2010

I am currently running 9.0-CURRENT from February 24th.  I'm having 
strange mixer problems with snd_hda.  I have two high definition audio 
devices on my system, one on the motherboard and one on the HD4850 I have.

[ adamk at sorrow - ~ ]: cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA ATI R6xx HDMI PCM #0 HDMI> (play)
pcm1: <HDA Sigmatel STAC9220 PCM #0 Analog> (play/rec) default

Since I don't have any HDMI audio speakers, I'm using pcm1 from the 
motherboard.  And audio plays back fine, and records fine.  I have 
hw.snd.default_unit set to 1 so that audio applications use that device 
by default.

However...  I have three mixer devices:

[ adamk at sorrow - ~ ]: ls -l /dev/mixer*
crw-rw-rw-  1 root  wheel    0, 161 Mar  1 16:39 /dev/mixer
crw-rw-rw-  1 root  wheel    0,  88 Mar  1 16:38 /dev/mixer0
crw-rw-rw-  1 root  wheel    0,  89 Mar  1 16:38 /dev/mixer1

I have no idea what /dev/mixer is, but it does nothing:

[ adamk at sorrow - ~ ]: mixer
mixer: SOUND_MIXER_READ_DEVMASK: Device not configured

/dev/mixer0 is the HDA device on the radeon and /dev/mixer1 is the HDA 
device on the motherboard.

So what exactly is /dev/mixer current?  And is it at all possible to 
have /dev/mixer point to the correct HDA device by default, the way 
/dev/dsp does?


More information about the freebsd-multimedia mailing list