[oi-dev] pulseaudio issues
Gary Mills
gary_mills at fastmail.fm
Tue Apr 2 20:05:53 UTC 2019
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