mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
audio_out.run: adapt for newer systems
Increase the RAM quota of the 'acpi' driver, add priorities and configure the 'record_play_mixer' as is necessary on some newer systems. Issue #5331.
This commit is contained in:
parent
d7724e9d6a
commit
b8292124b9
@ -14,14 +14,18 @@ if {[have_spec linux]} {
|
|||||||
proc use_record_play_sessions { } { return 1 }
|
proc use_record_play_sessions { } { return 1 }
|
||||||
|
|
||||||
create_boot_directory
|
create_boot_directory
|
||||||
|
import_from_depot [depot_user]/src/[base_src] \
|
||||||
|
[depot_user]/src/acpi \
|
||||||
|
[depot_user]/src/bsd_audio \
|
||||||
|
[depot_user]/src/init \
|
||||||
|
[depot_user]/src/pci_decode \
|
||||||
|
[depot_user]/src/platform \
|
||||||
|
[depot_user]/src/report_rom
|
||||||
|
|
||||||
|
|
||||||
proc build_targets { } {
|
proc build_targets { } {
|
||||||
|
|
||||||
set targets {
|
set targets { driver/audio/pci }
|
||||||
core init timer
|
|
||||||
driver/acpi driver/platform app/pci_decode server/report_rom
|
|
||||||
driver/audio
|
|
||||||
}
|
|
||||||
|
|
||||||
if {[use_record_play_sessions]} {
|
if {[use_record_play_sessions]} {
|
||||||
lappend targets server/record_play_mixer app/waveform_player \
|
lappend targets server/record_play_mixer app/waveform_player \
|
||||||
@ -48,7 +52,7 @@ proc record_play_start_nodes { } {
|
|||||||
return "" }
|
return "" }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
<start name="mixer">
|
<start name="mixer" priority="-1">
|
||||||
<resource name="RAM" quantum="2M"/>
|
<resource name="RAM" quantum="2M"/>
|
||||||
<resource name="CPU" quantum="20"/>
|
<resource name="CPU" quantum="20"/>
|
||||||
<binary name="record_play_mixer"/>
|
<binary name="record_play_mixer"/>
|
||||||
@ -58,12 +62,12 @@ proc record_play_start_nodes { } {
|
|||||||
<mix name="left"> <play label_suffix="left" /> </mix>
|
<mix name="left"> <play label_suffix="left" /> </mix>
|
||||||
<mix name="right"> <play label_suffix="right"/> </mix>
|
<mix name="right"> <play label_suffix="right"/> </mix>
|
||||||
|
|
||||||
<policy label_suffix="left" record="left" volume="1.0"/>
|
<policy label_suffix="left" record="left" period_ms="12" jitter_ms="5" volume="1.0"/>
|
||||||
<policy label_suffix="right" record="right" volume="1.0"/>
|
<policy label_suffix="right" record="right" period_ms="12" jitter_ms="5" volume="1.0"/>
|
||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="test-audio_play">
|
<start name="test-audio_play" priority="-2">
|
||||||
<resource name="RAM" quantum="40M"/>
|
<resource name="RAM" quantum="40M"/>
|
||||||
<config sample_path="sample.f32">
|
<config sample_path="sample.f32">
|
||||||
<vfs> <rom name="sample.f32"/> </vfs>
|
<vfs> <rom name="sample.f32"/> </vfs>
|
||||||
@ -94,7 +98,7 @@ proc audio_in_out_start_nodes { } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_config {
|
install_config {
|
||||||
<config verbose="yes">
|
<config verbose="yes" prio_levels="4">
|
||||||
<parent-provides>
|
<parent-provides>
|
||||||
<service name="ROM"/>
|
<service name="ROM"/>
|
||||||
<service name="IRQ"/>
|
<service name="IRQ"/>
|
||||||
@ -108,7 +112,7 @@ install_config {
|
|||||||
<any-service> <parent/> <any-child/> </any-service>
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
</default-route>
|
</default-route>
|
||||||
<default caps="100"/>
|
<default caps="100"/>
|
||||||
<start name="timer">
|
<start name="timer" priority="0">
|
||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
<provides><service name="Timer"/></provides>
|
<provides><service name="Timer"/></provides>
|
||||||
</start>
|
</start>
|
||||||
@ -122,15 +126,15 @@ install_config {
|
|||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="acpi" caps="350">
|
<start name="acpi" caps="350" priority="-1">
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="8M"/>
|
||||||
<route>
|
<route>
|
||||||
<service name="Report"> <child name="report_rom"/> </service>
|
<service name="Report"> <child name="report_rom"/> </service>
|
||||||
<any-service> <parent/> </any-service>
|
<any-service> <parent/> </any-service>
|
||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="pci_decode" caps="350">
|
<start name="pci_decode" caps="350" priority="-1">
|
||||||
<resource name="RAM" quantum="2M"/>
|
<resource name="RAM" quantum="2M"/>
|
||||||
<route>
|
<route>
|
||||||
<service name="Report"> <child name="report_rom"/> </service>
|
<service name="Report"> <child name="report_rom"/> </service>
|
||||||
@ -139,7 +143,7 @@ install_config {
|
|||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="platform" caps="100" managing_system="yes">
|
<start name="platform" caps="100" managing_system="yes" priority="-1">
|
||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
<provides>
|
<provides>
|
||||||
<service name="Platform"/>
|
<service name="Platform"/>
|
||||||
@ -154,7 +158,7 @@ install_config {
|
|||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
<start name="audio">
|
<start name="audio" caps="150" priority="-1">
|
||||||
<binary name="pci_audio"/>
|
<binary name="pci_audio"/>
|
||||||
<resource name="RAM" quantum="2M"/>
|
<resource name="RAM" quantum="2M"/>
|
||||||
<provides> <service name="Audio_out"/> <service name="Audio_in"/> </provides>
|
<provides> <service name="Audio_out"/> <service name="Audio_in"/> </provides>
|
||||||
|
Loading…
Reference in New Issue
Block a user