EMU 1616m PCI on PC-BSD

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

EMU 1616m PCI on PC-BSD

Postby ememem » Sat May 08, 2010 10:51 am

I have an EMU 1616m PCI and I can not seem to find enough information to make it work with PC-BSD. I do have it working on Fedora, however, that has a timing problem which I believe to be related to alsa (as I find out more about that I will share that information here). The main goal is still to get this card and it's outboard interface to function with a default install of PC-BSD which includes KDE/Phonon/Xine.

As you can see below there are some anomalies such as 1: oss is enabled yet does not detect any card even though KDE does, 2: KDE says the card is named 0x40041102 and is a sound blaster Audigy 2 (ca0108) yet the PC-BSD soundcards.xml doesn't even list it as an option and 3: the oss devices.list does not reference anything like phonon, KDE or the system seem to reference.

/etc/rc.conf :

Code: Select all
# Enable sound-support
snd_detect_enable="YES"
mixer_enable="YES"
oss_enable="YES"


/boot/loader.conf :

Code: Select all
# Load sound-support
sound_load="YES"
snd_emu10kx_load="YES"



KDE Info Center PCI section states that the card is:

Code: Select all
emu10kx0@pci0:2:3:0  class=0x040100  card=0x40041102 chip=0x00081102 rev=0x00  hdr=0x00
vendor   = 'Creative Technology LTD.'
device    = 'sound blaster Audigy 2 (ca0108)'
class       = multimedia
subclass  = audio


and yet... I can not find the "card=0x40041102 in this output from /PCBSD/soundDetect/soundcards.xml :

Code: Select all
0x01b110de 0x006a10de 0x008a10de 0x00da10de 0x026b10de 0x00ea10de 0x005910de 0x00da10de 0x03f010de 0x037110de 0x026c10de 0x03e410de 0x044a10de 0x044b10de 0x055c10de 0x055d10de 0xffff10de     0x74451022 0x746d1022     0x24c58086 0x24c58086 0x24d58086 0x24158086 0x266e8086 0x24858086 0x24458086 0x24258086 0x71958086 0x293e8086 0x27d88086 0x26688086 0x284b8086 0x269a8086 0xd6008086 0xffff8086     0x70121039 0x75021039 0xffff1039     0x000a1073 0x000c1073 0x00001073 0x00101073 0x000d1073     0x00021102 0x00041102 0x00071102 0x00081102 0x00051102 0x10211102 0x89381102     0x50001274 0x13711274 0x58801274     0x08011319 0x08021319     0x01001285 0x01001285 0x01001285     0x1968125d 0x1978125d 0x1988125d 0x1998125d 0x199a125d 0x1969125d     0x803c1033 0x80581033     0x800510c8 0x800610c8     0x20001023 0x20011023 0x70181039     0x545110b9 0x546110b9 0x545510b9     0x30591106 0x30581106 0x32881106 0xffff1106     0x40004005     0x000112eb     0x011113f6     0x437b1002 0x43831002 0xffff1002     0x30b5103c 0x30a2103c 0x30aa103c 0x30b0103c 0x3013103c 0x3010103c 0x30a5103c 0x2801103c 0x2802103c 0xffff103c     0x01cc1028 0x01c91028 0x01d71028 0x01da1028 0xffff1028     0x09001558 0xffff1558     0x17241412 0x17121412     0x010f1025 0x01271025 0x012f1025 0x01101025 0xffff1025     0x19931043 0x12631043 0x11531043 0x81cb1043 0x13231043 0x13c21043 0x12631043 0x19711043 0x13381043 0x81e71043 0x82341043 0x81cb1043 0x81ec1043 0xcb841043 0xffff1043     0x02f61014 0xffff1014     0x206617aa 0x101517aa 0xffff17aa     0x60031013 0x60051013


ossinfo :

Code: Select all
Version info: OSS 4.2 (b 2002/201002091238) (0x00040100) BSD
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD (pcbsd-4269)

Number of audio devices:   0
Number of audio engines:   0
Number of MIDI devices:      0
Number of mixer devices:   0


Device objects

MIDI devices (/dev/midi*)

Mixer devices

Audio devices

Nodes


osstest :

Code: Select all
Sound subsystem and version: OSS 4.2 (b 2002/201002091238) (0x00040100)
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.
          
        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).



and yet... cat /dev/sndstat :

Code: Select all
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <EMU10Kx DSP front PCM interface> on emu10kx0 [MPSAFE] (4p:4v/1r:4v channels duplex default)
pcm1: <EMU10Kx DSP rear PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm2: <EMU10Kx DSP center PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm3: <EMU10Kx DSP subwoofer PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)


~/.kde4/share/config/phonondevicesrc :

Code: Select all
[AudioDevice_:capture]
cardName=EMU10Kx DSP center PCM interface (pcm)
deleted=false
deviceNumber=2
hotpluggable=false
iconName=audio-card
index=-11
initialPreference=34
isAdvanced=false

[AudioDevice_:i1:capture]
cardName=EMU10Kx DSP rear PCM interface (pcm)
deleted=false
deviceNumber=1
hotpluggable=false
iconName=audio-card
index=-12
initialPreference=35
isAdvanced=false

[AudioDevice_:i1:playback]
cardName=EMU10Kx DSP rear PCM interface (pcm)
deleted=false
deviceNumber=1
hotpluggable=false
iconName=audio-card
index=-5
initialPreference=35
isAdvanced=false

[AudioDevice_:i2:capture]
cardName=EMU10Kx DSP subwoofer PCM interface (pcm)
deleted=false
deviceNumber=3
hotpluggable=false
iconName=audio-card
index=-14
initialPreference=33
isAdvanced=false

[AudioDevice_:i2:playback]
cardName=EMU10Kx DSP subwoofer PCM interface (pcm)
deleted=false
deviceNumber=3
hotpluggable=false
iconName=audio-card
index=-7
initialPreference=33
isAdvanced=false

[AudioDevice_:i3:capture]
cardName=EMU10Kx DSP front PCM interface (pcm)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-13
initialPreference=36
isAdvanced=false

[AudioDevice_:i3:playback]
cardName=EMU10Kx DSP front PCM interface (pcm)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-6
initialPreference=36
isAdvanced=false

[AudioDevice_:i4:capture]
cardName=EMU10Kx DSP front PCM interface (pcm)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-24
initialPreference=36
isAdvanced=false

[AudioDevice_:i4:playback]
cardName=EMU10Kx DSP front PCM interface (pcm)
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-21
initialPreference=36
isAdvanced=false

[AudioDevice_:i5:capture]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm)) #6 #6 #6 #6 #6 #6 #6 #6 #6
deleted=false
deviceNumber=6
hotpluggable=false
iconName=audio-card
index=-26
initialPreference=30
isAdvanced=false

[AudioDevice_:i5:playback]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm)) #6 #6 #6 #6 #6 #6 #6 #6 #6
deleted=false
deviceNumber=6
hotpluggable=false
iconName=audio-card
index=-23
initialPreference=30
isAdvanced=false

[AudioDevice_:i6:capture]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm)) #5 #5 #5 #5 #5 #5 #5 #5 #5
deleted=false
deviceNumber=5
hotpluggable=false
iconName=audio-card
index=-25
initialPreference=31
isAdvanced=false

[AudioDevice_:i6:playback]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm)) #5 #5 #5 #5 #5 #5 #5 #5 #5
deleted=false
deviceNumber=5
hotpluggable=false
iconName=audio-card
index=-22
initialPreference=31
isAdvanced=false

[AudioDevice_:playback]
cardName=EMU10Kx DSP center PCM interface (pcm)
deleted=false
deviceNumber=2
hotpluggable=false
iconName=audio-card
index=-4
initialPreference=34
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:0:capture]
cardName=snd_hda [MPSAFE] (1p:4v/1r:4v channels duplex default) (HDA Realtek ALC883 PCM #0 Analog (pcm))
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-8
initialPreference=36
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:0:playback]
cardName=snd_hda [MPSAFE] (1p:4v/1r:4v channels duplex default) (HDA Realtek ALC883 PCM #0 Analog (pcm))
deleted=false
deviceNumber=0
hotpluggable=false
iconName=audio-card
index=-1
initialPreference=36
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:1:capture]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm))
deleted=false
deviceNumber=1
hotpluggable=false
iconName=audio-card
index=-9
initialPreference=35
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:1:playback]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm))
deleted=false
deviceNumber=1
hotpluggable=false
iconName=audio-card
index=-2
initialPreference=35
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:2:capture]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm))
deleted=false
deviceNumber=2
hotpluggable=false
iconName=audio-card
index=-10
initialPreference=34
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:2:playback]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm))
deleted=false
deviceNumber=2
hotpluggable=false
iconName=audio-card
index=-3
initialPreference=34
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:4:capture]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #0 Analog (pcm)) #4 #4 #4 #4 #4 #4 #4 #4
deleted=false
deviceNumber=4
hotpluggable=false
iconName=audio-card
index=-18
initialPreference=32
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:4:playback]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #0 Analog (pcm)) #4 #4 #4 #4 #4 #4 #4 #4
deleted=false
deviceNumber=4
hotpluggable=false
iconName=audio-card
index=-15
initialPreference=32
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:5:capture]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm)) #5 #5 #5 #5 #5 #5 #5 #5 #5
deleted=false
deviceNumber=5
hotpluggable=false
iconName=audio-card
index=-19
initialPreference=31
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:5:playback]
cardName=snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex) (HDA Realtek ALC883 PCM #1 Analog (pcm)) #5 #5 #5 #5 #5 #5 #5 #5 #5
deleted=false
deviceNumber=5
hotpluggable=false
iconName=audio-card
index=-16
initialPreference=31
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:6:capture]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm)) #6 #6 #6 #6 #6 #6 #6 #6 #6
deleted=false
deviceNumber=6
hotpluggable=false
iconName=audio-card
index=-20
initialPreference=30
isAdvanced=false

[AudioDevice_pci:8086:27d8:1019:2932:6:playback]
cardName=snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex) (HDA Realtek ALC883 PCM #2 Digital (pcm)) #6 #6 #6 #6 #6 #6 #6 #6 #6
deleted=false
deviceNumber=6
hotpluggable=false
iconName=audio-card
index=-17
initialPreference=30
isAdvanced=false

[Globals]
nextIndex=27


/usr/local/lib/oss/etc/devices.list (with all but creative, emu or sb references ommitted):

Code: Select all
oss_audiopci   pci1274,5000   Creative AudioPCI (ES1370)
...
oss_emu10k1x   pci1102,6   Creative Sound Blaster 5.1 (Dell)
...
oss_hdaudio   pci1102,9   Creative Labs SB XFi Xtreme
...
oss_sblive   pci1102,2   Creative Sound Blaster Live
oss_sblive   pcs1102,8040   Creative Sound Blaster Live 1024/Platinum
oss_sblive   pcs1102,8061   Creative Sound Blaster Live 5.1/Platinum IR
oss_sblive   pci1102,4   Creative Sound Blaster Audigy/Audigy2
oss_sblive   pcs1102,51   Creative Sound Blaster Audigy Platinum
oss_sblive   pci1102,8   Creative Sound Blaster Audigy2 Value/Audigy4
oss_sblive   pci1102,2001   Creative Sound Blaster Audigy2 ZS PCMCIA
oss_sbpci   pci1102,8938   Creative Ectiva EV1938
oss_sbpci   pci1274,1371   Creative AudioPCI97 (ES1371/ES1373)
oss_sbpci   pci1274,5880   Creative Sound Blaster PCI128 (5880B)
oss_sbpci   pci1274,8001   Creative Sound Blaster PCI128 (CT5880)
oss_sbpci   pci1274,8002   Creative Sound Blaster PCI128 (5880A)
oss_sbxfi   pci1102,5   Creative SB X-Fi 20K1 *EARLY BETA*
oss_sbxfi   pci1102,b   Creative SB X-Fi 20K2 *EARLY BETA*


I see a couple of pci1102 references in there but I suspect that none of them are correct for my card. I have been to http://connect.creativelabs.com/opensou ... pport.aspx and seemingly a million other places and so far... nada for getting this to function properly on PC-BSD. I'm to the point that I need help. Any offered would be appreciated :)
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sat May 08, 2010 11:58 am

I'll go ahead and reserve the second post here for adding links and new info.

http://www.freebsd.org/releases/8.0R/hardware.html wrote:[i386,amd64] The snd_emu10kx(4) driver supports the following sound cards:

Creative Sound Blaster Live! (EMU10K1 Chipset). Both PCM and MIDI interfaces are available.

Creative Sound Blaster Audigy (CA0100 and CA0101 Chipset). PCM and two MIDI interfaces available.

Creative Sound Blaster Audigy 2 and Creative Sound Blaster Audigy 4 (CA0102 Chipset). PCM support is limited to 48kHz/16 bit stereo (192kHz/24 bit part of this chipset is not supported).

Creative Sound Blaster Audigy 2 Value (CA0108 Chipset). PCM support is limited to 48kHz/16 bit stereo (192kHz/24 bit part of this chipset is not supported). There is no MIDI support for this card.


http://alsa-project.org/main/index.php/ ... ative_Labs
(ca0108 listed for a Sound Blaster Audigy2 ZS Value yet Audigy4 and others are listed in many other places)

http://www.cs.fsu.edu/~baker/devices/lx ... 0k1_main.c
(interesting linux code)
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sat May 08, 2010 4:41 pm

First, when talking about OSS in FreeBSD we need to separate between the native sound system (which uses OSS API but isn't from 4front, has different internal workings etc.) and 4front's OSS4. As we can see from the data above, you set up both drivers to be loaded. What happens is that the FreeBSD driver loads first and hogs up the soundcard, and since the kernel obviously can't let two separate drivers run a single device OSS4 can't see it (therefor ossinfo shows nothing). If you want to try OSS4 you'll have to first disable the FreeBSD drivers ("sound_load"="NO" etc.).

Second, If I read the output correctly, the soundcard's pci id is 1102:0008 (It seems 1102:4004 is the subdevice id, not the card's pci id) which is recognized by oss, so you should be able to try it once the native driver is disabled. I suggest you run "osstest" after loading oss properly and check if it emits sound.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 7:09 am

I switched sound_load="YES"" to sound_load="NO"... rebooted... did osstest :

Code: Select all
Sound subsystem and version: OSS 4.2 (b 2002/201002091238) (0x00040100)
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD

NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.
          
        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).


Searched the entire file system for "oss4" and found nothing. I am not sure I understand how you mean that the oss that FreeBSD uses is not from 4front. How is it different? Where is it from then? Am I barking up the wrong tree even being here?
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 8:27 am

You have both the oss from FreeBSD kernel (/boot/kernel/snd* modules), and oss4 from 4front (at /usr/local/lib/oss directory). Which one you use is your own decision - did you test sound when the native drivers were loaded? Did playback work? I don't know all that much about these drivers. As for OSS4, installation must have goofed somehow. Run "sudo ossdetect -v" and restart OSS4 using "sudo soundoff" and "sudo soundon" commands (reboot not necessary). You should be able to see that card then and run "osstest".
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 8:57 am

Yes, when native drivers were loaded the hda/board outs worked fine.

root@pcbsd-4269# sudo ossdetect -v

Code: Select all
Detected Intel High Definition Audio (ICH7)
Detected Creative Sound Blaster Audigy2 Value/Audigy4


root@pcbsd-4269# sudo soundoff

Code: Select all
No mixers in the system                             

Some applications are still using OSS - cannot unload

USER           CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
ememem    kdeinit4    2328   10 /dev         41 crw-rw-rw-  mixer1 rw  /dev/mixer1
ememem    kdeinit4    2328   12 /dev         42 crw-rw-rw-  mixer2 rw  /dev/mixer2
ememem    kdeinit4    2328   13 /dev         43 crw-rw-rw-  mixer3 rw  /dev/mixer3
ememem    knotify4    2231   13 /dev        152 crw-rw-rw-   mixer  r  /dev/mixer

Please stop these applications and run soundoff again


root@pcbsd-4269# sudo soundon

Code: Select all
kldload: can't load /usr/local/lib/oss/modules/osscore.ko: File exists
Loading the osscore module failed   


root@pcbsd-4269# osstest

Code: Select all
Sound subsystem and version: OSS 4.2 (b 2002/201002091238) (0x00040100)
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.

        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).


Hmm... "no mixers in the system" and yet 4 were found. "Please stop these applications and run soundoff again" ... I'm not going to do that until I hear back from you :)
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 9:04 am

You can stop these apps and run soundon/soundoff again or you can reboot. Same result. Then run osstest.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 9:37 am

Here's the order of events...

root@pcbsd-4269# soundoff

Code: Select all
No mixers in the system


root@pcbsd-4269# osstest

Code: Select all
Sound subsystem and version: FreeBSD native OSS ABI 800107 (0x00040000)
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD                                             
/dev/dsp0.p0 (audio engine 0): pcm0:play:dsp0.p0                                                               
- Performing audio playback test... /dev/dsp0.p0: Device busy                                                   
Can't open the device                                                                                           
/dev/dsp0.p1 (audio engine 1): pcm0:play:dsp0.p1                                                               
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.p2 (audio engine 2): pcm0:play:dsp0.p2                                                               
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.p3 (audio engine 3): pcm0:play:dsp0.p3                                                               
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.vp0 (audio engine 4): pcm0:virtual:dsp0.vp0                                                           
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.vp1 (audio engine 5): pcm0:virtual:dsp0.vp1                                                           
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.vp2 (audio engine 6): pcm0:virtual:dsp0.vp2                                                           
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp0.vp3 (audio engine 7): pcm0:virtual:dsp0.vp3                                                           
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44095.00 Hz (-8.14%)>                                       
/dev/dsp0.r0 (audio engine 8): pcm0:record:dsp0.r0                                                             
- Skipping input only device                                                                                   
/dev/dsp0.vr0 (audio engine 9): pcm0:virtual:dsp0.vr0                                                           
- Skipping input only device                                                                                   
/dev/dsp0.vr1 (audio engine 10): pcm0:virtual:dsp0.vr1                                                         
- Skipping input only device                                                                                   
/dev/dsp0.vr2 (audio engine 11): pcm0:virtual:dsp0.vr2                                                         
- Skipping input only device                                                                                   
/dev/dsp0.vr3 (audio engine 12): pcm0:virtual:dsp0.vr3                                                         
- Skipping input only device                                                                                   
/dev/dsp1.p0 (audio engine 13): pcm1:play:dsp1.p0                                                               
- Performing audio playback test... /dev/dsp1.p0: Device busy                                                   
Can't open the device                                                                                           
/dev/dsp1.vp0 (audio engine 14): pcm1:virtual:dsp1.vp0                                                         
- Performing audio playback test...                                                                             
  <left> OK <right> OK <stereo> OK <measured srate 44094.00 Hz (-8.14%)>                                       
/dev/dsp2.p0 (audio engine 15): pcm2:play:dsp2.p0                                                               
- Performing audio playback test... /dev/dsp2.p0: Device busy                                                   
Can't open the device
/dev/dsp2.vp0 (audio engine 16): pcm2:virtual:dsp2.vp0
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 44095.00 Hz (-8.14%)>
/dev/dsp3.p0 (audio engine 17): pcm3:play:dsp3.p0
- Performing audio playback test... /dev/dsp3.p0: Device busy
Can't open the device
/dev/dsp3.vp0 (audio engine 18): pcm3:virtual:dsp3.vp0
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 44095.00 Hz (-8.14%)>

*** Some errors were detected during the tests ***


root@pcbsd-4269# ossdetect -v

Code: Select all
Detected Intel High Definition Audio (ICH7)       
Detected Creative Sound Blaster Audigy2 Value/Audigy4


root@pcbsd-4269# soundon

root@pcbsd-4269# osstest

Code: Select all
Sound subsystem and version: OSS 4.2 (b 2002/201002091238) (0x00040100)
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD                                             

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play front
- Performing audio playback test...                             
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play rear         
- Performing audio playback test...                                     
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/pcm2 (audio engine 2): HD Audio play center/LFE   
- Performing audio playback test...                                     
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/pcm3 (audio engine 3): HD Audio play side
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/pcm4 (audio engine 4): HD Audio play pcm4
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/spdout0 (audio engine 5): HD Audio play spdif-out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47986.00 Hz (-0.03%)>
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 6): HD Audio rec mix
- Skipping input only device
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 7): HD Audio rec mix
- Skipping input only device

*** All tests completed OK ***


Hmm...
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 9:47 am

Where is oss_sblive? hmm.. Edit /usr/local/lib/oss/etc/installed_drivers and make sure the only line is "oss_sblive" (if not there, add it). Restart OSS (killing apps if necessary). Then run "osstest" (I don't care about its output - what's important is whether it actually plays some sound. Do you hear anything?). Then paste output of 'ossinfo -v3' and 'ossmix' here.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 10:17 am

Set oss_sblive as the only thing in /ur/local/lib/oss/etc/installed_drivers

Rebooted... no sound from anything. Tried VLC player, Kmplayer, both with default and oss as output options, nothing.

root@pcbsd-4269# ossinfo -v3

Code: Select all
Version info: OSS 4.2 (b 2002/201002091238) (0x00040100) BSD                   
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD (pcbsd-4269)                               

Number of audio devices:        0
Number of audio engines:        0
Number of MIDI devices:         0
Number of mixer devices:        0


Device objects

MIDI devices (/dev/midi*)

Mixer devices

Audio devices

Nodes


root@pcbsd-4269# ossmix

Code: Select all
Mixer device 0 has no functionality


Then killed kdeinit4 apps, did soundoff / soundon, ran the osstest (still no sound), ossinfo -v3 and ossmix with same results as above.
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 10:19 am

So oss_sblive isn't loaded for some reason... Please paste the result of "cat /dev/sndstat" here. Maybe the native driver is still loaded?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 10:23 am

root@pcbsd-4269# cat /dev/sndstat

Code: Select all
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <EMU10Kx DSP front PCM interface> on emu10kx0 [MPSAFE] (4p:4v/1r:4v channels duplex default)
pcm1: <EMU10Kx DSP rear PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm2: <EMU10Kx DSP center PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)
pcm3: <EMU10Kx DSP subwoofer PCM interface> on emu10kx0 [MPSAFE] (1p:1v/0r:0v channels simplex)
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 10:25 am

The native driver is still loaded... We need to get rid of it. Hmm.. I think (not sure) you need to set "snd_detect_enable" and "sound_load" and "snd_emu10kx_load" to "NO" and reboot.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: EMU 1616m PCI on PC-BSD

Postby ememem » Sun May 09, 2010 10:50 am

Ok, as you advised, then rebooted... still no sound, however, now...

root@pcbsd-4269# cat /dev/sndstat

Code: Select all
OSS 4.2 (b 2002/201002091238)BSD (C) 4Front Technologies 1996-2009
Kernel: FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010   
    root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD


Audio devices:
0: SB Audigy2 Value main (DUPLEX)
1: SB Audigy2 Value front out (OUTPUT)
2: SB Audigy2 Value side out (OUTPUT)
3: SB Audigy2 Value center/lfe out (OUTPUT)
4: SB Audigy2 Value raw S/PDIF (output only) (OUTPUT)
5: SB Audigy2 Value 5.1 output device (OUTPUT)       

MIDI devices:
0: Audigy UART

Mixers:
0: SB Audigy2 Value (Unknown)

History:
/dev/oss/oss_sblive0/pcm0.01: pid 2922 cmd 'vlc' OUT
/dev/oss/oss_sblive0/pcm1.05: pid 2922 cmd 'vlc' OUT
/dev/oss/oss_sblive0/pcm0.01: pid 2922 cmd 'vlc' OUT
/dev/oss/oss_sblive0/pcm0.01: pid 3317 cmd 'vlc' OUT
/dev/oss/oss_sblive0/pcm0.01: pid 3317 cmd 'vlc' OUT


NOTICE! Device numbers shown above may be wrong.
        Use the ossinfo command to find out the correct device names.


root@pcbsd-4269# ossinfo

Code: Select all
Version info: OSS 4.2 (b 2002/201002091238) (0x00040100) BSD         
Platform: FreeBSD/i386 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #4: Thu Jan  7 09:20:42 PST 2010     root@build8x32.pcbsd.org:/usr/obj/usr/pcbsd-build80/fbsd-source/8.0-src/sys/PCBSD (pcbsd-4269)                               

Number of audio devices:        6
Number of audio engines:        10
Number of MIDI devices:         1
Number of mixer devices:        1


Device objects
0: oss_sblive0 SB Audigy2 Value interrupts=56761 (69207)

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 0)

Mixer devices
0: SB Audigy2 Value (Unknown) (Mixer 0 of device object 0)

Audio devices
SB Audigy2 Value main             /dev/oss/oss_sblive0/pcm0  (device index 0)
SB Audigy2 Value front out        /dev/oss/oss_sblive0/pcm1  (device index 1)
SB Audigy2 Value side out         /dev/oss/oss_sblive0/pcm2  (device index 2)
SB Audigy2 Value center/lfe out   /dev/oss/oss_sblive0/pcm3  (device index 3)
SB Audigy2 Value raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm4  (device index 4)
SB Audigy2 Value 5.1 output device  /dev/oss/oss_sblive0/pcm5  (device index 5)

Nodes
  /dev/dsp -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_in -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_out -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_mmap -> /dev/oss/oss_sblive0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_sblive0/pcm5


The mixer also came up with the "Audigy 2 Value (unknown)" and nothing is muted.
ememem
Member
 
Posts: 11
Joined: Sat May 08, 2010 9:16 am
Location: Running, Amuk

Re: EMU 1616m PCI on PC-BSD

Postby cesium » Sun May 09, 2010 10:55 am

OK, so now it's loaded. First, please paste the output of 'ossmix' here. Second, try adding the line 'audigy_digital_din=0' in /usr/lib/oss/conf/oss_sblive.conf and restart OSS with soundoff/soundon and test again. (If the test fails, please remove that line)
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Next

Return to BSD

Who is online

Users browsing this forum: Bing [Bot] and 1 guest