Can't get soundcard to work

Frank Shute frank at shute.org.uk
Wed Oct 8 22:31:49 UTC 2008


On Wed, Oct 08, 2008 at 11:41:31PM +0200, Aniruddha wrote:
>
> Thanks for the help! Here are the answers:
> 
> > > > > cat dmesg > /dev/dsp
> > > > >> su: /dev/dsp: Operation not supported
> > 
> > This is a weird error message. Don't know whether /dev/dsp exists or
> > not - worth checking.
> 
> ls /dev/d
> da0      da2      dcons    devstat  dsp0.0   dsp1.0   
> da1      da3      devctl   dgdb     dsp0.1   dumpdev 

On my machine:

$ ls /dev | grep dsp
dsp0.0
dsp0.1

i.e no dsp1.0

Could be that the 2 cards are confusing it, as you suggested previously
(they both use the same driver). Can you disable one in the BIOS? 

> 
> > I don't know why you seem to have 2 sound cards but I'd have a look at
> > getting the Intel sound card going. Put:
> > 
> > snd_hda_load="YES"
> > 
> > in /boot/loader.conf
> Done
> 
> > Reboot & then see what kldstat(8) and mixer(8) tell you. 
> 
> # kldstat 
> Id Refs Address    Size     Name
>  1    6 0xc0400000 97c8a8   kernel
>  2    1 0xc0d7d000 15524    snd_hda.ko
>  3    2 0xc0d93000 4a62c    sound.ko
>  4    1 0xc0dde000 6a2c4    acpi.ko
>  5    1 0xc68ea000 10000    ext2fs.ko

Looks OK.

> 
> 
> # mixer
> Mixer vol      is currently set to 100:100
> Mixer pcm      is currently set to  75:75

What does:

$ cat /dev/sndstat

give you?

> 
> > If that looks reasonable have a go at playing an mp3 or wav with
> > mplayer. Mplayer might give you some debugging output if it doesn't
> > work.
> 
> The output from mplayer 
> [AO OSS] audio_setup: Can't open audio device /dev/dsp: Operation not
> supported
> 

I'm not surprised it freaks out - it's probably struggling to figure
out which card to use.

I feel pretty sure you'll have better luck disabling one. I have had 2
cards in the same machine before but they used different drivers.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 



More information about the freebsd-questions mailing list