No Audio with Yamaha OPL-SAx Soundcard

From: Travis Whitton <whitton_at_atlantic.net>
Date: Mon, 24 May 2004 14:10:16 -0400
Hello,
I'm having a problem getting my Yamaha YMF711 soundcard working under 
FreeBSD 5.2.1. I just migrated my desktop from Gentoo Linux to FreeBSD, 
and I have everything working sans sound. Here's what I have so far.

whitton# kldstat
Id Refs Address    Size     Name
  1   11 0xc0400000 5e1ce0   kernel
  2    1 0xc09e2000 1aea24   nvidia.ko
  3    2 0xc0b91000 1da78    linux.ko
  4    1 0xc0baf000 51ac8    acpi.ko
  5    6 0xc4fd9000 19000    snd_pcm.ko
  6    1 0xc5003000 a000     snd_mss.ko
  7    1 0xc5012000 4000     snd_sbc.ko

whitton# dmesg | grep pcm
pcm0: <Yamaha OPL-SAx> at port 
0x370-0x371,0x330-0x331,0x388-0x38b,0x530-0x537,0x220-0x22f irq 5 drq 
1,0 on isa0

whitton# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Yamaha OPL-SAx> at io 0x530 irq 5 drq 0:1 bufsz 4096 (1p/1r/0v 
channels duplex default)

whitton# ls -l /dev/dsp*
crw-rw-rw-  1 root  wheel   30,   3 May 23 15:49 /dev/dsp0.0
crw-rw-rw-  1 root  wheel   30, 0x00010003 May 23 15:49 /dev/dsp0.1
crw-rw-rw-  1 root  wheel   30,   5 May 23 15:41 /dev/dspW0.0
crw-rw-rw-  1 root  wheel   30, 0x00010005 May 23 15:41 /dev/dspW0.1
crw-rw-rw-  1 root  wheel   30,  11 May 23 15:41 /dev/dspr0.0

whitton# ls -l /dev/audio0.*
crw-rw-rw-  1 root  wheel   30,   4 May 23 15:49 /dev/audio0.0
crw-rw-rw-  1 root  wheel   30, 0x00010004 May 23 15:49 /dev/audio0.1

whitton# mixer
Mixer vol      is currently set to  75:75
Mixer bass     is currently set to  50:50
Mixer treble   is currently set to  50:50
Mixer synth    is currently set to  75:75
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer mix      is currently set to   0:0
Mixer igain    is currently set to   0:0
Recording source: mic

It looks like everything is in place for sound to work; however, I get 
no audio under KDE or when I do something as simple as:

whitton# cat georgejuggle.wav > /dev/audio0.0
whitton# cat georgejuggle.wav > /dev/dsp0.0

I have verified that the soundcard is connected properly by booting off 
of a knoppix live CD and doing:
whitton# modprobe ad1848
whitton# modprobe opl3sa2
whitton# cat somfile.wav > /dev/audio

My bios tells me that the card is on IRQ 5 with DMA 0,1. Any help would 
be greatly appreciated. I'm synced up to the freshest 5.2.1 via 
freebsd-update, and I haven't touched the GENERIC kernel.

whitton# uname -a
FreeBSD whitton.intranet 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Sun 
Mar 28 22:11:39 GMT 2004     
root_at_builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

Thanks,
Travis Whitton
Received on Mon May 24 2004 - 09:10:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:54 UTC