MFH: r545611

gecko: add native OSS support, replacing ALSA as fallback

OSS is always built but during runtime only selected by default if
neither pulseaudio, jackit or sndio are installed. In particular,
Gnome and KDE users would still be offered PulseAudio by default due
to integration with multi-app volume widgets, current song bars,
screensharing with audio, etc. that prefer to talk over DBus.
Those can opt out via media.cubeb.backend=oss in about:config.

Submitted by:	Ka Ho Ng <khng300@gmail.com> (based on)
Approved by:	ports-secteam blanket
This commit is contained in:
Jan Beich 2020-08-21 16:39:03 +00:00
parent 1fe9f1a6da
commit d899c734c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=545614
9 changed files with 3585 additions and 8 deletions

View File

@ -234,8 +234,6 @@ MOZ_OPTIONS+= --disable-libproxy
.if ${PORT_OPTIONS:MALSA}
BUILD_DEPENDS+= ${LOCALBASE}/include/alsa/asoundlib.h:audio/alsa-lib
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
RUN_DEPENDS+= alsa-lib>=1.1.1_1:audio/alsa-lib
MOZ_OPTIONS+= --enable-alsa
.endif

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
PORTNAME= firefox
DISTVERSION= 68.12.0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \

File diff suppressed because it is too large Load Diff

View File

@ -20,10 +20,10 @@ Some features found on Windows, macOS and Linux are not implemented:
To select non-default audio backend open `about:config` page and
create `media.cubeb.backend` preference. Supported values are: `alsa`,
`jack`, `pulse`, `pulse-rust`, `sndio`. Currently used backend can be
`jack`, `oss`, `pulse`, `pulse-rust`, `sndio`. Currently used backend can be
inspected on `about:support` page.
Microphone selection only works in `pulse` and `pulse-rust` backends.
Microphone selection only works in `oss`, `pulse`, `pulse-rust` backends.
Other backends are limited to `default` which is usually `/dev/dsp`,
so use virtual_oss to reroute microphones from non-default devices.

View File

@ -3,7 +3,7 @@
PORTNAME= firefox
DISTVERSION= 80.0
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \

View File

@ -4,11 +4,12 @@ OPTIONS_DEFINE+= CANBERRA DBUS DEBUG FFMPEG \
LIBPROXY OPTIMIZED_CFLAGS PROFILE TEST
OPTIONS_DEFAULT+= DBUS FFMPEG OPTIMIZED_CFLAGS PROFILE \
${OPTIONS_GROUP_AUDIO}
${OPTIONS_GROUP_AUDIO:NALSA}
OPTIONS_GROUP+= AUDIO
OPTIONS_GROUP_AUDIO= ALSA JACK PULSEAUDIO SNDIO
AUDIO_DESC?= Extra cubeb audio backends (OSS is always available)
CANBERRA_DESC?= Sound theme alerts
LIBPROXY_DESC?= Proxy support via libproxy
LIGHTNING_DESC?= Calendar extension

File diff suppressed because it is too large Load Diff

View File

@ -20,10 +20,10 @@ Some features found on Windows, macOS and Linux are not implemented:
To select non-default audio backend open `about:config` page and
create `media.cubeb.backend` preference. Supported values are: `alsa`,
`jack`, `pulse`, `pulse-rust`, `sndio`. Currently used backend can be
`jack`, `oss`, `pulse`, `pulse-rust`, `sndio`. Currently used backend can be
inspected on `about:support` page.
Microphone selection only works in `pulse` and `pulse-rust` backends.
Microphone selection only works in `oss`, `pulse`, `pulse-rust` backends.
Other backends are limited to `default` which is usually `/dev/dsp`,
so use virtual_oss to reroute microphones from non-default devices.