mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
47990f37d7
In addition to updating the contrib sources the driver now uses the new Component API and will report the internal mixer state. Reporting of the mixer state is enabled by adding the 'report_mixer' attribute to the drivers configuration and setting its value to 'yes'. The following snippets illustrates the format of the report: !<mixer_state> ! <mixer field="inputs.beep" value="108"/> ! <mixer field="outputs.hp_sense" value="plugged"/> ! <mixer field="outputs.master" value="128,128"/> ! <mixer field="outputs.mic_sense" value="unplugged"/> ! <mixer field="outputs.spkr_muters" value="hp,mic"/> !</mixer_state> The mixer state may expose other mixer fields as well, depending on the used sound card. The naming scheme of the attributes intentionally matches the naming scheme of OpenBSD's mixerctl(1) program. Each 'mixer' node can be used to configure the audio driver by using it in its configuration, e.g.: !<config report_mixer="yes"> ! <mixer field="outputs.master" value="255,255"/> !</config> This configuration will set the output volume to the highest possible value. Although it is now also possible to update the configuration at run-time it should not be done while the driver is currently playing or recording because it may provoke the generation of artefacts. Fixes #1973.
27 lines
771 B
Makefile
27 lines
771 B
Makefile
LICENSE := BSD
|
|
VERSION := 1
|
|
DOWNLOADS := audio.archive
|
|
|
|
#
|
|
# Audio drivers from OpenBSD 5.9
|
|
#
|
|
SRC_DIR_AUDIO := src/lib/audio
|
|
VERSION_AUDIO := 5.9
|
|
URL(audio) := http://mirror.switch.ch/ftp/pub/OpenBSD/$(VERSION_AUDIO)/sys.tar.gz
|
|
SHA(audio) := 65080ae5524ffed903dac7ecb49c1c4955afbc7f
|
|
DIR(audio) := $(SRC_DIR_AUDIO)
|
|
TAR_OPT(audio) := --strip-components=2 --files-from $(REP_DIR)/audio.list
|
|
HASH_INPUT += $(REP_DIR)/audio.list
|
|
|
|
#
|
|
# Patches
|
|
#
|
|
PATCHES := $(addprefix patches/,$(notdir $(wildcard $(REP_DIR)/patches/*.patch)))
|
|
|
|
AUDIO_OPT := -p1 -d$(SRC_DIR_AUDIO)
|
|
PATCH_OPT(patches/oppress_warning.patch) := $(AUDIO_OPT)
|
|
PATCH_OPT(patches/azalia_c.patch) := $(AUDIO_OPT)
|
|
PATCH_OPT(patches/notify.patch) := $(AUDIO_OPT)
|
|
|
|
# vi: set ft=make :
|