default output device

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

default output device

Postby bnsmb » Thu Feb 09, 2006 7:12 am

HI,

can I configure a default output device for OSS in Solaris?

Background:

I'm using OSS on a Acer Ferrari 4005 and the sound only works if I select "Digital output" in the programs using sound.

To avoid configuring this for every program using sound it would be nice to configure OSS to use digital ouptut by default so that I do not need to configure this in every program.

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby dev » Thu Feb 09, 2006 6:45 pm

bnsmb wrote:HI,

can I configure a default output device for OSS in Solaris?

Background:

I'm using OSS on a Acer Ferrari 4005 and the sound only works if I select "Digital output" in the programs using sound.

To avoid configuring this for every program using sound it would be nice to configure OSS to use digital ouptut by default so that I do not need to configure this in every program.

regards

Bernd


You can run ossctl and set the default output device there.

However what do you mean Digital Output - there is no SPDIF hardware on the Acer ferrari. If you need to make changes to OSS, you can run
ossctl and change the output/input device selection.

If you want to change mixers, run ossxmix and make changes there and finally run savemixer


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

Re: default output device

Postby bnsmb » Thu Feb 09, 2006 9:51 pm

Hi,

>>You can run ossctl and set the default output device there.

Sorry, but without documentation I really don't know how

And because I'm still reinstalling the laptop more or less every week, I prefer an unattended method to configure OSS.

>>However what do you mean Digital Output - there is no SPDIF hardware >>on the Acer ferrari.

From your email regarding xmms and OSS:

"The problem with most laptops is that the CDROM isn't connected to the soundport via an analog cable. This means you will need to play Audio CDs digitally. XMMS has a mode called DAE (or digital audio extraction) which is basically how WIndows plays CDs. You need to run XMMS, configure the CDPlugin to use DAE mode and then open the cd rom and play CDs that way. You can also use Xine to play CDs digitally.
"

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby dev » Thu Feb 09, 2006 10:00 pm

bnsmb wrote:Hi,

>>You can run ossctl and set the default output device there.

Sorry, but without documentation I really don't know how

And because I'm still reinstalling the laptop more or less every week, I prefer an unattended method to configure OSS.

>>However what do you mean Digital Output - there is no SPDIF hardware >>on the Acer ferrari.

From your email regarding xmms and OSS:

"The problem with most laptops is that the CDROM isn't connected to the soundport via an analog cable. This means you will need to play Audio CDs digitally. XMMS has a mode called DAE (or digital audio extraction) which is basically how WIndows plays CDs. You need to run XMMS, configure the CDPlugin to use DAE mode and then open the cd rom and play CDs that way. You can also use Xine to play CDs digitally.
"

regards

Bernd

If you are using the OSS v4.0 beta version, you can type man ossctl to get documentation.


If you are trying to get CD Audio played see:

http://groups.yahoo.com/group/solarisx86/message/33281


Regards
Dev Mazumdar
dev
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Re: default output device

Postby bnsmb » Fri Feb 10, 2006 4:01 pm


If you are using the OSS v4.0 beta version, you can type man ossctl to get documentation.


Done, but sound still does not work . I can get some "scrambled" sound - but nothing more. Will try again when svn_31 is out.


If you are trying to get CD Audio played see:


CD audio works using XMMS.

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby dev » Fri Feb 10, 2006 5:09 pm

bnsmb wrote:

If you are using the OSS v4.0 beta version, you can type man ossctl to get documentation.


Done, but sound still does not work . I can get some "scrambled" sound - but nothing more. Will try again when svn_31 is out.


If you are trying to get CD Audio played see:


CD audio works using XMMS.

regards

Bernd



What do you mean scrambled sound?. If CD audio works then it means audio should work normally. What app are you using?.

Does osstest play audio?



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

Re: default output device

Postby bnsmb » Fri Feb 10, 2006 5:22 pm

What do you mean scrambled sound?. If CD audio works then it means audio should work normally. What app are you using?.

Does osstest play audio?


It makes noise - something like "tak-tak-tak" . I would not call it sound ..

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby dev » Fri Feb 10, 2006 6:18 pm

bnsmb wrote:
What do you mean scrambled sound?. If CD audio works then it means audio should work normally. What app are you using?.

Does osstest play audio?


It makes noise - something like "tak-tak-tak" . I would not call it sound ..

regards

Bernd



Run ossdetect and then run cat /dev/sndstat and let me see what's configured. We have announced Build 150 - so there are some additional fixes there. You might try upgrading. (unisntall the current version - pkgrm oss, reboot, pkgadd -d oss-v4.0-150-i386.pkg)


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

Re: default output device

Postby bnsmb » Fri Feb 10, 2006 6:56 pm

Run ossdetect and then run cat /dev/sndstat and let me see what's configured.


Done, output attached below

We have announced Build 150 - so there are some additional fixes there. You might try upgrading. (unisntall the current version - pkgrm oss, reboot, pkgadd -d oss-v4.0-150-i386.pkg)


Already installed

I still think this is a ogle configuration issue because other programs can use the sound adapter without problems (mplayer, xmms)

regards

Bernd

PS: I will be offline until Monady evening (German time) in a few minutes

Code: Select all
Script started on Fri Feb 10 19:48:38 2006
# ossinfo
Version info: OSS/Solaris 4.0-BETA (build 150/200602070227 (0x00040000)

Number of audio devices:   14
Number of MIDI devices:      2
Number of mixer devices:   2

MIDI devices (/dev/midi*)
00: MIDI loopback (MIDI port 1 of card 1)
01: MIDI loopback server side (MIDI port 2 of card 1)

Mixer devices (/dev/mixer*)
0: AC97 Mixer (ALC250) (Mixer 0 of card 5)
1: Virtual Mixer (Mixer 0 of card 3)

Audio devices (/dev/dsp*)
0: ATI IXP400 (audio port 1 of card 5)
1: ATI IXP400 (shadow) (audio port 2 of card 5)
2: OSS Virtual Mixer v3.0 Rec/Play CH #0 (audio port 1 of card 3)
3: OSS Virtual Mixer v3.0 Rec/Play CH #1 (audio port 2 of card 3)
4: OSS Virtual Mixer v3.0 Rec/Play CH #2 (audio port 3 of card 3)
5: OSS Virtual Mixer v3.0 Rec/Play CH #3 (audio port 4 of card 3)
6: OSS Virtual Mixer v3.0 Rec/Play CH #4 (audio port 5 of card 3)
7: OSS Virtual Mixer v3.0 Rec/Play CH #5 (audio port 6 of card 3)
8: OSS Virtual Mixer v3.0 Rec/Play CH #6 (audio port 7 of card 3)
9: OSS Virtual Mixer v3.0 Rec/Play CH #7 (audio port 8 of card 3)
10: Virtual Mixer Loopback Record CH #0 (audio port 9 of card 3)
11: Virtual Mixer Loopback Record CH #1 (audio port 10 of card 3)
12: Virtual Mixer Loopback Record CH #2 (audio port 11 of card 3)
13: Virtual Mixer Loopback Record CH #3 (audio port 12 of card 3)
#
#
# ossdetect
rem_drv atiaudio
Device busy
Cannot unload module: atiaudio
Will be unloaded upon reboot.
rem_drv midiloop
rem_drv ossusb
rem_drv softoss
Device busy
Cannot unload module: softoss
Will be unloaded upon reboot.
rem_drv ossaudios
Device busy
Cannot unload module: ossaudios
Will be unloaded upon reboot.
Device busy
Cannot unload module: osscore
Will be unloaded upon reboot.
add_drv -m '* 0666 root sys' osscore
add_drv -m '* 0666 root sys' -i '"pci1002,4370"' atiaudio
add_drv -m '* 0666 root sys' -i '"MIDILOOP"' midiloop
add_drv -m '* 0666 root sys' -i '"usbif,class1" "usb763,1001" "usb763,1002" "usb763,1014" "usb763,1015" "usbif763,classff" "usb499,1009" "usb499,101e"' ossusb
add_drv -m '* 0666 root sys' softoss
add_drv -m '* 0666 root sys' ossaudios
Device configuration changed - use ossctl to update device lists

# cat /dev/sndstat
OSS/Solaris 4.0-BETA (build 150/200602070227) (C) 4Front Technologies 1996-2005

**** UNREGISTERED VERSION ****

This OSS version will expire after:  Aug 2006
Build: 200602070227

Card config:
0: oss0 OSS core services
1: midiloop0 OSS MIDI loopback driver
2: ossusb0 USB audio/MIDI device
3: softoss0 OSS Virtual Mixer v3.0
4: ossaudios0 SADA compatibility layer
5: atiaudio0 ATI IXP400
6: midiloop0 OSS MIDI loopback driver
7: ossusb0 USB audio/MIDI device

Audio devices:
0: ATI IXP400 (DUPLEX,GRC3)
1: ATI IXP400 (shadow) (DUPLEX)
   Opened by: VMIX/0 @ 48000/48000 Hz Fragment: 2048/192000 (10.6 msec)
2: OSS Virtual Mixer v3.0 Rec/Play CH #0 (GRC3)
3: OSS Virtual Mixer v3.0 Rec/Play CH #1 (GRC3)
4: OSS Virtual Mixer v3.0 Rec/Play CH #2 (GRC3)
5: OSS Virtual Mixer v3.0 Rec/Play CH #3 (GRC3)
6: OSS Virtual Mixer v3.0 Rec/Play CH #4 (GRC3)
7: OSS Virtual Mixer v3.0 Rec/Play CH #5 (GRC3)
8: OSS Virtual Mixer v3.0 Rec/Play CH #6 (GRC3)
9: OSS Virtual Mixer v3.0 Rec/Play CH #7 (GRC3)
   Opened by: SADA/0 @ 48000/48000 Hz Fragment: Not started
10: Virtual Mixer Loopback Record CH #0 (GRC3)
11: Virtual Mixer Loopback Record CH #1 (GRC3)
12: Virtual Mixer Loopback Record CH #2 (GRC3)
13: Virtual Mixer Loopback Record CH #3 (GRC3)

MIDI devices:
  *** MIDI support not available in this OSS version ***

Mixers:
0: AC97 Mixer (ALC250)
1: Virtual Mixer

History:
dsp2: pid 1514 cmd 'osstest' OUT
# exit

script done on Fri Feb 10 19:49:35 2006
[/code]
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby bnsmb » Mon Feb 13, 2006 6:34 pm

Run ossdetect and then run cat /dev/sndstat and let me see what's configured. We have announced Build 150 - so there are some additional fixes there. You might try upgrading. (unisntall the current version - pkgrm oss, reboot, pkgadd -d oss-v4.0-150-i386.pkg)


Does the output help to find the cause of the problem?

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby dev » Tue Feb 14, 2006 5:18 am

bnsmb wrote:
Run ossdetect and then run cat /dev/sndstat and let me see what's configured. We have announced Build 150 - so there are some additional fixes there. You might try upgrading. (unisntall the current version - pkgrm oss, reboot, pkgadd -d oss-v4.0-150-i386.pkg)


Does the output help to find the cause of the problem?

regards

Bernd



Nothing is wrong with the setup. OSS is correctly installed. What exactly is your problem?

I don't understand it. You only have one device in the system so just leave the current setting intact.

If osstest is producing audio, it means OSS is working correctlly.



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

Re: default output device

Postby bnsmb » Tue Feb 14, 2006 5:51 am

Nothing is wrong with the setup. OSS is correctly installed. What exactly is your problem?


I do not get sound with the DVD player ogle

I get sounds with xmms, for GNOME desktop events, mplayer , etc. but not with ogle. The OSS test program works also.

regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am

Re: default output device

Postby bnsmb » Tue Feb 21, 2006 7:47 pm

Update 07.03.2006 /bs:

The beta version 152 works on the Acer Ferrari 4005 ; sound is okay in Ogle and xmms and no crashes anymore.

Bernd

#
Update:

It works - but unfortunatley Solaris crashes randomly if the beta driver is loaded; details are here http://www.opensolaris.org/jive/thread. ... 152&#25152


just for the records:

It's working now - I reinstalled Solaris snv_33 from scratch, reinstalled the OSS beta driver and it works.

But before I did this I got another crash while playing DVD in ogle; this time Solaris created a crash dump that is readable by act.


regards

Bernd
bnsmb
 
Posts: 12
Joined: Thu Feb 09, 2006 7:08 am


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest