assert_spec x86
if {[have_include "power_on/qemu"]} {
puts "\nAudio_in test running on Qemu is not supported.\n"
exit 0
}
if {[have_spec linux]} {
puts"\nAudio_in test running on Linux is not supported.\n"
exit 0
}
# select use of 'Audio_in/Audio_out' or 'Record/Play' sessions
proc use_record_play_sessions { } { return 1 }
proc build_targets { } {
set targets {
core init timer
driver/acpi driver/platform app/pci_decode server/report_rom
driver/audio
}
if {[use_record_play_sessions]} {
lappend targets server/record_play_mixer
} else {
lappend targets test/audio_in
}
}
build [build_targets]
create_boot_directory
proc audio_driver_config_attr { } {
if {[use_record_play_sessions]} {
return {report_mixer="yes" record_play="yes"}
} else {
return {report_mixer="yes"}
}
}
proc record_play_start_nodes { } {
if {![use_record_play_sessions]} { return "" }
return {
}
}
proc audio_in_out_start_nodes { } {
if {[use_record_play_sessions]} { return "" }
return {
}
}
install_config {
} [record_play_start_nodes] {
} [audio_in_out_start_nodes] {
}
build_boot_image [build_artifacts]
run_genode_until forever