You are not logged in.

#1 2009-06-15 12:02:19

PiotrAlexej
Member
Registered: 2009-01-23
Posts: 19

OSSv4.1, no surround sound

Hello!

I don't know how to get sound from all my channels... I searched the internet, but didn't found any solution that works...

Here is my ossinfo -v3:

Version info: OSS 4.1 (b 1052b/200905261644) (0x00040100) GPL
Platform: Linux/x86_64 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 06:42:43 UTC 2009 (Arch)

Number of audio devices:        7
Number of audio engines:        8
Number of mixer devices:        2


Device objects
 0: osscore0 OSS core services
 1: oss_sblive0 SB Audigy2 interrupts=40077 (40077)
 2: oss_via823x0 VIA VT8237                        
 3: oss_usb0 USB audio core services               


Mixer devices
 0: SB Audigy2 (STAC9721) (Mixer 0 of device object 1)
    Device file /dev/oss/oss_sblive0/mix0, Legacy device /dev/mixer0
    Priority: 2                                                     
    Caps:                                                           
    Device handle: PCI10021102-0000:00:0c.0-mx01                    
    Device priority: 2                                              

 1: VIA823x AC97 Mixer (ALC655) (Mixer 0 of device object 2)
    Device file /dev/oss/oss_via823x0/mix0, Legacy device /dev/mixer1
    Priority: 10                                                     
    Caps:                                                            
    Device handle: PCI810f1043-0000:00:11.5-mx01                     
    Device priority: 10                                              


Audio devices
SB Audigy2 main                   /dev/oss/oss_sblive0/pcm0  (device index 0)
    Legacy device /dev/dsp0                                                  
    Caps: DUPLEX TRIGGER MMAP                                                
    Modes: IN/OUT                                                            
      Engine      1: 0/SB Audigy2 main                                       
                     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: PCI10021102-0000:00:0c.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 Audigy2 front out              /dev/oss/oss_sblive0/pcm1  (device index 1)
    Legacy device /dev/dsp1                                                  
    Caps: TRIGGER MMAP                                                       
    Modes: OUTPUT                                                            
      Out engine  1: 1/SB Audigy2 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: PCI10021102-0000:00:0c.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 Audigy2 side out               /dev/oss/oss_sblive0/pcm2  (device index 2)
    Legacy device /dev/dsp2                                                  
    Caps: TRIGGER MMAP                                                       
    Modes: OUTPUT                                                            
      Out engine  1: 2/SB Audigy2 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: PCI10021102-0000:00:0c.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 Audigy2 center/lfe out         /dev/oss/oss_sblive0/pcm3  (device index 3)
    Legacy device /dev/dsp3                                                  
    Caps: TRIGGER MMAP                                                       
    Modes: OUTPUT                                                            
      Out engine  1: 3/SB Audigy2 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: PCI10021102-0000:00:0c.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 Audigy2 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: 4/SB Audigy2 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: PCI10021102-0000:00:0c.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 Audigy2 5.1 output device      /dev/oss/oss_sblive0/pcm5  (device index 5)
    Legacy device /dev/dsp5                                                  
    Caps: TRIGGER MMAP                                                       
    Modes: OUTPUT
      Out engine  1: 5/SB Audigy2 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: PCI10021102-0000:00:0c.0-au06
    Related mixer dev: -1
    Sample rate source: 1
    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

VIA VT8237                        /dev/oss/oss_via823x0/pcm0  (device index 6)
    Legacy device /dev/dsp6
    Caps: DUPLEX TRIGGER MMAP
    Modes: IN/OUT
      Engine      1: 6/VIA VT8237
                     Available for use
      Engine      2: 7/VIA VT8237
                     Available for use
    Input formats (0x00000418):
      AFMT_U8           - 8 bit unsigned
      AFMT_S16_LE       - 16 bit signed little endian
      AFMT_AC3          - AC3 (Dolby Digital) encoded audio
    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: PCI810f1043-0000:00:11.5-au01
    Related mixer dev: 1
    Sample rate source: 6
    Preferred channel configuration: Not indicated
    Supported number of channels (min - max): 2 - 6
    Native sample rates (min - max): 48000 - 48000
    HW Type: Not indicated.
    Minimum latency: Not indicated


  /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

And here is my ossmix:

Selected mixer 0/SB Audigy2 (STAC9721)         
Known controls are:
line [<leftvol>:<rightvol>] (currently 35:35)
line.rec ON|OFF (currently OFF)
mic <monovol> (currently 0)
mic.rec ON|OFF (currently OFF)
cd [<leftvol>:<rightvol>] (currently 100:100)
cd.rec ON|OFF (currently ON)
igain [<leftvol>:<rightvol>] (currently 100:100)
aux1 [<leftvol>:<rightvol>] (currently 100:100)
aux1.rec ON|OFF (currently OFF)
phone [<leftvol>:<rightvol>] (currently 100:100)
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)
pcm.front <monovol> (currently 100)
pcm.side <monovol> (currently 100)
pcm.c/l <monovol> (currently 100)
pcm.rear <monovol> (currently 25700)
pcm6 [<leftvol>:<rightvol>] (currently 100:100)
vol [<leftvol>:<rightvol>] (currently 100:100)
equalizer.prescale <monovol> (currently 100)
equalizer.lo <monovol> (currently 255)
equalizer.mid <monovol> (currently 196)
equalizer.hi <monovol> (currently 255)
equalizer.xhi <monovol> (currently 255)
equalizer.bypass ON|OFF (currently ON)
front.spdif <monovol> (currently 100)
front.digcd <monovol> (currently 100)
front.ac97 <monovol> (currently 0)
front.pcm <monovol> (currently 100)
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 0)
record.aux <monovol> (currently 100)
record.mic <monovol> (currently 0)
record.vol [<leftvol>:<rightvol>] (currently 100:100)

Thank you very much!

Last edited by PiotrAlexej (2009-06-15 12:12:53)

Offline

#2 2009-11-22 01:59:40

Anonymo
Member
Registered: 2005-04-07
Posts: 427
Website

Re: OSSv4.1, no surround sound

With 4.2, I tried this:
http://www.opensound.com/wiki/index.php … und_output
Changed from /dev/dsp to /dev/dsp_multich

This is the command I had to input, sudo ln -sf /dev/oss/<YOUR DEVICE>/<YOUR WORKING SOUND OUTPUT> /dev/dsp_multich
Mine was  sudo ln -sf /dev/oss/oss_hdaudio0/spdout0 /dev/dsp_multich
To figure out working sound output, need to run osstest.

Last edited by Anonymo (2009-11-22 02:05:34)

Offline

Board footer

Powered by FluxBB