Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/sim: add sim audio support #2124

Merged
merged 2 commits into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config DEFAULT_SMALL

config DEFAULT_TASK_STACKSIZE
int "The default stack size for tasks"
default 8192 if ARCH_SIM
default 65536 if ARCH_SIM
default 2048
---help---
The default stack size for tasks.
Expand Down
19 changes: 19 additions & 0 deletions arch/sim/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,25 @@ config SIM_NET_BRIDGE_DEVICE

endif

config SIM_SOUND
bool "Simulated sound support"
depends on AUDIO
default y

if SIM_SOUND

choice
prompt "Simulated sound Type"
default SIM_SOUND_ALSA

config SIM_SOUND_ALSA
bool "alsa support on sim"
depends on HOST_LINUX

endchoice

endif

config SIM_RPTUN_MASTER
bool "Remote Processor Tunneling Role"
depends on RPTUN
Expand Down
5 changes: 5 additions & 0 deletions arch/sim/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ ifeq ($(CONFIG_RPTUN),y)
CSRCS += up_rptun.c
endif

ifeq ($(CONFIG_SIM_SOUND_ALSA),y)
CSRCS += up_alsa.c
STDLIBS += -lasound
endif

ifeq ($(CONFIG_FS_HOSTFS),y)
ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y)
HOSTSRCS += up_hostfs.c
Expand Down
Loading