[brandz-discuss] Sound in lx brandz

Edward Pilatowicz edward.pilatowicz at sun.com
Mon May 12 12:30:15 PDT 2008


hey mika,
dan and bob covered the basics, i'll supply some more details.

so the way audio works is that we translate OSS (one of the audio
frameworks on linux) operations into SADA (the current default audio
framework on solaris) operations.

to enable this audio emulation you need to add the zonecfg audio attribute
mentioned here:
	http://www.opensolaris.org/os/community/brandz/install/

currently, the zones framework will not let you add devices from the
global zone into an lx branded zone.  this is because ioctls for linux
devices are usually different from ioctls for solaris devices, and so
to access any device you'd need translators for those ioctls.  given
that the brandz project didn't have infinite resources we couldn't
write translators for all devices.  ;)

<disclaimer>i haven't actually used OSS on solaris so i'm starting
to speculate below.</disclamier>

given that you installed the OSS framework in opensolaris, i'm guessing
that your audio card isn't supported directly by opensolaris.

if you're audio card is supported directly by opensolaris, then there's
no need to install the OSS framework and audio from both the global zone
and any property configured lx zone should just work.

if you do actually need OSS to make audio work from the global zone, then it
gets more interesting.  i don't know if OSS emulates SADA.  if it does
then theoretically everything should just work (of course you'll be
translating from OSS to SADA and back to OSS).  but if OSS doesn't
emulate SADA, or if the above translations don't work for you, then
you could try this hack:

- remove the audio property from the zonecfg file.
- remove the following lines from /usr/lib/brand/lx/platform.xml
        <!-- Audio devices to create under /dev -->
        <device match="brand/lx/dsp" name="dsp" />
        <device match="brand/lx/mixer" name="mixer" />
- add the following lines to /usr/lib/brand/lx/platform.xml
        <device match="dsp" />
        <device match="mixer" />

the steps above will disable the emulated oss audio in all lx branded
zones and will allow all lx branded zones direct access to the real OSS
devices.  there's no guarantee that this will actually work, but feel
free to give it a shot.

ed


On Sun, May 11, 2008 at 03:37:18PM -0700, Mika Borner wrote:
> I was playing with Opensolaris 2008.05 and CentOS 5.1 in a brandz.
>
> Got this working quite smoothly.
>
> My question is, how does sound in brandz really work? I've installed OSS in OpenSolaris and it seems to work so far. I've also enabled sound in zonecfg.
>
> Do I have to install the OSS drivers also in the Linux Zone?
>
> I'm stuck with the Zattoo application (LiveTV). The videostream works nicely over an ssh tunnel even without the recommended OpenGL support (is OpenGL supported in BrandZ?).
>
> Here's a screenshot: http://my2ndhead.blogspot.com/2008/05/opensolaris-200805-brandz-and-zattoo.html
>
>
> This message posted from opensolaris.org
> _______________________________________________
> brandz-discuss mailing list
> brandz-discuss at opensolaris.org


More information about the brandz-discuss mailing list