Going from 1009 to 1011 kind of broke vmix

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

Going from 1009 to 1011 kind of broke vmix

Postby Tomservo » Thu Dec 27, 2007 1:12 pm

I'm saying kind of because it's really weird behaviour. Using two instances of MPlayer playing audio of some kind, things behave like this:

- Can't play two instances both on /dev/dsp (results in device busy)
- Can play two instances each using /dev/dsp(0) and /dev/dsp1, though both are symlinks to the same node (/dev/oss/sblive0/pcm0)
- Can't play two instances both using /dev/oss/sblive0/pcm0 (device busy, see where it's getting weird)

This came with version 1011. Did ossdevlinks -r already, didn't change anything.

In ossxmix, I had the vmix devices listed in the past, this time not.

Also, ossinfo presents me with this silly gem, which I suppose is probably the main problem:

Mixer devices
SB Audigy2 (STAC9721) (Mixer -1 of device object 1)


Thanks for any help.
Solaris 4 lyfe
Tomservo
Member
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby seawright » Thu Dec 27, 2007 1:48 pm

I don't have any experience of Solaris but from the symptoms you describe I would say that vmix though loaded is not being used.

Delete the comment in:
/usr/lib/oss/conf/vmix.conf
and set "vmix1_masterdev=#"
where # is the index number for /dev/oss/sblive0/pcm0 obtained from ossinfo.
After that does reloading the drivers solve the problem?
regards
Clive
seawright
Member
 
Posts: 88
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Postby Tomservo » Thu Dec 27, 2007 7:51 pm

Nope, didn't change anything. I think the case might even be that the mixer ID is set to 0xFFFFFFFF (aka -1 on signed int) for some reason.

--edit: Reverted to build 1006. Works fine for now. 1009 crashes my machine on boot half the time.
Solaris 4 lyfe
Tomservo
Member
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby seawright » Thu Dec 27, 2007 8:10 pm

Ok,
Does your soundcard have hardware mixing?
If so remove vmix from,
/usr/lib/oss/etc/installed_drivers
and replace /dev/dsp with a symlink to,
/dev/oss/sblive0/pcm4
Reload driver and check if two instances of mplayer will play to /dev/dsp without returning device busy.
regards
Clive
seawright
Member
 
Posts: 88
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Postby Tomservo » Thu Dec 27, 2007 8:39 pm

Yeah, EMU10Kx cards do have hardware mixing. Gonna try that.

--edit: That did it (using pcm0 though, which is main). Strangely enough, the vmix channels suddenly showed up in ossxmix.
--edit2: Durr, never mind, still using 1006 :|
--edit3: Using the symlink with 1011, it appears to work, gonna reboot now.
--edit4: Reboot broke it again. Ah well, I'll wait for the next build. 1006 seems to work.
Solaris 4 lyfe
Tomservo
Member
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

this problem exists with hdaudio too.

Postby rmf » Thu Jan 10, 2008 3:51 pm

Exact same problem with hdaudio:

pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x27d8
Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller

Also, does anyone else have the problem that audio samples played with audioplay leaves a pop at the end, while ossplay does not?

-r
rmf
New Member
 
Posts: 3
Joined: Fri Dec 14, 2007 11:19 pm

Postby Tomservo » Thu Jan 10, 2008 4:00 pm

Since we're at it, I have some severe timing problems, too. Using vmix, anything relying on A-V sync works fine and smooth. Making OSS go the hardware mixing route, i.e. disabling vmix, introduces huge jitter in every video application, unless you can make it assume/guess sync, like mplayer's autosync option.
Solaris 4 lyfe
Tomservo
Member
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

Postby seawright » Thu Jan 10, 2008 4:01 pm

You mean it works with build 1006 but not build 1011?
There is a build 1012 now. Have you tried that?
regards
Clive
seawright
Member
 
Posts: 88
Joined: Sat Jan 06, 2007 9:10 pm
Location: Hampshire UK

Postby Tomservo » Fri Jan 11, 2008 11:37 am

With 1012 it works again.
Solaris 4 lyfe
Tomservo
Member
 
Posts: 40
Joined: Sat May 05, 2007 8:15 pm

v1012

Postby rmf » Mon Jan 14, 2008 4:57 am

still broken for me. Seems like either oss or devaudio works, pending on who accessed it first. Odd thing is, when oss fails, then all oss opens fails with a device busy. When devaudio fails, the apps play, but no sound comes out (though the jds audio icons says no audio).
rmf
New Member
 
Posts: 3
Joined: Fri Dec 14, 2007 11:19 pm

Re: v1012

Postby dev » Mon Jan 14, 2008 5:03 am

rmf wrote:still broken for me. Seems like either oss or devaudio works, pending on who accessed it first. Odd thing is, when oss fails, then all oss opens fails with a device busy. When devaudio fails, the apps play, but no sound comes out (though the jds audio icons says no audio).


You need to run drvconfig after each reboot and then the drivers attach correctly. We are trying to figure out why OSS will not attach after
a reboot


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


Return to Solaris

Who is online

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