genode/repos/dde_bsd
Josef Söntgen 8a34d21577 dde_bsd: add recording support to audio driver
The driver is now able to record audio samples. In contrast
to playback it has to be enabled explicitly by setting the
configuration attribute 'recording' to 'yes'. Playback is by
default enabled but may be disabled by setting 'playback' to
'no'. Furthermore it is now possible to configure the mixer
from the configuration. For now, the interface used by vanilla
OpenBSD is just exported.

The following snippet shows how to enable and configure recording
on an Thinkpad X220 where the headset rather than the internal
mic is used as recording source:

! <start name="audio_out_drv">
!   <resource name="RAM" quantum="8M"/>
!   <provides>
!     <service name="Audio_out"/>
!     <service name="Audio_in"/>
!   </provides>
!   <config recording="yes">
!     <mixer field="outputs.master" value="255"/>
!     <mixer field="record.adc-0:1_source" value="sel2"/>
!     <mixer field="record.adc-0:1" value="255"/>
!   </config>
! </start>

In addition to selecting the recording source the playback as
well as the recording volume are set to 255 (maximum).
Information about the available mixers and settings in general
may be obtained by setting the 'verbose' to 'yes' in the config
node.

Issue #1644.
2015-08-21 10:59:46 +02:00
..
include/audio dde_bsd: add recording support to audio driver 2015-08-21 10:59:46 +02:00
lib/mk dde_bsd: prefix audio library name 2015-05-20 17:52:58 +02:00
patches dde_bsd: add recording support to audio driver 2015-08-21 10:59:46 +02:00
ports dde_bsd: add recording support to audio driver 2015-08-21 10:59:46 +02:00
run pci: convert to platform_drv 2015-06-22 14:43:34 +02:00
src dde_bsd: add recording support to audio driver 2015-08-21 10:59:46 +02:00
audio.list dde_bsd: add audio drivers ported from OpenBSD 2015-05-06 16:18:36 +02:00
Makefile dde_bsd: add audio drivers ported from OpenBSD 2015-05-06 16:18:36 +02:00
README dde_bsd: add audio drivers ported from OpenBSD 2015-05-06 16:18:36 +02:00

This repository contains device drivers ported from OpenBSD.

Audio
#####

The audio driver is ported from OpenBSD 5.7 and includes support for
Intel HD Audio as well as for Ensoniq AudioPCI (ES1370) compatible
soundcards. The HDA driver works on real hardware and Virtualbox
whereas the ES1370 driver is only used in Qemu.


Usage
=====

You have to prepare the contrib sources for this repository by
executing _tool/ports/prepare_port dde_bsd_. Also you need to make
sure to add the 'dde_bsd' repository to the REPOSITORIES variable
in your 'etc/build.conf'.


Example
=======

The driver can be tested by executing the run script 'run/audio_out.run'.
This example plays a sample file in a loop. The file format is header less
two channel float 32 at 44100 Hz. You may use the 'sox' utility to create
these audio files:

! sox -c 2 -r 44100 foo.wav foo.f32