Surround sound with hdaudio

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

Surround sound with hdaudio

Postby richarda » Thu Mar 29, 2007 8:35 am

Hi,

I have installed:
ossinfo:
Version info: OSS 4.0rc8 (build 190/200701252322) (0x00040001)

Number of audio devices: 9
Number of audio engines: 13
Number of MIDI devices: 0
Number of mixer devices: 1


Device objects
0: hdaudio0 nVidia HD Audio
1: ossaudios0 SADA compatibility layer
2: ossusb0 USB audio/MIDI device
3: vmix0 OSS transparent virtual support
4: oss0 OSS core services

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: nVidia HD Audio Unknown (Mixer 0 of device object 0)

Audio devices
/dev/oss/hdaudio0/pcm0: nVidia HD Audio pcm1 output (device index 0)
/dev/oss/hdaudio0/pcm1: nVidia HD Audio pcm2 output (device index 1)
/dev/oss/hdaudio0/pcm2: nVidia HD Audio pcm3 output (device index 2)
/dev/oss/hdaudio0/pcm3: nVidia HD Audio pcm4 output (device index 3)
/dev/oss/hdaudio0/spdout0: nVidia HD Audio spdifout output (device index 4)
/dev/oss/hdaudio0/pcmin0: nVidia HD Audio rec1 input (device index 5)
/dev/oss/hdaudio0/pcmin1: nVidia HD Audio rec2 input (device index 6)
/dev/oss/hdaudio0/pcmin2: nVidia HD Audio rec3 input (device index 7)
/dev/oss/hdaudio0/spdin0: nVidia HD Audio spdifin input (device index 8)

The nvdia is 7.1 i believe, and I have 5.1 connected..

osstest works...

/dev/oss/hdaudio0/pcm0 plays on left=Front left, right=Front Right speakers
pcm1 plays nothing
pcm2 plays on left=center speaker, right=sub woofer
pcm3 plays on left=rear left, right=rear right
spdout0 plays nothing

When I play any music I only get music from front left+right speakers.
How can i configure oss to play with my center and subwoofer too.

I play using amarok, with engine=oss and speakers=5.1
Also with xmms the only options i get is to select one of pcm0,pcm1,pcm2...
but I can't seem to mix to allow two outputs to be used.

ossmix shows:
ossmix:
Selected mixer 0/
Known controls are:
connector.black1.function <pcm1> (currently pcm1)
connector.black2.function <pcm1> (currently pcm1)
connector.pink.function <output> (currently output)
connector.pink <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.green.function <output> (currently output)
connector.green <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.black3.function <output> (currently output)
connector.black3 <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.orange.function <output> (currently output)
connector.orange <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.blue.function <output> (currently output)
connector.blue <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.grey.function <output> (currently output)
connector.grey <both>[:<rightvol>] (currently 76.4:76.4 dB)
record.rec1 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec1.src <black3> (currently black3)
record.rec1 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec1.mute ON|OFF (currently OFF)
record.rec2 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec2.src <black3> (currently black3)
record.rec2 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec2.mute ON|OFF (currently OFF)
record.rec3 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec3.src <black3> (currently black3)
record.rec3 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec3.mute ON|OFF (currently OFF)
misc.vendor1 <both>[:<rightvol>] (currently 76.4:76.4 dB)
misc.beep.out <28> (currently -28.-8dB)
vmix0-vol <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 144:144)
vmix0-out.dsp9 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 144:144)
vmix0-out.dsp10 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.dsp11 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.dsp12 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix-in <leftVU>:<rightVU>] (currently 0:0)
richarda
New Member
 
Posts: 2
Joined: Wed Mar 28, 2007 9:11 am

Re: Surround sound with hdaudio

Postby dev » Thu Mar 29, 2007 6:09 pm

richarda wrote:Hi,

I have installed:
ossinfo:
Version info: OSS 4.0rc8 (build 190/200701252322) (0x00040001)


When I play any music I only get music from front left+right speakers.
How can i configure oss to play with my center and subwoofer too.

I play using amarok, with engine=oss and speakers=5.1
Also with xmms the only options i get is to select one of pcm0,pcm1,pcm2...
but I can't seem to mix to allow two outputs to be used.



When you play music it usually is stereo data so you will only hear it on front speakers. There is NO information in stereo music data to play on rear and center/subwoofer. The ONLY thing you can do is copy the audio from the front to the rear/center/sub speakers - that you can do via ossxmix and set the black/orange jacks to play the front outputs.

When you start playing 5.1 surround audio like DVD audio or play a 4 channel wave file then you will hear audio on the surround speakers.


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

Postby richarda » Fri Mar 30, 2007 9:03 am

That makes sense...

but how do I link front to center/sub speakers?

$ ossmix
Selected mixer 0/
Known controls are:
connector.black1.function <pcm1> (currently pcm1)
connector.black2.function <pcm1> (currently pcm1)
connector.pink.function <output> (currently output)
connector.pink <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.green.function <output> (currently output)
connector.green <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.black3.function <output> (currently output)
connector.black3 <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.orange.function <output> (currently output)
connector.orange <both>[:<rightvol>] (currently 95.1:95.1 dB)
connector.blue.function <output> (currently output)
connector.blue <both>[:<rightvol>] (currently 76.4:76.4 dB)
connector.grey.function <output> (currently output)
connector.grey <both>[:<rightvol>] (currently 76.4:76.4 dB)
record.rec1 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec1.src <black3> (currently black3)
record.rec1 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec1.mute ON|OFF (currently OFF)
record.rec2 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec2.src <black3> (currently black3)
record.rec2 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec2.mute ON|OFF (currently OFF)
record.rec3 <both>[:<rightvol>] (currently 39.9:39.9 dB)
record.rec3.src <black3> (currently black3)
record.rec3 <both>[:<rightvol>] (currently 17.9:17.9 dB)
record.rec3.mute ON|OFF (currently OFF)
misc.vendor1 <both>[:<rightvol>] (currently 76.4:76.4 dB)
misc.beep.out <28> (currently -28.-8dB)
vmix0-vol <monovol> (currently 24.1 dB)
vmix0-out <leftVU>:<rightVU>] (currently 134:133)
vmix0-out.dsp9 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 140:139)
vmix0-out.dsp10 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.dsp11 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.dsp12 <monovol> (currently 25.0 dB)
vmix0-out <leftVU>:<rightVU>] (currently 0:0)
vmix-in <leftVU>:<rightVU>] (currently 0:0)
richarda
New Member
 
Posts: 2
Joined: Wed Mar 28, 2007 9:11 am


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest