[oi-dev] pulseaudio issues

Alexander Pyhalov alp at sfedu.ru
Wed Apr 3 07:11:47 UTC 2019


It seems reasonable. The issue I see is that our mod_oss is almost a complete fork of pulseaudio mod_oss. Solaris somehow manages to use module_oss without patches, and I honestly don't understand how this works.

С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ


________________________________________
От: Gary Mills <gary_mills at fastmail.fm>
Отправлено: 2 апреля 2019 г. 23:05:53
Кому: OpenIndiana Developer mailing list
Копия: Alexander Pyhalov; Udo Grabowski (IMK)
Тема: Re: [oi-dev] pulseaudio issues

On Tue, Apr 02, 2019 at 04:19:29PM +0200, Udo Grabowski (IMK) wrote:
>
> On OI_151a versions this has always been OSS and it worked - so
> if pulse audio only delivers a "Linux version" of OSS this should
> be fixed. Please don't fall back to ancient mod_solaris, that was
> history already ten years ago...

So, the consensus is that I chose the wrong horse to ride.  The
problem begins with the OI Makefile, which contains:

    CONFIGURE_OPTIONS += --enable-oss-output
    CONFIGURE_OPTIONS += --enable-solaris

It indirectly enables two output modules.  These options only set two
preprocessor variables: HAVE_OSS_OUTPUT and HAVE_SOLARIS,
respectively.  It's module-detect.c that first uses these variables.
That module calls both detect_oss() and detect_solaris() to determine
the device names.  detect_oss() always fails because of an error
reading the status device.  detect_solaris() succeeds by setting the
device name to the contents of AUDIODEV or to /dev/audio if it's
empty.  It loads module-solaris as the active output module.

I'm willing to fix module-detect.c so that it determines the device
name correctly on illumos/OI and that it loads module-oss instead.  I
can test module-oss on a system with one audio device, and on one that
has two devices.  The first change will have to be the OI Makefile, of
course.  No doubt there will be changes to module-oss as well.  Is
that what people want?  There's no simple solution.


--
-Gary Mills-            -refurb-                -Winnipeg, Manitoba, Canada-




More information about the oi-dev mailing list