mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +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.
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
LIB_DIR = $(REP_DIR)/src/lib/audio
|
|
LIB_INC_DIR = $(LIB_DIR)/include
|
|
|
|
AUDIO_CONTRIB_DIR := $(call select_from_ports,dde_bsd)/src/lib/audio
|
|
|
|
#
|
|
# Set include paths up before adding the dde_bsd_audio_include library
|
|
# because it will use INC_DIR += and must be at the end
|
|
#
|
|
INC_DIR += $(LIB_DIR)
|
|
INC_DIR += $(LIB_INC_DIR)
|
|
INC_DIR += $(AUDIO_CONTRIB_DIR)
|
|
|
|
LIBS += dde_bsd_audio_include
|
|
|
|
SRC_CC += bus.cc dummies.cc driver.cc irq.cc mem.cc misc.cc scheduler.cc timer.cc
|
|
SRC_C += bsd_emul.c
|
|
SRC_S += setjmp.S
|
|
|
|
CC_OPT += -Wno-unused-but-set-variable
|
|
|
|
# disable builtins
|
|
CC_OPT += -fno-builtin-printf -fno-builtin-snprintf -fno-builtin-vsnprintf \
|
|
-fno-builtin-malloc -fno-builtin-free -fno-builtin-log -fno-builtin-log2
|
|
|
|
CC_OPT += -D_KERNEL
|
|
|
|
# disable false warning in audio.c:786
|
|
CC_C_OPT += -Wno-maybe-uninitialized
|
|
|
|
# enable when debugging
|
|
# CC_OPT += -DAUDIO_DEBUG
|
|
# CC_OPT += -DAZALIA_DEBUG
|
|
# CC_OPT += -DDIAGNOSTIC
|
|
|
|
# audio interface
|
|
SRC_C += dev/audio.c
|
|
|
|
# AC97 codec
|
|
SRC_C += dev/ic/ac97.c
|
|
|
|
# HDA driver
|
|
SRC_C += dev/pci/azalia.c dev/pci/azalia_codec.c
|
|
|
|
# ES1370
|
|
SRC_C += dev/pci/eap.c
|
|
|
|
SRC_C += dev/mulaw.c
|
|
|
|
vpath %.c $(AUDIO_CONTRIB_DIR)
|
|
vpath %.c $(LIB_DIR)
|
|
vpath %.cc $(LIB_DIR)
|
|
|
|
# vi: set ft=make :
|