From bc8c3a602bceaba0e6d34a1ba8b776b56b00d766 Mon Sep 17 00:00:00 2001 From: James O'Shannessy Date: Mon, 27 Aug 2018 15:08:14 +1000 Subject: Public push of AVIRT. Follow readme for building in/out of tree for Ubuntu/AGL/etc. Signed-off-by: James O'Shannessy --- Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Kconfig (limited to 'Kconfig') diff --git a/Kconfig b/Kconfig new file mode 100644 index 0000000..0e2a52a --- /dev/null +++ b/Kconfig @@ -0,0 +1,20 @@ +menuconfig AVIRT + tristate "AVIRT support" + default n + ---help--- + Say Y here if you want to enable AVIRT support. + This driver needs at least one additional audio path in + order to establish audio routing. + + To compile this driver as a module, choose M here: the + module will be called avirt_core. + + If in doubt, say N here. + + + +if AVIRT + +source "drivers/staging/avirt/dummy/Kconfig" + +endif -- cgit 1.2.3-korg From c656cad43025265094bf5139c1265d4bcc0ba84c Mon Sep 17 00:00:00 2001 From: James O'Shannessy Date: Sat, 15 Sep 2018 00:44:37 -0700 Subject: Add updates to Makefiles and tasks for building Add required changes to Makefile and KConfig to implement building of loopback audio path as part of standard make execution. Signed-off-by: James O'Shannessy --- .vscode/tasks.json | 4 ++-- Kconfig | 1 + Makefile | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'Kconfig') diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c901648..d8063e7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -9,7 +9,7 @@ "tasks": [ { "label": "Make Driver", - "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd)", + "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m CONFIG_AVIRT_LOOPBACKAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd)", "group": "build", "problemMatcher": [ "$gcc" @@ -17,7 +17,7 @@ }, { "label": "Clean Driver", - "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd) clean", + "command": "CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m CONFIG_AVIRT_LOOPBACKAP=m make -C /lib/modules/$(uname -r)/build/ M=$(pwd) clean", "group": "build", "problemMatcher": [ "$gcc" diff --git a/Kconfig b/Kconfig index 0e2a52a..b15bcbe 100644 --- a/Kconfig +++ b/Kconfig @@ -16,5 +16,6 @@ menuconfig AVIRT if AVIRT source "drivers/staging/avirt/dummy/Kconfig" +source "drivers/staging/avirt/loopback/Kconfig" endif diff --git a/Makefile b/Makefile index 0c02c23..dfdc715 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ ccflags-y += -I${CCFLAGS_AVIRT} $(info $(KERNELRELEASE)) obj-$(CONFIG_AVIRT_DUMMYAP) += dummy/ +obj-$(CONFIG_AVIRT_LOOPBACKAP) += loopback/ ### # For out-of-tree building @@ -27,7 +28,9 @@ else endif all: - CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y CONFIG_AVIRT_DUMMYAP=m \ + CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y \ + CONFIG_AVIRT_DUMMYAP=m \ + CONFIG_AVIRT_LOOPBACKAP=m \ make -C $(KERNEL_SRC) M=$(PWD) clean: -- cgit 1.2.3-korg