dde_bsd: properly name PCI audio driver component

Instead of the generic name, call the PCI driver 'pci_audio_drv'.

This is preliminary clean-up work before introducing the USB audio
driver.

Issue #3929.
This commit is contained in:
Josef Söntgen 2020-06-19 14:49:29 +02:00 committed by Christian Helmuth
parent 3faf5c43a8
commit 7193902cc0
7 changed files with 12 additions and 6 deletions

View File

@ -45,7 +45,7 @@ proc usb_host_drv_binary { } {
#
proc audio_drv_binary { } {
if {[have_spec linux]} { return linux_audio_drv }
if {[have_spec x86]} { return audio_drv }
if {[have_spec x86]} { return pci_audio_drv }
return no_audio_drv_available
}

0
repos/dde_bsd/recipes/pkg/bsd_audio_drv/README Executable file → Normal file
View File

0
repos/dde_bsd/recipes/pkg/bsd_audio_drv/archives Executable file → Normal file
View File

4
repos/dde_bsd/recipes/pkg/bsd_audio_drv/runtime Executable file → Normal file
View File

@ -1,4 +1,4 @@
<runtime ram="16M" caps="256" binary="audio_drv">
<runtime ram="16M" caps="256" binary="pci_audio_drv">
<requires> <platform/> <rm/> <timer/> </requires>
@ -11,7 +11,7 @@
<content>
<rom label="ld.lib.so"/>
<rom label="audio_drv"/>
<rom label="pci_audio_drv"/>
</content>
</runtime>

View File

@ -57,6 +57,7 @@ append_platform_drv_config
append config {
<start name="audio_drv">
<binary name="} [audio_drv_binary] {"/>
<resource name="RAM" quantum="8M"/>
<provides>
<service name="Audio_out"/>
@ -82,9 +83,11 @@ install_config $config
#
set boot_modules {
core ld.lib.so init timer audio_drv test-audio_in
core ld.lib.so init timer test-audio_in
}
append boot_modules [audio_drv_binary]
append_platform_drv_boot_modules
build_boot_image $boot_modules

View File

@ -1,7 +1,9 @@
REQUIRES = x86 pci
TARGET = audio_drv
TARGET = pci_audio_drv
SRC_CC = main.cc
LIBS = dde_bsd_audio dde_bsd_audio_pci base
INC_DIR += $(REP_DIR)/include
vpath %.cc $(REP_DIR)/src/drivers/audio
CC_CXX_WARN_STRICT =

View File

@ -35,7 +35,7 @@ set build_components {
set boot_modules {
event_filter
ipxe_nic_drv
audio_drv
pci_audio_drv
report_rom
dynamic_rom
}
@ -91,6 +91,7 @@ append config_of_app {
(Recording is configured to use the external mic.)
-->
<start name="audio_drv" priority="-1">
<binary name="pci_audio_drv"/>
<resource name="RAM" quantum="9M"/>
<provides>
<service name="Audio_out"/>