FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby Tambavlick » Fri Mar 25, 2011 11:54 am

("" \ ( * ,,,, * ) / "") - Hi! Sorry for my hard in english.
--------------------------------------------------------------
I have a problem with multi-channel playback.
Sound heard only of four speakers (FL, FR, RL, RR). Central channel (Subwoofer+FC) does not work, but if the jack is inserted at the half,then heard a sound from the subwoofer.
Once I had a similar problem on Win XP - then helped the option "bass redirection" in sound card driver.
The audio card is: Sound blaster Audigy 4 Model SB0610.
The speaker system: Microlab A-H500D.
--------------------------------------------------------------
uname -a:
Code: Select all
FreeBSD thebase.orange 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

kldstat:
Code: Select all
Id Refs Address    Size     Name
1   25 0xc0400000 bd97b4   kernel
2    1 0xc5ec8000 8000     linprocfs.ko
3    1 0xc5ed0000 26000    linux.ko
4    2 0xc617a000 7a000    osscore.ko
5    1 0xc61fd000 15000    oss_sblive.ko
6    1 0xc64da000 68000    radeon.ko
7    1 0xc6542000 14000    drm.ko
8    1 0xc6cc9000 b000     ntfs.ko

ossinfo -v3:
Code: Select all
Version info: OSS 4.2 (b 2004/201103240731) (0x00040100) BSD
Platform: FreeBSD/i386 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC (thebase.orange)

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 Audigy4 interrupts=384647 (461316)

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 0)
    Device file /dev/oss/oss_sblive0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: OSS-PCI-md01

Mixer devices
0: SB Audigy4 (STAC9750) (Mixer 0 of device object 0)
    Device file /dev/oss/oss_sblive0/mix0, Legacy device /dev/mixer0
    Priority: 2
    Caps:
    Device handle: OSS-PCI-mx01
    Device priority: 2

Audio devices
SB Audigy4 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/SB Audigy4 main
                     Busy (IN/OUT) label 'VMIX'
      Engine      2: 1/SB Audigy4 main (vmix)
                     Busy (OUT) by PID 1465 / vlc label 'vlc'
      Engine      3: 2/SB Audigy4 main (vmix)
                     Available for use
      Engine      4: 3/SB Audigy4 main (vmix)
                     Available for use
      Engine      5: 4/SB Audigy4 main (vmix)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: OSS-PCI-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/SB Audigy4 front out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: OSS-PCI-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/SB Audigy4 side out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: OSS-PCI-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/SB Audigy4 center/lfe out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: OSS-PCI-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 8/SB Audigy4 raw S/PDIF (output only)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: OSS-PCI-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 5.1 output device      /dev/oss/oss_sblive0/pcm5  (device index 5)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 9/SB Audigy4 5.1 output device
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: OSS-PCI-au06
    Related mixer dev: -1
    Sample rate source: 5
    Preferred channel configuration: MULTICH
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 8000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated

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/pcm0

osstest:
Code: Select all
Sound subsystem and version: OSS 4.2 (b 2004/201103240731) (0x00040100)
Platform: FreeBSD/i386 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

*** Scanning sound adapter #-1 ***
/dev/oss/oss_sblive0/pcm0 (audio engine 0): SB Audigy4 main
Note! Device is in use (by PID 0/VMIX) but will try anyway
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47980.00 Hz (-0.04%)>
/dev/oss/oss_sblive0/pcm1 (audio engine 5): SB Audigy4 front out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47991.00 Hz (-0.02%)>
/dev/oss/oss_sblive0/pcm2 (audio engine 6): SB Audigy4 side out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47994.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm3 (audio engine 7): SB Audigy4 center/lfe out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47994.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm4 (audio engine 8): SB Audigy4 raw S/PDIF (output only)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47994.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm5 (audio engine 9): SB Audigy4 5.1 output device
- Skipping multi channel device

ossmix:
Code: Select all
Selected mixer 0/SB Audigy4 (STAC9750)
Known controls are:
line [<leftvol>:<rightvol>] (currently 0:0)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 0:0)
cd.rec ON|OFF (currently OFF)
igain [<leftvol>:<rightvol>] (currently 0:0)
aux1 [<leftvol>:<rightvol>] (currently 0:0)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 0:0)
phone.rec ON|OFF (currently OFF)
autorese ON|OFF (currently ON)
spkmode <FRONT|SURR|FRONT+SURR|DISCRETE> (currently FRONT+SURR)
pcm.main <monovol> (currently 100)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <High|OFF> (currently High)
vmix0-outvol <monovol> (currently 18.3 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm1 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("npviewer.bin")
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
pcm2 [<leftvol>:<rightvol>] (currently 100:100)
vol [<leftvol>:<rightvol>] (currently 100:100)
equalizer.prescale <monovol> (currently 100)
equalizer.lo <monovol> (currently 157)
equalizer.mid <monovol> (currently 151)
equalizer.hi <monovol> (currently 138)
equalizer.xhi <monovol> (currently 151)
equalizer.bypass ON|OFF (currently OFF)
front.spdif <monovol> (currently 100)
front.digcd <monovol> (currently 100)
front.ac97 <monovol> (currently 100)
front.pcm <monovol> (currently 75)
front.aux <monovol> (currently 100)
front.mic <monovol> (currently 100)
front.vol [<leftvol>:<rightvol>] (currently 100:100)
surr.spdif <monovol> (currently 100)
surr.digcd <monovol> (currently 100)
surr.ac97 <monovol> (currently 100)
surr.pcm <monovol> (currently 100)
surr.aux <monovol> (currently 100)
surr.mic <monovol> (currently 100)
surr.vol [<leftvol>:<rightvol>] (currently 100:100)
record.spdif <monovol> (currently 100)
record.digcd <monovol> (currently 100)
record.ac97 <monovol> (currently 100)
record.pcm <monovol> (currently 100)
record.aux <monovol> (currently 100)
record.mic <monovol> (currently 100)
record.vol [<leftvol>:<rightvol>] (currently 100:100)

--------------------------------------------------------------
I tried the following solutions:
-sudo ln -sf /dev/oss/oss_sblive0/pcm0 /dev/dsp_multich
-audigy_digital_din=0 in usr/local/lib/oss/conf/oss_sblive.conf
--------------------------------------------------------------
Thank you.
Tambavlick
New Member
 
Posts: 2
Joined: Tue Mar 22, 2011 2:54 pm

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby cesium » Fri Mar 25, 2011 5:49 pm

Try multichannel output is /dev/oss/oss_sblive0/pcm5 , but I see you tried to symlink pcm0. Maybe you tested the wrong output? Test for pcm5. Second, try changing SPKMODE in the mixer controls. Third, if you change oss_sblive.conf, note that OSS restart (soundoff && soundon) is needed to get the settings.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby Tambavlick » Fri Mar 25, 2011 8:27 pm

Thank U for a quick reply!)
If I try to test multichannel output /dev/oss/oss_sblive0/pcm5 (for example:"cat /dev/random > /dev/oss/oss_sblive0/pcm5" or when I choose this device as an output in VLC ) it is appeared an error in terminal "panic double fault" and the computer begins to reboot after 15 sec. I tested it also with another computer (FreeBSD 8.1/OSS 4.2), by moving this sound card, but it was the same error and computer restarting, so no result! :shock:
And what about the second and the third points - I've also tried & it was no result!!!
P.S. I suppose that if the jack is inserted at the half and it is heard the sound from the subwoofer, the problem may be in redirection or remapping of output signals....
Tambavlick
New Member
 
Posts: 2
Joined: Tue Mar 22, 2011 2:54 pm

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby cesium » Sun Mar 27, 2011 1:38 am

"P.S. I suppose that if the jack is inserted at the half and it is heard the sound from the subwoofer, the problem may be in redirection or remapping of output signals...."

hmm.. You can try to change the channel mapping with 'sudo vmixctl remap' command (see 'vmixctl' manpage for details).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby dev » Mon Apr 11, 2011 10:04 pm

Hi,


Try compiling http://www.4front-tech.com/test/multich_test.c (cc -o multich multich_test.c -lm ) and see if you hear the multiple beeps on each of the speakers.



regards
Dev
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Thu Aug 09, 2012 9:17 pm

Hello!
Sorry for my english.
I have absolutely the same problem with the same card, but on Linux (Debian).
ossinfo -v3:
Code: Select all
Version info: OSS 4.2 (b 2007/201207032126) (0x00040100)
Platform: Linux/i686 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 (koscomp)

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


Device objects
0: osscore0 OSS core services
1: oss_sblive0 SB Audigy4 interrupts=19931 (19931)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_sblive0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI10211102-0000:01:01.0-md01


Mixer devices
0: SB Audigy4 (STAC9750) (Mixer 0 of device object 1)
    Device file /dev/oss/oss_sblive0/mix0, Legacy device /dev/mixer0
    Priority: 2
    Caps:
    Device handle: PCI10211102-0000:01:01.0-mx01
    Device priority: 2


Audio devices
SB Audigy4 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/SB Audigy4 main
                     Available for use
      Engine      2: 1/SB Audigy4 main (vmix)
                     Available for use
      Engine      3: 2/SB Audigy4 main (vmix)
                     Available for use
      Engine      4: 3/SB Audigy4 main (vmix)
                     Available for use
      Engine      5: 4/SB Audigy4 main (vmix)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/SB Audigy4 front out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/SB Audigy4 side out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/SB Audigy4 center/lfe out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 8/SB Audigy4 raw S/PDIF (output only)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 5.1 output device      /dev/oss/oss_sblive0/pcm5  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 9/SB Audigy4 5.1 output device
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: PCI10211102-0000:01:01.0-au06
    Related mixer dev: -1
    Sample rate source: 5
    Preferred channel configuration: MULTICH
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 8000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated


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


ossmix -a:
Code: Select all
Selected mixer 0/SB Audigy4 (STAC9750)
Known controls are:
line [<leftvol>:<rightvol>] (currently 32:32)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 0:0)
cd.rec ON|OFF (currently OFF)
igain [<leftvol>:<rightvol>] (currently 0:0)
aux1 [<leftvol>:<rightvol>] (currently 0:0)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 0:0)
phone.rec ON|OFF (currently OFF)
autorese ON|OFF (currently ON)
spkmode <FRONT|SURR|FRONT+SURR|DISCRETE> (currently FRONT+SURR)
pcm.main <monovol> (currently 60)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 25.0 dB)
vmix0-invol <monovol> (currently 0.9 dB)
vmix0.pcm1 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 0.0:0.0 dB)
pcm2 [<leftvol>:<rightvol>] (currently 38:38)
vol [<leftvol>:<rightvol>] (currently 37:37)
equalizer.prescale <monovol> (currently 100)
equalizer.lo <monovol> (currently 128)
equalizer.mid <monovol> (currently 128)
equalizer.hi <monovol> (currently 128)
equalizer.xhi <monovol> (currently 128)
equalizer.bypass ON|OFF (currently OFF)
front.spdif <monovol> (currently 0)
front.digcd <monovol> (currently 32)
front.ac97 <monovol> (currently 35)
front.pcm <monovol> (currently 47)
front.aux <monovol> (currently 27)
front.mic <monovol> (currently 0)
front.vol [<leftvol>:<rightvol>] (currently 37:37)
surr.spdif <monovol> (currently 0)
surr.digcd <monovol> (currently 30)
surr.ac97 <monovol> (currently 27)
surr.pcm <monovol> (currently 42)
surr.aux <monovol> (currently 37)
surr.mic <monovol> (currently 0)
surr.vol [<leftvol>:<rightvol>] (currently 65:65)
record.spdif <monovol> (currently 0)
record.digcd <monovol> (currently 39)
record.ac97 <monovol> (currently 39)
record.pcm <monovol> (currently 34)
record.aux <monovol> (currently 37)
record.mic <monovol> (currently 0)
record.vol [<leftvol>:<rightvol>] (currently 69:69)


If try to use /dev/oss/oss_sblive0/pcm5 (/dev/dsp_multich), system freezes or reboot immediately. The same with multich_test on post above.
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Fri Aug 10, 2012 8:57 pm

Found the reason of freezing and rebooting - it is a kernel panic. What can be its reason?
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby cesium » Sun Aug 12, 2012 4:30 pm

Well, it's not the same issue.. It's the oss_sblive driver not playing well with the audigy's spdif output. I recall someone on Linux having the same issue, so it is not FreeBSD specific. Alas, I don't know enough to help you here. It may be a much earlier version of OSS didn't have this problem (or maybe not).
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Sun Aug 12, 2012 7:33 pm

Oh, yes, that's my mistake, sorry. I'm not using SPDIF. So, i shouldn't use /dev/oss/oss_sblive0/pcm5. Thank you for showing the right way! I will continue to looking for the reason of missing center/sub.
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby cesium » Sun Aug 12, 2012 7:48 pm

You didn't quite say you have this problem... Well, are you using an analog connection? See "man oss_sblive" - this requires adding a setting to oss_sblive.conf.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Tue Aug 14, 2012 11:35 am

You didn't quite say you have this problem...

But it is in the first post of this topic :))
Well, are you using an analog connection?

Yes
setting to oss_sblive.conf

I tried this. But there is a strange behavior, when i'm changing options. Current options are:
Code: Select all
sblive_digital_din = 0
audigy_digital_din = 1

If i change "audigy_digital_din" to 0, i hear just a noise. If it is set to 1, there is no center/sub
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Tue Aug 14, 2012 2:42 pm

Something new: i set "sblive_devices = 32" now there are new devices:
ossinfo -v3:
Code: Select all
Version info: OSS 4.2 (b 2006/201205171707) (0x00040100) GPL
Platform: Linux/i686 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 (koscomp)

Number of audio devices:   8
Number of audio engines:   37
Number of MIDI devices:      1
Number of mixer devices:   1


Device objects
0: osscore0 OSS core services
1: oss_sblive0 SB Audigy4 interrupts=34234 (34234)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_sblive0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI10211102-0000:01:01.0-md01


Mixer devices
0: SB Audigy4 (STAC9750) (Mixer 0 of device object 1)
    Device file /dev/oss/oss_sblive0/mix0, Legacy device /dev/mixer0
    Priority: 2
    Caps:
    Device handle: PCI10211102-0000:01:01.0-mx01
    Device priority: 2


Audio devices
SB Audigy4 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/SB Audigy4 main
                     Available for use
      Engine      2: 1/SB Audigy4 main (vmix)
                     Available for use
      Engine      3: 2/SB Audigy4 main (vmix)
                     Available for use
      Engine      4: 3/SB Audigy4 main (vmix)
                     Available for use
      Engine      5: 4/SB Audigy4 main (vmix)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/SB Audigy4 front out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/SB Audigy4 side out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/SB Audigy4 center/lfe out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 rear out               /dev/oss/oss_sblive0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 8/SB Audigy4 rear out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 extra out              /dev/oss/oss_sblive0/pcm5  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 9/SB Audigy4 extra out
                     Available for use
      Out engine  2: 10/SB Audigy4 extra out
                     Available for use
      Out engine  3: 11/SB Audigy4 extra out
                     Available for use
      Out engine  4: 12/SB Audigy4 extra out
                     Available for use
      Out engine  5: 13/SB Audigy4 extra out
                     Available for use
      Out engine  6: 14/SB Audigy4 extra out
                     Available for use
      Out engine  7: 15/SB Audigy4 extra out
                     Available for use
      Out engine  8: 16/SB Audigy4 extra out
                     Available for use
      Out engine  9: 17/SB Audigy4 extra out
                     Available for use
      Out engine 10: 18/SB Audigy4 extra out
                     Available for use
      Out engine 11: 19/SB Audigy4 extra out
                     Available for use
      Out engine 12: 20/SB Audigy4 extra out
                     Available for use
      Out engine 13: 21/SB Audigy4 extra out
                     Available for use
      Out engine 14: 22/SB Audigy4 extra out
                     Available for use
      Out engine 15: 23/SB Audigy4 extra out
                     Available for use
      Out engine 16: 24/SB Audigy4 extra out
                     Available for use
      Out engine 17: 25/SB Audigy4 extra out
                     Available for use
      Out engine 18: 26/SB Audigy4 extra out
                     Available for use
      Out engine 19: 27/SB Audigy4 extra out
                     Available for use
      Out engine 20: 28/SB Audigy4 extra out
                     Available for use
      Out engine 21: 29/SB Audigy4 extra out
                     Available for use
      Out engine 22: 30/SB Audigy4 extra out
                     Available for use
      Out engine 23: 31/SB Audigy4 extra out
                     Available for use
      Out engine 24: 32/SB Audigy4 extra out
                     Available for use
      Out engine 25: 33/SB Audigy4 extra out
                     Available for use
      Out engine 26: 34/SB Audigy4 extra out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au06
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm6  (device index 6)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 35/SB Audigy4 raw S/PDIF (output only)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au07
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 5.1 output device      /dev/oss/oss_sblive0/pcm7  (device index 7)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 36/SB Audigy4 5.1 output device
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: PCI10211102-0000:01:01.0-au08
    Related mixer dev: -1
    Sample rate source: 5
    Preferred channel configuration: MULTICH
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 8000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated


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/pcm7


and osstest playng center channel (sub) now! But there is no sound at center in other players... ossmix is the same
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Tue Aug 21, 2012 7:21 pm

So, are there any ideas?
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby cesium » Tue Aug 21, 2012 10:00 pm

Sorry, I've been very busy... I'm not entirely sure what you mean by 'no sound with other players'. osstest probably plays via the center because it (eventually) reaches the right dsp node. I think other players should be able to play if they are pointed to it... Can you check what that node's name is?

As for getting it to work combined with the other outputs, well, I found out the muxing for the 5.1 output is done by the remux function (see kernel/.../remux/ subdir in the source). If we can find out why it crashes, we should be able to get it to work combined.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: FreeBSD 8.2/OSS 4.2 - Multi-channel playback problem.

Postby kosproger » Wed Aug 22, 2012 3:51 pm

Oh, i'm very very sorry, there is a mistake because of my inattention. Osstest starts to play center out after I've set SPKMODE to DISCRETE. I checked it again and if sblive_devices is default (with SPKMODE DISCRETE), osstest still play center out. But it is playing just when it test center/lfe channel. When "SB Audigy4 main" is testing, there is a sound just from FRONT. The same is when i try to listen audio in players (audacious, vlc), that use /dev/dsp for output. If i select any other item of the SPKMODE (FRONT, SURR, FRONT+SURR), osstest and players output the sound through selected channels (just front, just rear, front and rear together), nevertheless what channel is testing.
My current settings:
ossmix -a
Code: Select all
Selected mixer 0/SB Audigy4 (STAC9750)
Known controls are:
line [<leftvol>:<rightvol>] (currently 0:0)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 0:0)
cd.rec ON|OFF (currently OFF)
igain [<leftvol>:<rightvol>] (currently 0:0)
aux1 [<leftvol>:<rightvol>] (currently 0:0)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 0:0)
phone.rec ON|OFF (currently OFF)
autorese ON|OFF (currently OFF)
spkmode <FRONT|SURR|FRONT+SURR|DISCRETE> (currently DISCRETE)
pcm.main <monovol> (currently 100)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-src <Fast|High|OFF> (currently High)
vmix0-outvol <monovol> (currently 1.4 dB)
vmix0-invol <monovol> (currently 0.0 dB)
vmix0.pcm1 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
pcm2 [<leftvol>:<rightvol>] (currently 100:100)
vol [<leftvol>:<rightvol>] (currently 100:100)
equalizer.prescale <monovol> (currently 100)
equalizer.lo <monovol> (currently 128)
equalizer.mid <monovol> (currently 128)
equalizer.hi <monovol> (currently 128)
equalizer.xhi <monovol> (currently 128)
equalizer.bypass ON|OFF (currently ON)
front.spdif <monovol> (currently 0)
front.digcd <monovol> (currently 0)
front.ac97 <monovol> (currently 0)
front.pcm <monovol> (currently 100)
front.aux <monovol> (currently 0)
front.mic <monovol> (currently 0)
front.vol [<leftvol>:<rightvol>] (currently 100:100)
surr.spdif <monovol> (currently 0)
surr.digcd <monovol> (currently 0)
surr.ac97 <monovol> (currently 0)
surr.pcm <monovol> (currently 100)
surr.aux <monovol> (currently 0)
surr.mic <monovol> (currently 0)
surr.vol [<leftvol>:<rightvol>] (currently 100:100)
record.spdif <monovol> (currently 0)
record.digcd <monovol> (currently 0)
record.ac97 <monovol> (currently 0)
record.pcm <monovol> (currently 0)
record.aux <monovol> (currently 0)
record.mic <monovol> (currently 0)
record.vol [<leftvol>:<rightvol>] (currently 0:0)

ossinfo -v3
Code: Select all
Version info: OSS 4.2 (b 2006/201205171707) (0x00040100) GPL
Platform: Linux/i686 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 (koscomp)

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


Device objects
0: osscore0 OSS core services
1: oss_sblive0 SB Audigy4 interrupts=89284 (89284)
2: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)
0: Audigy UART (MIDI port 1 of device object 1)
    Device file /dev/oss/oss_sblive0/mid0, Legacy device /dev/midi00
    Modes: IN/OUT , Available for use
    Caps:
    Minimum latency: Not indicated
    Device handle: PCI10211102-0000:01:01.0-md01


Mixer devices
0: SB Audigy4 (STAC9750) (Mixer 0 of device object 1)
    Device file /dev/oss/oss_sblive0/mix0, Legacy device /dev/mixer0
    Priority: 2
    Caps:
    Device handle: PCI10211102-0000:01:01.0-mx01
    Device priority: 2


Audio devices
SB Audigy4 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
    Legacy device /dev/dsp0
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 0/SB Audigy4 main
                     Available for use
      Engine      2: 1/SB Audigy4 main (vmix)
                     Available for use
      Engine      3: 2/SB Audigy4 main (vmix)
                     Available for use
      Engine      4: 3/SB Audigy4 main (vmix)
                     Available for use
      Engine      5: 4/SB Audigy4 main (vmix)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au01
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
    Legacy device /dev/dsp1
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 5/SB Audigy4 front out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au02
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
    Legacy device /dev/dsp2
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 6/SB Audigy4 side out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au03
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
    Legacy device /dev/dsp3
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 7/SB Audigy4 center/lfe out
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au04
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 raw S/PDIF (output only)  /dev/oss/oss_sblive0/pcm4  (device index 4)
    Legacy device /dev/dsp4
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 8/SB Audigy4 raw S/PDIF (output only)
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000418):
      AFMT_U8      - 8 bit unsigned
      AFMT_S16_LE   - 16 bit signed little endian
      AFMT_AC3      - AC3 (Dolby Digital) encoded audio
    Device handle: PCI10211102-0000:01:01.0-au05
    Related mixer dev: 0
    Sample rate source: 0
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 1 - 2
    Native sample rates (min - max): 8000 - 48000 (8000,11025,16000,22050,24000,32000,44100,48000)
    HW Type: Not indicated.
    Minimum latency: Not indicated

SB Audigy4 5.1 output device      /dev/oss/oss_sblive0/pcm5  (device index 5)
    Legacy device /dev/dsp5
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: 9/SB Audigy4 5.1 output device
                     Available for use
    Input formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Output formats (0x00000010):
      AFMT_S16_LE   - 16 bit signed little endian
    Device handle: PCI10211102-0000:01:01.0-au06
    Related mixer dev: -1
    Sample rate source: 5
    Preferred channel configuration: MULTICH
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 8000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated


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

osstest
Code: Select all
Sound subsystem and version: OSS 4.2 (b 2006/201205171707) (0x00040100)
Platform: Linux/i686 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012

*** Scanning sound adapter #-1 ***
/dev/oss/oss_sblive0/pcm0 (audio engine 0): SB Audigy4 main
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47996.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm1 (audio engine 5): SB Audigy4 front out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47996.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm2 (audio engine 6): SB Audigy4 side out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47996.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm3 (audio engine 7): SB Audigy4 center/lfe out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47996.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm4 (audio engine 8): SB Audigy4 raw S/PDIF (output only)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47996.00 Hz (-0.01%)>
/dev/oss/oss_sblive0/pcm5 (audio engine 9): SB Audigy4 5.1 output device
- Skipping multi channel device

*** All tests completed OK ***
kosproger
Member
 
Posts: 11
Joined: Thu Aug 09, 2012 8:40 pm
Location: Vitebsk, Belarus


Return to BSD

Who is online

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

cron