mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-21 17:42:40 +00:00
dde_bsd: remove configration attributes
The driver always opens the audio device in duplex mode, i.e., playback and recording. Setting the 'playback' or 'recording' attribute only influnces the service announcement. Due to changes made in a more recent OpenBSD release recording must be set enabled explicitly anyway. Since we already provide the interface that mirrors the one used by OpenBSD 1:1 in the configuration use that and the remove the additional config attributes. Fixes #3757.
This commit is contained in:
parent
8ce798abed
commit
f1427fc02a
@ -508,26 +508,16 @@ struct Main
|
||||
return;
|
||||
}
|
||||
|
||||
/* playback */
|
||||
if (config.xml().attribute_value("playback", true)) {
|
||||
static Audio_out::Out out(env);
|
||||
Audio::play_sigh(out.sigh());
|
||||
static Audio_out::Root out_root(env, heap, out.data_avail());
|
||||
env.parent().announce(env.ep().manage(out_root));
|
||||
static Audio_out::Out out(env);
|
||||
Audio::play_sigh(out.sigh());
|
||||
static Audio_out::Root out_root(env, heap, out.data_avail());
|
||||
env.parent().announce(env.ep().manage(out_root));
|
||||
|
||||
Genode::log("--- BSD Audio driver enable playback ---");
|
||||
}
|
||||
|
||||
/* recording */
|
||||
if (config.xml().attribute_value("recording", true)) {
|
||||
static Audio_in::In in(env);
|
||||
Audio::record_sigh(in.sigh());
|
||||
static Audio_in::Root in_root(env, heap,
|
||||
Genode::Signal_context_capability());
|
||||
env.parent().announce(env.ep().manage(in_root));
|
||||
|
||||
Genode::log("--- BSD Audio driver enable recording ---");
|
||||
}
|
||||
static Audio_in::In in(env);
|
||||
Audio::record_sigh(in.sigh());
|
||||
static Audio_in::Root in_root(env, heap,
|
||||
Genode::Signal_context_capability());
|
||||
env.parent().announce(env.ep().manage(in_root));
|
||||
|
||||
config.sigh(config_update_dispatcher);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user